Appearance
Design system
Everything on this page comes from @scoreboard/design-system: tokens from tokens/tokens.json and components from src/components, shared by the website, the web app, and (as tokens) the iOS app. It's rebuilt on every deploy, so it always shows what's live. Switch the theme in the top bar to see dark mode.
Tokens
Player pieces
Seats get pieces in this order. Each color always travels with its shape, and these colors are the brand palette.
1 · clover diamond2 · grape hexagon3 · lemon triangle4 · bubblegum leaf5 · tangerine star6 · cherry circle7 · lagoon arch8 · cobalt square
Light theme
background
#F4F2ECsurface
#FFFFFFsurfaceSunken
#F5F3EEsurfaceMuted
#E9E6DFsurfaceRaised
#FFFFFFoverlay
#16151A80border
#E3DFD6borderStrong
#D0CBC1borderControl
#8D887Etext
#16151AtextMuted
#54514AtextSubtle
#6B675Faccent
#16151AaccentHover
#2E2C33accentPressed
#000000textOnAccent
#FFFFFFlink
#1F5FD1focusRing
#1F5FD1info
#1F5FD1success
#157A43warning
#8A5A00danger
#C42A22textOnDanger
#FFFFFFtextOnPiece
#16151Ashadow
#16151ADark theme
background
#121110surface
#1B1A18surfaceSunken
#232220surfaceMuted
#2E2C29surfaceRaised
#363430overlay
#000000A6border
#2E2C29borderStrong
#403D38borderControl
#86817Atext
#F4F2ECtextMuted
#BAB6ADtextSubtle
#9E9990accent
#F4F2ECaccentHover
#DEDBD3accentPressed
#C9C5BCtextOnAccent
#16151Alink
#8DB8FFfocusRing
#8DB8FFinfo
#8DB8FFsuccess
#4CD38Awarning
#F2B84Bdanger
#FF7A70textOnDanger
#16151AtextOnPiece
#16151Ashadow
#000000Type
142 : 117
Keep score for any game.
yes, even Cornhole
Foundations
Stack
Children flow top to bottom with an even gap from the space scale (data-gap 0 to 8, default 4).
gap 2 · 1
gap 2 · 2
gap 2 · 3
gap 4 · 1
gap 4 · 2
gap 4 · 3
gap 6
aligned to start
short
Cluster
A horizontal group that wraps onto new lines, for button rows, tags, and toolbars. Set the gap, the alignment across the line, and how items share it.
Cornhole
Darts
Euchre
Horseshoes
Ping pong
Dominoes
Spades
Bocce
Hearts
justify between
end
tall
align end
centered
Grid
As many equal columns as fit, each at least the minimum width (data-min xs 128px, sm 192px, md 256px, lg 320px), so it reflows from one column on a phone to several on a desktop.
xs · 1
xs · 2
xs · 3
xs · 4
xs · 5
xs · 6
xs · 7
xs · 8
md · 1
md · 2
md · 3
md · 4
VisuallyHidden
Text for screen readers only, such as the name of an icon-only control. The focusable variant is for skip links: it appears when it gets keyboard focus (press Tab inside the box below).
Skip to content
This button is named "Add a round" by hidden text.
Divider
A hairline between groups. Horizontal by default, vertical between items in a row, and optionally labelled.
Above
Below
Rounds
Players
Totals
Rematch
Actions
Button
Buttons are chunky game pieces: a darker edge slab sits underneath and collapses when you press. Use one primary button per view; secondary for everything else, ghost for low-key actions, and danger for things that can't be undone.
Every variant comes in three sizes. Medium and large are at least 44px tall; small looks smaller but keeps a 44px hit area.
Disabled buttons fade and flatten onto their edge, so there's nothing left to press.
While loading, a spinner replaces the label (which stays, hidden, so the width doesn't jump), the button sets aria-busy, and clicks are ignored.
Icons can lead or trail the label. They're decorative; the label names the button.
A full-width button fills its container, for the main action at the bottom of a phone screen. A link that should look like a button takes the same classes.
IconButton
A square, icon-only button with the same variants and sizes. It always carries an accessible label, such as "Undo last score".
Link
Inline links use the link color with an offset underline that thickens on hover. Visited links keep the same color.
Every score is saved as you go. Read the house rules or invite a friend to keep score together.
Small print links work too: privacy.
Inputs
Every control is at least 44px tall, has a 3:1 border, and shows hover, focus, invalid, disabled, and (where it applies) read-only states in both themes. Wrap text-like controls in a Field so they are labeled and described.
Field and TextInput
A Field is a label, the control, an optional hint, and an optional error. Errors pair the danger color with an icon, and the required marker is decoration; the control itself carries required.
Shows up in your history. Keep it short.
Give the play a name so you can find it later.
Read-only. Share it with the table.
NumberInput
A numeric box with tabular digits that opens the number pad. Optional − and + step buttons are 44px pieces that press down, and they stop at the minimum and maximum.
Leave it empty to play without a target.
At the minimum, so − is unavailable.
A play needs at least 1 player.
Select
A styled native <select> with a chevron, so phones show their own picker.
Pick from games you have played.
Choose a game to start the play.
SearchInput
A search box with a leading icon. The clear button is a real button you can reach with Tab, and it shows only when there is text.
Search by name or by who played.
Checkbox
A styled native checkbox. The whole label row is the hit area, and indeterminate shows a dash for "some of these."
Agree to the house rules to join.
Radio and RadioGroup
Styled native radios in a <fieldset> with a <legend>. They share a name, so arrow keys move the selection.
Switch
An on/off setting: a native checkbox with role="switch". The label sits at the start of the row and the track at the end.
SegmentedControl
A few options shown as segments. It is a radio group, so arrow keys move the selection, and the selected segment is raised like a game piece. Sizes md and sm.
Full width: segments share the row.
Pick how the winner is decided.
Example: New play
A small, realistic form built only from the parts above.
Display
Piece
Each seat color travels with its shape, and avatars can pick any shape in any color. The darker edge underneath makes it read as a thick game piece.
Card
A paper surface with a header, body, and footer. Lift it with an elevation, or make the whole card one link that lifts on hover.
Rummy
First to 500 · round 4
Maya leads by 27. Priya needs 188 to win.
Elevation 2
For something that floats over the page, like a live score card.
Cornhole
FinalSam won 21 to 17. Tap for the rounds.
Badge
A short status word. The word carries the meaning; tones only back it up, so soft badges keep ink text and add a dot.
DraftYour turnLiveTie-breakOfflineSynced
FinalYour turnLiveTie-breakOfflineSynced
Chip
A pill for a tag, a filter, or a player. Selectable chips are toggle buttons with aria-pressed; removable chips have a labeled remove button; a player chip leads with their piece and fills with their color when selected.
Card gamesRummy
SamLee
Avatar
A player's avatar is their piece with their initial on it, named for assistive tech ("Maya, cobalt square"). There are no photos. A player who hasn't picked a piece yet gets neutral initials.
AvatarStack
Overlapping avatars with a "+N" for the rest. The stack is one image labeled with every name, including the ones behind the "+N".
HandNote
The handwritten flourish: a few words in pen, at most one per screen, never on a number. It can point with an arrow, loop the words, or underline them; the mark is hidden from assistive tech and the words are plain text.
yes, even Cornholeyes, even Cornholethat's younew record
yes, even Cornholetap to scoreyour seatundo is here
nicenicenice
EmptyState
What a screen shows before there's anything in it: a few pieces or an icon, a title, one line that says what to do, and the action.
No plays yet
Start one and pass the phone. We'll keep the score.
No games match “croquet”
Check the spelling, or add it as a new game.
Skeleton
Placeholder lines, circles, and blocks while content loads. Skeletons are always aria-hidden: the loading container gets aria-busy="true" and a visually hidden "Loading …" message, and drops both when the content arrives. The shimmer stops under reduced motion.
Loading plays…
Kbd
A keyboard key, for shortcuts on the web.
Press N to start a play.
⌘ K searches games and players.
Esc closes the sheet.
Navigation
Tabs
WAI-ARIA tabs: the selected tab is bold with a thick ink bar, only it is in the tab order, and the arrow keys, Home, and End move between tabs (the React wrapper handles the keys). Each panel is labelled by its tab.
Maya leads by 27. Priya is 2nd with 285.
Round 4 of 10.
Highest round: Sam, 95.
Nothing yet.
12 plays this month.
Maya has won 7 of her last 10.
Priya, 4 wins to 3.
TopBar
Sticky at the top of the page: the logo, a title, and actions. It goes compact on phones (or with data-density="compact").
BottomNav
The mobile web tab bar: up to 5 destinations, each an icon and a label, with aria-current="page" on the current one. Every item is at least 44px, and the bar pads for the home indicator.
Breadcrumbs
The trail from the top level to this page, in an ordered list. Separators are hidden from assistive tech, and the last item is the current page.
Overlays
Overlays are native HTML: <dialog> for dialogs and sheets, the popover attribute for popovers, menus, and tooltips, and a live region for toasts. Each one below is drawn open in normal flow (the --static modifiers) so it can be screenshotted; in the app they float on the top layer.
Dialog
A modal <dialog> opened with showModal(), labeled by its title. Escape, the close button, and a click on the backdrop all close it, and focus goes back to whatever opened it.
For destructive confirmations, .sb-dialog--danger swaps the ink edge for danger red. Say what will be lost.
Sheet
The same <dialog> with .sb-sheet: a bottom sheet with a grab handle on phones, and a centered panel from the md breakpoint up.
.sb-sheet--side turns it into a side panel on larger screens, for settings that sit next to the scoreboard.
Popover
A popover panel anchored under the button that opens it (CSS anchor positioning, centered in the viewport where that isn't supported). Clicking outside or pressing Escape closes it.
Scoring rules
Most points after 10 rounds wins. Ties go to a sudden-death round.
Menu
A popover with role="menu". Arrow keys, Home, and End move between items; Escape or choosing an item closes it and puts focus back on the trigger. Destructive items use .sb-menu__item--danger and sit last, after a separator.
Tooltip
A few words in a popover="manual" element, shown above its trigger on hover and focus after a short delay and hidden on Escape. The trigger points at it with aria-describedby. Never put the only copy of something in a tooltip.
Undo Maya +10
Toast
A polite live region (role="status") on the toast layer, bottom center on phones and bottom right on larger screens. Toasts can carry one action and always have a dismiss button; in React they dismiss themselves after a few seconds, pausing while hovered or focused.
Score-keeping
ScoreTile and ScoreBoard
One tile per player, in seat order, and tiles never reorder. Tap the top half of a tile to add and the bottom half to subtract, or use the − and + buttons; a long press opens a custom amount. The leader wears their color and says "Leading" in words, and every change is announced ("Theo, 413").
Rummy · Round 4
First to 500 winsMaya3rd place
342
TheoLeading
412
Priya4th place
287
Jonah2nd place
365
The compact board fits 5 to 8 players on a phone: the buttons stack beside the score, + on top.
Farkle · Turn 9
6 playersMaya4th place
88
Theo2nd place
121
Priya6th place
64
Jonah3rd place
97
InesLeading
143
Kofi5th place
75
When players share the lead, each tile fills and says "Tied for the lead".
Ping pong · Game 3
First to 11, win by 2MayaTied for the lead
10
TheoTied for the lead
10
A tile without controls is read-only (for spectators), and a disabled tile keeps its place while scoring is paused.
PriyaRead-only
287
JonahPaused
365
Stepper
A compact − value + control for small adjustments. A button at its limit stays focusable but does nothing, and the value is announced as it changes.
PlayerChip
A player's piece, name, and optional score. The seat color stays in the piece. As a toggle it picks "who scored?", and the selected chip fills with ink.
Maya342Theo
TeamBadge
A team's name with its members' pieces overlapping, outlined in the team's color. Screen readers hear the members after the name.
Clover crew: Maya and TheoGrape escape: Priya, Jonah and InesMixed doubles: Kofi and Wren
RoundGrid
A scoresheet for round-by-round games. The names, round numbers, and totals stay put while it scrolls, every cell is labelled ("Round 3, Maya"), and the leader's total wears their color with a label.
| Round | Maya | Theo | Priya | Jonah |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| Total | 342 | 412Leading | 287 | 365 |
TimerDisplay
Tabular digits in mm:ss, or h:mm:ss past an hour. Screen readers hear only state changes. Paused and expired always show a word and an icon.
Round timerRunning
Play timePaused
Round timerTime's up
The turn timer shows whose turn it is with their piece.
Theo's turnRunning
Priya's turnPaused
Maya's turnTime's up
WinnerBanner
The end of a play: the winner's color fills the banner and their piece celebrates. Keep the copy kind to everyone at the table.