OverviewDesign Tokens

Design Tokens

The shared palette, shape, and type of every immit surface — parsed live from the code.


Source of truth: Figma variables ("light - dark") → packages/ui/src/styles/globals.css. These tables are parsed from that file at render time — the "Figma variable" column comes from each declaration's comment, so auditing sync means reading this page against the Figma variable panel. The extension hand-mirrors the blocks (shadow root); a parity test guards it.

Page & panels

Page, cards, floating panels, hover rows.

TokenLightDarkFigma variable
--background
bg-background
white
stone-950
BG/base
--card
bg-card · text-card-foreground
Aa
white
on stone-900
Aa
stone-950
on stone-100
BG/base
--popover
bg-popover · text-popover-foreground
Aa
white
on stone-900
Aa
stone-800
on stone-100
BG/panel
--muted
bg-muted · text-muted-foreground
Aa
stone-100
on stone-600
Aa
stone-900
on stone-400
BG/subtle
--faint
bg-faint
stone-50
stone-900
BG/extra-subtle
--accent
bg-accent · text-accent-foreground
Aa
stone-200
on stone-900
Aa
stone-700
on stone-100
—
--tooltip
bg-tooltip · text-tooltip-foreground
Aa
stone-700
on white
Aa
stone-700
on white
Border strong

Text

Default ink, then stepped-down emphasis; link is the inline-link violet.

TokenLightDarkFigma variable
--foreground
bg-foreground
stone-900
stone-100
Font/primary
--muted-foreground
bg-muted-foreground
stone-600
stone-400
Font/secondary
--placeholder
bg-placeholder
stone-400
stone-600
Font/muted
--link
bg-link
violet-500
violet-300
Font/link

Actions

Button fills. secondary is the pill for tinted surfaces (not shadcn’s gray workhorse — that is the muted button variant); soft is the faint violet chip, and the stronger violet button tint (variant surface) is surface-brand, below.

TokenLightDarkFigma variable
--primary
bg-primary · text-primary-foreground
Aa
violet-500
on white
Aa
violet-500
on white
Button/brand
--inverse
bg-inverse · text-inverse-foreground
Aa
stone-900
on white
Aa
white
on stone-900
Button/primary
--secondary
bg-secondary · text-secondary-foreground
Aa
white
on stone-900
Aa
stone-900
on stone-100
Button/secondary
--soft
bg-soft · text-soft-foreground
Aa
violet-50
on violet-500
Aa
ink-brand-deep
on violet-300
BG/brand-extra-subtle
--destructive
bg-destructive · text-destructive-foreground
Aa
red-500
on white
Aa
red-700
on white
Button/destructive
--success
bg-success · text-success-foreground
Aa
emerald-500
on white
Aa
emerald-500
on white
Button/success
--warning
bg-warning · text-warning-foreground
Aa
amber-400
on stone-900
Aa
amber-300
on stone-900
Button/accent

Marketing surfaces

Tinted section bands and cards; the dark inks have no Tailwind ramp counterpart.

TokenLightDarkFigma variable
--surface-warm
bg-surface-warm
amber-50
indigo-950
BG/warm
--surface-brand
bg-surface-brand
violet-200
ink-brand
BG/brand-subtle
--surface-accent
bg-surface-accent
amber-100
ink-brand
BG/accent
--surface-emerald
bg-surface-emerald
emerald-50
ink-brand-deep
BG/green-extra-subtle
--surface-dark
bg-surface-dark · text-surface-dark-foreground
Aa
violet-900
on white
Aa
violet-800
on white
BG/dark

Borders & focus

Hairlines, input strokes, focus ring.

TokenLightDarkFigma variable
--border
bg-border
stone-200
stone-800
Border
--border-strong
bg-border-strong
stone-300
stone-700
Border strong
--input
bg-input
stone-200
stone-800
Border
--ring
bg-ring
violet-500
violet-500
Icon active

Icons

Icon-only affordances.

TokenLightDarkFigma variable
--icon
bg-icon
stone-500
stone-600
Icon default
--icon-active
bg-icon-active
violet-500
violet-400
Icon active
--icon-accent
bg-icon-accent
amber-500
amber-500
Icon accent

Choosing a slot

Shadcn names keep shadcn semantics; the immit names fill the gaps.

  • primary is the action color everywhere: Save, Subscribe, Add to Chrome. inverse is the ink marketing CTA (Download in the header); it inverts with the theme.
  • secondary is the neutral pill on a tinted surface (Log in on the hero); its hover is accent.
  • muted is the subtle page surface and the neutral fill on a white card. faint is one step quieter: a segmented control track, and the ground of the blog and jobs pages (data-surface="faint" on the www SiteShell).
  • soft is the violet chip (badges, the active dictionary tab, the bookmark tile). surface-brand is the tinted button that must read as a button beside a primary one.
  • accent is the interactive highlight: hover and selected rows, ghost and secondary button hover. It sits one ramp step off Figma's Button/secondary-hover on purpose: that value collides with muted in light and with popover in dark.
  • border equals popover in dark, so a floating panel shows no hairline. Accepted: the panel is already two steps lighter than the page, and light mode needs the border because there popover equals the page.
  • surface-warm, surface-accent and surface-emerald are the marketing tint cards; surface-dark is the footer card. The two hex inks in dark are the design's own, with no Tailwind ramp counterpart; every other value is Tailwind v4's oklch, so bg-violet-500 and bg-primary are byte-identical.

Buttons and inputs share one size ladder (sm 32, default 36, lg 40, xl 48, 2xl 56) so a field and the button beside it line up; 2xl is the in-app form field. SensesList in @immit/lexicon renders at two type scales, default and compact (the extension's 320px panels, one notch down); a surface picks a scale and never overrides classes.

The extension cannot import these globals: it renders in a shadow root, so :root never matches, and apps/extension/src/styles/globals.css mirrors the blocks onto :host. techbient overrides --background, --foreground, --primary and --soft in its own globals and is not an immit surface.

Shape

--radius: 0.5rem — Tailwind's stock radius scale, unchanged.

rounded-sm
menu rows
rounded-md
buttons
rounded-lg

inputs, panels, app cards

rounded-3xl
marketing cards
rounded-4xl

large marketing frames

rounded-full

marketing pills, badges

Type

SF Pro via the system font-sans stack — nothing is loaded.

Hero 60 / black

Section h2 48 / semibold

Card title 36 / regular
Body 18 / 28
Label 16 / 24 medium
Meta 14 / 20