Components
Team banner
The banner names whose numbers are on the card.
In use


The first team to win four games wins the World Series.
| Game | Date | Result |
|---|---|---|
| Game 1 | Oct 23 | Brewers 3, Rays 2 |
| Game 2 | Oct 24 | Brewers 5, Rays 4 |
| Game 3 | Oct 26 | In Tampa Bay |
Anatomy
- PhotoPlayers only. The cut-out headshot on a grey circle.
- LogoEach team's logo on a white circle, overlapping the photo.
- NameThe full name and team abbreviation, in bold.
- Team and positionPlayers only.
- Score, optionalLarge, at the far end, in a head-to-head.
When to use it
Use the banner at the top of any card about a player or a team.
When not to use it
Never add a coloured stripe down one side, and never change a team’s colour to fit the page.
Accessibility
Text reaches 4.5:1 against the team’s colour, and every team’s contrast is on Colour. The photo and logos are decorative.
Tokens
In code: TeamBlock in src/ds/components/TeamBlock, with Identity laying out who it is
| Token | What it sets |
|---|---|
--ds-face-badge | The grey circle behind the photo. |
--ds-logo-badge | The white circle behind each logo. |
--ds-logo-badge-size | The 40px circles. |
--ds-border-edge | The outline on a team colour that would vanish into the page. |
--ds-radius-md | The corners. |
One layout everywhere. 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.
A traded player. 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.