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 #c0c0c8

The quick brown fox jumps over the lazy dog.

Used by: Body text everywhere, outline badgesThe base. Everything else is judged against it.
--heading #d6d6dc

The quick brown fox jumps over the lazy dog.

Used by: H1–H6, page titlesKeep: headings need to sit a step brighter.
--muted-foreground #c0c0c8

The 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 #ebebeb

The quick brown fox jumps over the lazy dog.

Used by: Text inside cardsBrighter than body text. Candidate: var(--foreground).
--popover-foreground #ebebeb

The quick brown fox jumps over the lazy dog.

Used by: Dropdown menus, popoversBrighter than body text. Candidate: var(--foreground).
--secondary-foreground #e5e5e5

The 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 #ffffff

The 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 #58a6ff

The quick brown fox jumps over the lazy dog.

Used by: Links, focus rings, primary buttonsKeep.
--code #58a6ff

The 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)

Card
Before
Card title
Description stays muted.
Card body text.
After
Card title
Description stays muted.
Card body text.
Alert (default)
Before
After

--secondary-foreground

#e5e5e5 → var(--foreground) (#c0c0c8)

Button (secondary)
Before
After
Badge (secondary)
BeforeSecondary badge
AfterSecondary badge

--popover-foreground

#ebebeb → var(--foreground) (#c0c0c8). Click each trigger to open it.

Dialog
Before
After
AlertDialog
Before
After
Sheet
Before
After
Drawer
Before
After
Popover
Before
After
HoverCard
Before
After
NavigationMenu
Before
After
Command
Before
After
Chart tooltip
Hover a bar.
Before
After
Toast (Sonner)
Before shows bottom-left, after shows bottom-right.
Before
After

--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.

DropdownMenu
Also the breadcrumb “…” overflow menu on the live site.
Before
After
ContextMenu
Before
Right-click here
After
Right-click here
Menubar
Before
After
Select
Before
After
Combobox
Before
After
  • 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.