Style
Colour
Dugout's own colours stay neutral so that team colours carry the meaning.
Primitives
A primitive is one named colour, such as Green 700. Components never use a primitive or a hex code. They use the role tokens below.
Neutrals, light to dark
- Neutral 0#ffffff
--ds-neutral-0 - Neutral 50#f3f3f1
--ds-neutral-50 - Neutral 75#f1f1ee
--ds-neutral-75 - Neutral 100#e4e4df
--ds-neutral-100 - Neutral 300#a6a8a5
--ds-neutral-300 - Neutral 400#8a8a84
--ds-neutral-400 - Neutral 500#70726f
--ds-neutral-500 - Neutral 600#5d5d63
--ds-neutral-600 - Neutral 800#2d2f2e
--ds-neutral-800 - Neutral 850#202221
--ds-neutral-850 - Neutral 900#17171a
--ds-neutral-900 - Neutral 950#111111
--ds-neutral-950
Dugout green, light to dark
- Green 50#e3efe7
--ds-green-50 - Green 100#d2e4d8
--ds-green-100 - Green 500#3f9a66
--ds-green-500 - Green 700#1f5e3b
--ds-green-700 - Green 900#24392c
--ds-green-900 - Green 950#1c2c22
--ds-green-950
Photo grey
- Photo grey#d6d9dd
--ds-photo-grey
Role tokens
A role token, such as --ds-brand, points at one primitive in light mode and another in dark. Text reaches 4.5:1 against its background, and outlines and icons reach 3:1.
| Role token | Light mode points at | Dark mode points at | Used for | Contrast (light / dark) |
|---|---|---|---|---|
--ds-page | Neutral 0 | Neutral 950 | The page and the sidebar beside it. | Not used for text |
--ds-card | Neutral 0 | Neutral 900 | Answer cards, the question box and the Filter pill. | Not used for text |
--ds-surface | Neutral 75 | Neutral 850 | The question bubble, an icon or quiet button under the pointer, and the sidebar's items under the pointer. | Not used for text |
--ds-border | Neutral 100 | Neutral 800 | Lines between rows and around cards. | Not used for text |
--ds-control | Neutral 400 | Neutral 500 | Outlines of inputs and unselected options, on a card. | 3.5:1 / 3.7:1 |
--ds-text | Neutral 900 | Neutral 50 | Headlines, body text and numbers, on a card. | 17.9:1 / 16.1:1 |
--ds-muted | Neutral 600 | Neutral 300 | Confirm lines, sources, notes and labels, on a card. | 6.5:1 / 7.5:1 |
--ds-brand | Green 700 | Green 500 | Dugout green: the send button, primary buttons, links and focus rings, on the page. | 7.7:1 / 5.4:1 |
--ds-focus | Green 700 | Green 500 | The keyboard focus ring, on the page. | 7.7:1 / 5.4:1 |
--ds-brand-soft | Green 50 | Green 950 | Suggestion chips, the current chat and a series still being played. | Not used for text |
--ds-brand-soft-hover | Green 100 | Green 900 | A suggestion chip under the pointer. | Not used for text |
--ds-brand-ink | Neutral 0 | Neutral 950 | Words on Dugout green. | 7.7:1 / 5.4:1 |
--ds-logo-badge | Neutral 0 | Neutral 0 | The white circle behind a team's logo. | Not used for text |
--ds-face-badge | Photo grey | Photo grey | The circle behind a player's photo. | Not used for text |
--ds-brand-hover is Dugout green with a little Neutral 0 mixed in. The scrim and the shadows are see-through, so they keep their own values.
Team colours
Team colours come from MLB's official team logo files, read on 2026-10-23, and are never changed.
Rule. Dugout green is never a team’s colour or the data’s colour.
The rules for team colour
- A team's name sits on a block of its primary colour.
- The text on the block is white or near-black, whichever contrasts more, and reaches 4.5:1.
- A block under 3:1 against the card behind it gets a thin outline in a lighter or darker shade of the same colour.
- The cap logo sits in a white circle with a thin grey edge. A player's photo sits in a light grey circle of the same size.
- Every player or team is shown the same way everywhere, with the player's photo and a logo for each team before the full name, and the team and position under it. A "Which one?" choice has no photo, because a choice doesn't carry the player's MLB id. A row in a leaders table has no team and position line, because MLB's leaders list doesn't give positions. Narrower than 17.5rem (280px), the photo and logos sit above the name, and wider than that they sit beside it.
- The logo is decoration, and the team's name is always written next to it.
- A player who played for more than one team in the season asked about gets no team colour. His block is neutral and shows every team's logo, starting with the team he played for most.
Every team, with the contrast its text reaches
Light
Arizona DiamondbacksAZ, text 7.3:1
AthleticsATH, text 13.0:1
Atlanta BravesATL, text 14.7:1
Baltimore OriolesBAL, text 4.5:1
Boston Red SoxBOS, text 5.8:1
Chicago CubsCHC, text 11.4:1
Chicago White SoxCWS, text 21.0:1
Cincinnati RedsCIN, text 6.1:1
Cleveland GuardiansCLE, text 14.0:1
Colorado RockiesCOL, text 15.3:1
Detroit TigersDET, text 13.9:1
Houston AstrosHOU, text 13.5:1
Kansas City RoyalsKC, text 9.4:1
Los Angeles AngelsLAA, text 6.8:1
Los Angeles DodgersLAD, text 7.1:1
Miami MarlinsMIA, text 6.6:1, outlined
Milwaukee BrewersMIL, text 14.7:1
Minnesota TwinsMIN, text 16.4:1
New York MetsNYM, text 13.0:1
New York YankeesNYY, text 15.3:1
Philadelphia PhilliesPHI, text 4.6:1
Pittsburgh PiratesPIT, text 21.0:1
San Diego PadresSD, text 15.1:1
San Francisco GiantsSF, text 6.0:1
Seattle MarinersSEA, text 7.8:1
St. Louis CardinalsSTL, text 6.5:1
Tampa Bay RaysTB, text 13.8:1
Texas RangersTEX, text 12.2:1
Toronto Blue JaysTOR, text 8.8:1
Washington NationalsWSH, text 7.7:1
Dark
Arizona DiamondbacksAZ, text 7.3:1, outlined
AthleticsATH, text 13.0:1, outlined
Atlanta BravesATL, text 14.7:1, outlined
Baltimore OriolesBAL, text 4.5:1
Boston Red SoxBOS, text 5.8:1
Chicago CubsCHC, text 11.4:1, outlined
Chicago White SoxCWS, text 21.0:1, outlined
Cincinnati RedsCIN, text 6.1:1, outlined
Cleveland GuardiansCLE, text 14.0:1, outlined
Colorado RockiesCOL, text 15.3:1, outlined
Detroit TigersDET, text 13.9:1, outlined
Houston AstrosHOU, text 13.5:1, outlined
Kansas City RoyalsKC, text 9.4:1, outlined
Los Angeles AngelsLAA, text 6.8:1, outlined
Los Angeles DodgersLAD, text 7.1:1, outlined
Miami MarlinsMIA, text 6.6:1
Milwaukee BrewersMIL, text 14.7:1, outlined
Minnesota TwinsMIN, text 16.4:1, outlined
New York MetsNYM, text 13.0:1, outlined
New York YankeesNYY, text 15.3:1, outlined
Philadelphia PhilliesPHI, text 4.6:1
Pittsburgh PiratesPIT, text 21.0:1, outlined
San Diego PadresSD, text 15.1:1, outlined
San Francisco GiantsSF, text 6.0:1
Seattle MarinersSEA, text 7.8:1, outlined
St. Louis CardinalsSTL, text 6.5:1, outlined
Tampa Bay RaysTB, text 13.8:1, outlined
Texas RangersTEX, text 12.2:1, outlined
Toronto Blue JaysTOR, text 8.8:1, outlined
Washington NationalsWSH, text 7.7:1, outlined