Text colors
Every text color token with its value and where it's used, plus before-and-after comparisons for consolidating them.
Text color tokens
--foreground #c0c0c8The quick brown fox jumps over the lazy dog.
Used by: Body text everywhere, outline badgesThe base. Everything else is judged against it.--heading #d6d6dcThe quick brown fox jumps over the lazy dog.
Used by: H1–H6, page titlesKeep: headings need to sit a step brighter.--muted-foreground #c0c0c8The quick brown fox jumps over the lazy dog.
Used by: Intros, list descriptions, breadcrumbs, card descriptions, placeholders, tab labelsSame gray as body text for now.--card-foreground #ebebebThe quick brown fox jumps over the lazy dog.
Used by: Text inside cardsBrighter than body text. Candidate: var(--foreground).--popover-foreground #ebebebThe quick brown fox jumps over the lazy dog.
Used by: Dropdown menus, popoversBrighter than body text. Candidate: var(--foreground).--secondary-foreground #e5e5e5The quick brown fox jumps over the lazy dog.
Used by: Secondary buttons and badgesAlmost the old body color. Candidate: var(--foreground) or var(--heading).--accent-foreground #ffffffThe quick brown fox jumps over the lazy dog.
Used by: Highlighted menu items, ghost-button hoverPure white, the brightest text on the site. Candidate: var(--heading).--primary #58a6ffThe quick brown fox jumps over the lazy dog.
Used by: Links, focus rings, primary buttonsKeep.--code #58a6ffThe quick brown fox jumps over the lazy dog.
Used by: Inline codeSame value as --primary on purpose, so the two can diverge later.Before and after, per component
Every component that uses a token we might consolidate, shown with the current value and the consolidated one.
--card-foreground
#ebebeb → var(--foreground) (#c0c0c8)
--secondary-foreground
#e5e5e5 → var(--foreground) (#c0c0c8)
--popover-foreground
#ebebeb → var(--foreground) (#c0c0c8). Click each trigger to open it.
--popover-foreground + --accent-foreground
Menu text uses the popover token. The highlighted item uses --accent-foreground: #ffffff → var(--heading) (#d6d6dc). Open each menu and hover an item.
Related
- Highlight
The Highlight text component: a faint blue tint with square corners, whose side padding repeats on every line it wraps across.
- UI stress test
Nested components stacked inside each other, like bold and code inside links and tables inside lists, to find where the styles break.
- Link hovers
Nine inline link hover styles side by side, from solid fill to borders and underlines, for choosing the site's link look.
- Theme lab
Color, link, card, and focus-ring experiments for the site theme.