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.
| Token | Light | Dark | Figma variable |
|---|---|---|---|
--backgroundbg-background | white | stone-950 | BG/base |
--cardbg-card · text-card-foreground | Aa white on stone-900 | Aa stone-950 on stone-100 | BG/base |
--popoverbg-popover · text-popover-foreground | Aa white on stone-900 | Aa stone-800 on stone-100 | BG/panel |
--mutedbg-muted · text-muted-foreground | Aa stone-100 on stone-600 | Aa stone-900 on stone-400 | BG/subtle |
--faintbg-faint | stone-50 | stone-900 | BG/extra-subtle |
--accentbg-accent · text-accent-foreground | Aa stone-200 on stone-900 | Aa stone-700 on stone-100 | — |
--tooltipbg-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.
| Token | Light | Dark | Figma variable |
|---|---|---|---|
--foregroundbg-foreground | stone-900 | stone-100 | Font/primary |
--muted-foregroundbg-muted-foreground | stone-600 | stone-400 | Font/secondary |
--placeholderbg-placeholder | stone-400 | stone-600 | Font/muted |
--linkbg-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.
| Token | Light | Dark | Figma variable |
|---|---|---|---|
--primarybg-primary · text-primary-foreground | Aa violet-500 on white | Aa violet-500 on white | Button/brand |
--inversebg-inverse · text-inverse-foreground | Aa stone-900 on white | Aa white on stone-900 | Button/primary |
--secondarybg-secondary · text-secondary-foreground | Aa white on stone-900 | Aa stone-900 on stone-100 | Button/secondary |
--softbg-soft · text-soft-foreground | Aa violet-50 on violet-500 | Aa ink-brand-deep on violet-300 | BG/brand-extra-subtle |
--destructivebg-destructive · text-destructive-foreground | Aa red-500 on white | Aa red-700 on white | Button/destructive |
--successbg-success · text-success-foreground | Aa emerald-500 on white | Aa emerald-500 on white | Button/success |
--warningbg-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.
| Token | Light | Dark | Figma variable |
|---|---|---|---|
--surface-warmbg-surface-warm | amber-50 | indigo-950 | BG/warm |
--surface-brandbg-surface-brand | violet-200 | ink-brand | BG/brand-subtle |
--surface-accentbg-surface-accent | amber-100 | ink-brand | BG/accent |
--surface-emeraldbg-surface-emerald | emerald-50 | ink-brand-deep | BG/green-extra-subtle |
--surface-darkbg-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.
| Token | Light | Dark | Figma variable |
|---|---|---|---|
--borderbg-border | stone-200 | stone-800 | Border |
--border-strongbg-border-strong | stone-300 | stone-700 | Border strong |
--inputbg-input | stone-200 | stone-800 | Border |
--ringbg-ring | violet-500 | violet-500 | Icon active |
Icons
Icon-only affordances.
| Token | Light | Dark | Figma variable |
|---|---|---|---|
--iconbg-icon | stone-500 | stone-600 | Icon default |
--icon-activebg-icon-active | violet-500 | violet-400 | Icon active |
--icon-accentbg-icon-accent | amber-500 | amber-500 | Icon accent |
Choosing a slot
Shadcn names keep shadcn semantics; the immit names fill the gaps.
primaryis the action color everywhere: Save, Subscribe, Add to Chrome.inverseis the ink marketing CTA (Download in the header); it inverts with the theme.secondaryis the neutral pill on a tinted surface (Log in on the hero); its hover isaccent.mutedis the subtle page surface and the neutral fill on a white card.faintis one step quieter: a segmented control track, and the ground of the blog and jobs pages (data-surface="faint"on the wwwSiteShell).softis the violet chip (badges, the active dictionary tab, the bookmark tile).surface-brandis the tinted button that must read as a button beside a primary one.accentis 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 withmutedin light and withpopoverin dark.borderequalspopoverin 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-accentandsurface-emeraldare the marketing tint cards;surface-darkis 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, sobg-violet-500andbg-primaryare 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-smrounded-mdrounded-lginputs, panels, app cards
rounded-3xlrounded-4xllarge marketing frames
rounded-fullmarketing pills, badges
Type
SF Pro via the system font-sans stack — nothing is loaded.
Section h2 48 / semibold