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
- Outline smoothing
The byline chips' blue outline drawn seven ways, to see which anti-aliases most smoothly.
- Feed entry styles
Test page for comparing feed-entry separators, shadows and layout treatments across image, post and page examples.
- Spacing
Body text line height, paragraph gaps and list spacing, from today's to tighter, side by side.
- Hover speed
Every hover fade on the site at its current speed, next to instant, 10ms, 50ms and 100ms.