This page as markdown: /colors.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt
Token intent
Which token to reach for, and what it is most often confused with. Generated from src/themes/token-docs.ts; the full data is registry.json → tokens.
semantic (49)
background— The page. The furthest-back surface in the page register. Use for: The document body, and any surface meant to read as 'the page itself'. Never anything that floats: background is the BOTTOM of the surface stack (background < card < popover in every dark mode), so a floating panel painted with it reads as a hole beneath the cards it hovers over.- Not
popoverfor anything floating,cardfor a bounded block on the page.canvas.canvasis the work surface in a tool — the artboard being edited — which is not the page behind the UI. Usingbackgroundfor an artboard makes the thing being edited indistinguishable from the chrome around it.
- Not
foreground— The default ink, forbackground. Use for: Body text and any content sitting directly on the page.- Not any other surface's ink. On
card,popover,panelor a tone, use that surface's own-foreground.
- Not any other surface's ink. On
card— A raised content container on the page. Use for: A bounded block of related content on a page: an article teaser, a settings group, a stat panel.- Not
popover. A card sits in the document flow; a popover floats above it and needs its own elevation and border treatment. And never inside a docked panel — usepanelsurfaces andPanelSection; a card in a 240px panel spends its border and inset on nothing. Never rely oncardas a FILL to separate something from the page: a preset'scardcan equalbackground, because a card separates by its border. A track, well or pad that must read with no border ismuted.
- Not
card-foreground— Ink paired withcard. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background iscard. Use them as a pair —bg-card text-card-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
popover— A floating surface: menu, popover, tooltip body, select list, dialog, and any persistent floating panel (an inspector, a toolbar over a canvas). Use for: Anything rendered in a layer above the page that needs its own background, dismissible or not. The test is elevation: if it floats over content (shadow-mdor higher, fixed or absolutely positioned above the page), it is popover. Pair withtext-popover-foreground.- Not
cardandbackground. The distinction is elevation, not shape or lifetime: a panel that stays open is still floating.backgroundis the page ground andcardsits on it; both read as sunk under a floating panel. In light mode several presets make all three equal, so a floating surface also needs its edge (ring or border) and shadow, never the fill alone.
- Not
popover-foreground— Ink paired withpopover. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background ispopover. Use them as a pair —bg-popover text-popover-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
muted— A recessed surface. Quieter than the page, not interactive. Use for: An inset well: a code block background, a disabled field, a read-only region, a table's zebra stripe, a segmented-control track. On the page it always differs frombackground. Inside any OTHER surface (a card, a popover, a floating panel) use thesable-wellutility instead: it derives the well from the surface it sits in, so it is the same visible step everywhere, whereasmutedcan land within a step of a popover in some dark modes. Never compensate with an outline on every well — that turns a panel into a stack of boxes.- Not
secondaryandaccent. All three are near-identical in most themes, which is exactly why the rule is by ROLE:mutedis recessed and inert,secondaryis a control fill,accentis a transient state. Pick by what the surface does, never by which looks right — they diverge in other themes.
- Not
muted-foreground— De-emphasised ink. The single most-used token afterforeground. Use for: Secondary text: captions, helper text, placeholder-adjacent labels, a property name next to its value, timestamps.- Not
foregroundat reduced opacity. Opacity on text compounds unpredictably against whatever is behind it and can fall below the contrast floor; this token is a tuned value that does not.
- Not
border— The default hairline. Tuned to be subtle. Use for: Input outlines, badge edges, card borders — chrome that should not draw the eye.- Not
border-strong. Reach forborder-strongwhen the line carries structure (a grid rule, a table divider, a section separator) and forborderwhen it merely bounds a control.
- Not
border-strong— A structural divider. Visibly stronger thanborder. Use for: Grid lines, table rules, separators between major sections.- Not
border. If removing the line would make the layout ambiguous, it is structural and belongs here.
- Not
input— The outline of a form control specifically. Use for: Text inputs, textareas and selects (throughfield-border, which derives from it). Not the edge of a checkbox, radio or switch — that iscontrol-border.- Not
border. They are often the same value, but a theme is entitled to make form controls read differently from other chrome, and only this token gives it the hook.
- Not
control-border— The resting edge of a control whose outline is the whole control. Held to 3:1 (WCAG 1.4.11) on every surface. Use for: An unchecked checkbox, an unselected radio, an off switch track, a selection card's check or radio mark — anywhere removing the edge would make the control disappear.- Not
input. A text field is also found by its fill, caret and placeholder, so its outline may stay quiet; a checkbox has nothing else, and atinput's strength it measures about 1.4:1.
- Not
ring— The focus indicator colour. Use for: Only forfocus-visible. Nothing else.- Not
primary. Focus must remain distinguishable from selection; if the ring is the same colour as a selected state, a keyboard user cannot tell where focus is.
- Not
primary— The one high-emphasis action colour. Use for: The single most important action on a surface — one per view. A submit button, the primary CTA.- Not
accent.primarysays do this;accentsays this is the current one. Two primary buttons on one screen means neither is primary.
- Not
primary-foreground— Ink paired withprimary. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background isprimary. Use them as a pair —bg-primary text-primary-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
secondary— A lower-emphasis control fill. Use for: A secondary button, a segmented control's resting fill, a neutral chip.- Not
muted.secondaryis for something you can press;mutedis for a surface that is inert. See themutednote — role, not appearance.
- Not
secondary-foreground— Ink paired withsecondary. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background issecondary. Use them as a pair —bg-secondary text-secondary-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
accent— A transient state fill: hover, selected, current. Use for: The fill behind a hovered menu item, a selected list row, the active segment of a switcher.- Not
primaryfor selection, andmutedfor hover.accentis the state layer; the other two are emphasis and recession respectively.
- Not
accent-foreground— Ink paired withaccent. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background isaccent. Use them as a pair —bg-accent text-accent-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
destructive— Irreversible or data-losing actions. Use for: Delete, revoke, remove, discard — and the error state of a form field.- Not
tone-warning. Destructive means this destroys something; warning means be careful. A confirmation dialog's action is destructive; the banner explaining it is a warning.
- Not
destructive-foreground— Ink paired withdestructive. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background isdestructive. Use them as a pair —bg-destructive text-destructive-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
success— A confirmed, completed, healthy state. Use for: A passing check, a saved indicator, a healthy status dot.- Not
tone-info. Success asserts an outcome; info asserts a fact. 'Saved' is success, '3 items' is info.
- Not
success-foreground— Ink paired withsuccess. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background issuccess. Use them as a pair —bg-success text-success-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
tone-3— Extra colour 3: the third, and usually the quietest, category in a classified set. Use for: A third category, or the baseline one that means 'nothing special'.- Not
muted. A tone is semantic classification that a reader is meant to decode;mutedis de-emphasis. If a legend would help the user, it is a tone.
- Not
tone-2— Extra colour 2: the second category in a classified set. Use for: A second category, distinct from tone-1, in a badge, dot, card or chart.- Not
tone-1. Distinct categories must stay visually distinct.
- Not
tone-1— Extra colour 1, the lead of the three a theme defines beyond its status colours. The numbered tones exist so a product can classify content (categories, plans, series) without inventing colours per feature; the product decides what each one means. Use for: The most prominent category in a classified set, or the first series of a chart.- Not
primary. A tone classifies the thing; primary drives an action. A category badge is not a button.
- Not
tone-info— Domain tone: neutral, factual information. Use for: An informational note or banner, a neutral count, a 'did you know' surface.- Not
success. Info states a fact; success states an outcome. Also notprimary— an info banner is not an action.
- Not
tone-warning— Domain tone: proceed with care, nothing is broken yet. Use for: A caution banner, a nearing-limit indicator, a soloed/overridden state in a tool.- Not
destructive. Warning is advisory; destructive is consequential. If nothing is lost by continuing, it is a warning.
- Not
highlight— A marker on content the user is meant to notice — search hits, diffs, annotations. Use for: Highlighting matched text, a changed line, a called-out passage.- Not
accent.accentis UI state that follows the pointer or selection;highlightmarks the content and persists independently of interaction.
- Not
tone-3-foreground— Ink paired withtone-3. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background istone-3. Use them as a pair —bg-tone-3 text-tone-3-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
tone-2-foreground— Ink paired withtone-2. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background istone-2. Use them as a pair —bg-tone-2 text-tone-2-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
tone-1-foreground— Ink paired withtone-1. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background istone-1. Use them as a pair —bg-tone-1 text-tone-1-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
tone-info-foreground— Ink paired withtone-info. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background istone-info. Use them as a pair —bg-tone-info text-tone-info-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
tone-warning-foreground— Ink paired withtone-warning. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background istone-warning. Use them as a pair —bg-tone-warning text-tone-warning-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
highlight-foreground— Ink paired withhighlight. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background ishighlight. Use them as a pair —bg-highlight text-highlight-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
destructive-text—destructivedrawn on a surface: text, icons, borders and focus rings. Use for: Writetext-destructive,border-destructiveorring-destructive— they read this token; onlybg-destructivereads the fill.- Not
destructiveitself for marks on a page. The fill is tuned to carry a label (dark mode lowers it under white ink), which can leave it too dark to read on a dark card.
- Not
success-text—successdrawn on a surface: text, icons, borders and focus rings. Use for: Writetext-success,border-successorring-success— they read this token; onlybg-successreads the fill.- Not
successitself for marks on a page. The fill is tuned to carry a label (dark mode lowers it under white ink), which can leave it too dark to read on a dark card.
- Not
tone-warning-text—tone-warningdrawn on a surface: text, icons, borders and focus rings. Use for: Writetext-tone-warning,border-tone-warningorring-tone-warning— they read this token; onlybg-tone-warningreads the fill.- Not
tone-warningitself for marks on a page. The fill is tuned to carry a label (dark mode lowers it under white ink), which can leave it too dark to read on a dark card.
- Not
tone-info-text—tone-infodrawn on a surface: text, icons, borders and focus rings. Use for: Writetext-tone-info,border-tone-infoorring-tone-info— they read this token; onlybg-tone-inforeads the fill.- Not
tone-infoitself for marks on a page. The fill is tuned to carry a label (dark mode lowers it under white ink), which can leave it too dark to read on a dark card.
- Not
overlay— A scrim over the page behind a modal, and the wash behind media chrome. Use for: Dialog and sheet backdrops, letterboxing, a pill sitting on top of an image.- Not
bg-black/50. Pure black is never right — it crushes whatever is behind it, and a theme cannot tune it. This token is the sanctioned answer, which is whyraw-black-whiteis a lint rule.
- Not
overlay-foreground— Ink paired withoverlay. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background isoverlay. Use them as a pair —bg-overlay text-overlay-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
sidebar— The app sidebar's own surface. Heads a small family (sidebar-*) that lets navigation chrome diverge from the page without overriding page tokens. Use for: TheSidebar/SideNavbackground.- Not
card. A sidebar is persistent chrome, not content — a theme frequently wants it a different tone from the cards inside the page it frames.
- Not
sidebar-foreground— Ink paired withsidebar. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background issidebar. Use them as a pair —bg-sidebar text-sidebar-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
sidebar-primary— The high-emphasis colour within the sidebar. Use for: The active nav item's fill, when the sidebar has its own tonal world.- Not
primary. Page primary on a sidebar surface may not clear contrast; this token is tuned againstsidebar.
- Not
sidebar-primary-foreground— Ink paired withsidebar-primary. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background issidebar-primary. Use them as a pair —bg-sidebar-primary text-sidebar-primary-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
sidebar-accent— The state layer within the sidebar — hover, current. Use for: Hovered or current nav items.- Not
accent, for the same contrast reason assidebar-primary.
- Not
sidebar-accent-foreground— Ink paired withsidebar-accent. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background issidebar-accent. Use them as a pair —bg-sidebar-accent text-sidebar-accent-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
sidebar-border— Hairlines inside the sidebar. Use for: Dividers between nav sections, and the sidebar's own trailing edge.- Not
border, which is tuned against page surfaces.
- Not
sidebar-ring— Focus indicator inside the sidebar. Use for:focus-visibleon nav items.- Not
ring, which is tuned against page surfaces.
- Not
typography (25)
display-4xl— The largest type: display-lg through display-4xl. Marketing-scale, one per view at most. Use for: A landing page hero, a section opener on a brand surface.- Not
heading-1for page titles. Display is a statement; headings are structure. A settings page titled in display-3xl looks like an advert.
- Not
display-3xl— The largest type: display-lg through display-4xl. Marketing-scale, one per view at most. Use for: A landing page hero, a section opener on a brand surface.- Not
heading-1for page titles. Display is a statement; headings are structure. A settings page titled in display-3xl looks like an advert.
- Not
display-2xl— The largest type: display-lg through display-4xl. Marketing-scale, one per view at most. Use for: A landing page hero, a section opener on a brand surface.- Not
heading-1for page titles. Display is a statement; headings are structure. A settings page titled in display-3xl looks like an advert.
- Not
display-xl— The largest type: display-lg through display-4xl. Marketing-scale, one per view at most. Use for: A landing page hero, a section opener on a brand surface.- Not
heading-1for page titles. Display is a statement; headings are structure. A settings page titled in display-3xl looks like an advert.
- Not
display-lg— The largest type: display-lg through display-4xl. Marketing-scale, one per view at most. Use for: A landing page hero, a section opener on a brand surface.- Not
heading-1for page titles. Display is a statement; headings are structure. A settings page titled in display-3xl looks like an advert.
- Not
heading-1— Structural document headings, heading-1 through heading-4. Use for: The real outline of a page. Pick the level by depth in the document, not by desired size.- Not
displayfor size, ortitlefor structure. If it belongs in a table of contents, it is a heading.
- Not
heading-2— Structural document headings, heading-1 through heading-4. Use for: The real outline of a page. Pick the level by depth in the document, not by desired size.- Not
displayfor size, ortitlefor structure. If it belongs in a table of contents, it is a heading.
- Not
heading-3— Structural document headings, heading-1 through heading-4. Use for: The real outline of a page. Pick the level by depth in the document, not by desired size.- Not
displayfor size, ortitlefor structure. If it belongs in a table of contents, it is a heading.
- Not
heading-4— Structural document headings, heading-1 through heading-4. Use for: The real outline of a page. Pick the level by depth in the document, not by desired size.- Not
displayfor size, ortitlefor structure. If it belongs in a table of contents, it is a heading.
- Not
title-lg— The title of a component, not of a document. Use for: A card's heading, a dialog title, a section label inside a panel.- Not
heading-*. A card title is not part of the page outline, and using a heading tier for it produces a document structure that lies to a screen reader's heading navigation.
- Not
title-sm— The title of a component, not of a document. Use for: A card's heading, a dialog title, a section label inside a panel.- Not
heading-*. A card title is not part of the page outline, and using a heading tier for it produces a document structure that lies to a screen reader's heading navigation.
- Not
body-lg— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
body-md— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
body-sm— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
body-xs— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
label-lg— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
label-md— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
label-sm— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
label-xs— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
caption— The smallest page-register tier. Metadata beneath something. Use for: Image captions, timestamps, footnotes, a card's secondary line.- Not
text-overline. Caption sits below and explains; overline sits above and categorises.
- Not
mono-xl— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
mono-lg— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
mono-md— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
mono-caption— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
mono-sm— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
radii (7)
none— Square. A deliberate 0. Use for: Edge-to-edge surfaces, table cells, anything whose corners meet another element's corners.- Not omitting a radius class. Stating
nonerecords the intent; omitting it means the next person cannot tell square-on-purpose from square-by-accident.
- Not omitting a radius class. Stating
xs— The tightest real corner. Reads as 'crisp', not 'rounded'. Use for: Tool-chrome controls, tree rows, small swatches — anywhere the radius should be felt but not seen. The workspace register runs ~5px on essentially everything.- Not
sm. In a 24px-tall control ansmradius starts to read as a lozenge.
- Not
sm— The default control corner. Use for: Inputs, buttons in the page register, badges, small cards.md— A container corner. Use for: Cards, panels, popovers, menus — surfaces that hold other things.- Not
sm. A container should be softer than the controls inside it, or the nesting reads inverted.
- Not
lg— A prominent container corner. Use for: Dialogs, sheets, hero media, feature cards.xl— The softest rectangular corner. A styling statement. Use for: Marketing surfaces, large imagery, a theme that wants a soft character.- Not
full.xlis still a rectangle with soft corners;fullis a capsule. Usingxlon a small element makes it look like a failed capsule.
- Not
full— A capsule or circle — radius exceeds half the height. Use for: Avatars, status dots, notification badges, pills, and page-register actions (the 'round action in a tight container' contrast that says this is a control).- Not any fixed radius, for circles. And NOT in tool chrome: neither Figma nor Paper has a single pill in its chrome, which is why the compact density scope flattens
--button-radiusto ~5px.
- Not any fixed radius, for circles. And NOT in tool chrome: neither Figma nor Paper has a single pill in its chrome, which is why the compact density scope flattens
layout (11)
rhythm-unit— The vertical rhythm base — one baseline step (8px at the default scale). Every vertical measure is a multiple of it, and it follows the type and the density control. Use for: ThroughStack/Row/Gridgap numbers, which are rhythm units rather than pixels. A gap of 2 is 16px at the default scale, and grows or tightens with density.- Not arbitrary vertical spacing. The rhythm is what makes unrelated sections of a page feel like one document.
grid-columns— The column count of the content grid — 12. Use for:Grid/Columns, WITHIN a region, for genuinely multi-column content.- Not using a column span as the page's reading width. A span is not a measure — see
measure-prose.
- Not using a column span as the page's reading width. A span is not a measure — see
grid-gutter— The gap between grid columns and rows — 2 baseline steps on phones, 3 on desktop, snapped to the step. Use for:Grid/Columnsspacing.page-inset— The page's outer breathing room, left and right. Use for: The gutter between content and the viewport edge, at every breakpoint.- Not a global max-width. Sable caps width per REGION by role, never once for the whole page.
measure-prose— The maximum comfortable line length for prose, inch. Use for: Any long-form text column.- Not a layout width. Measure and width are different things: a wide region can still hold a narrow measure, and capping the region instead makes everything else in it too narrow.
region-form— The region cap for a form — narrow, because fields should not run long. Use for: Settings pages, auth screens, any column of inputs.- Not
region-content. A 700px-wide text input is harder to use, not more generous.
- Not
region-feed— The region cap for a scrolling list of items. Use for: Feeds, timelines, search results.region-content— The default region cap for mixed page content. Use for: Article bodies with media, documentation, most product pages.region-wide— A wide region for dense or tabular content. Use for: Data tables, dashboards, galleries — content that genuinely needs the room.region-full— No cap. Edge to edge. Use for: Hero imagery, full-bleed sections, and a workspace, which is always edge-to-edge.region-ultrawide (legacy — prefer region-full)— Deprecated. Kept so existing usage keeps resolving. Use for: Nothing new. Useregion-full.- Not
region-full, which is what this became.
- Not
typographyOverrides (61)
type-base— The base size the page type scale is built on, as a unitless px number — 16 by default. Every page tier keeps its ratio to it, so14rebuilds the whole scale at 14, and the baseline step and spacing follow the body down. Use for: When the product asks for smaller or larger type everywhere: a dense technical tool at 13-14, a reading product at 17. Set it on :root, a theme scope or a preset (tokens.shared["type-base"]: "14"), not per component.- Not Changing the root font-size, which also moves every rem the app wrote and the control ladder; or overriding tier sizes one by one, which breaks the ratios between them. Unitless:
14, never14px.
- Not Changing the root font-size, which also moves every rem the app wrote and the control ladder; or overriding tier sizes one by one, which breaks the ratios between them. Unitless:
type-display-4xl-size— The largest type: display-lg through display-4xl. Marketing-scale, one per view at most. Use for: A landing page hero, a section opener on a brand surface.- Not
heading-1for page titles. Display is a statement; headings are structure. A settings page titled in display-3xl looks like an advert.
- Not
type-title-lg-size— The title of a component, not of a document. Use for: A card's heading, a dialog title, a section label inside a panel.- Not
heading-*. A card title is not part of the page outline, and using a heading tier for it produces a document structure that lies to a screen reader's heading navigation.
- Not
type-title-sm-size— The title of a component, not of a document. Use for: A card's heading, a dialog title, a section label inside a panel.- Not
heading-*. A card title is not part of the page outline, and using a heading tier for it produces a document structure that lies to a screen reader's heading navigation.
- Not
type-body-lg-size— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-lg-weight— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-lg-leading— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-lg-tracking— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-md-size— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-md-weight— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-md-leading— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-md-tracking— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-sm-size— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-sm-weight— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-sm-leading— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-sm-tracking— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-xs-size— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-xs-weight— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-xs-leading— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-body-xs-tracking— The reading tier: body-lg through body-xs. Prose and long-form content. Use for: Paragraphs, descriptions, help text, anything a person reads a sentence of.- Not
label-*. Body is for reading, label is for naming. A form's help text is body; the field's name is a label. Getting this wrong is why some UIs feel like a wall of controls.
- Not
type-label-lg-size— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-lg-weight— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-lg-leading— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-lg-tracking— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-md-size— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-md-weight— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-md-leading— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-md-tracking— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-sm-size— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-sm-weight— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-sm-leading— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-sm-tracking— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-xs-size— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-xs-weight— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-xs-leading— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-xs-tracking— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-label-xs-transform— The naming tier: label-lg through label-xs. Short, denser, slightly heavier. Use for: Field labels, table column headers, button text, tab titles, chip text.- Not
body-*at the same size. Labels carry more weight and tighter leading because they are scanned, not read.
- Not
type-caption-size— The smallest page-register tier. Metadata beneath something. Use for: Image captions, timestamps, footnotes, a card's secondary line.- Not
text-overline. Caption sits below and explains; overline sits above and categorises.
- Not
type-caption-weight— The smallest page-register tier. Metadata beneath something. Use for: Image captions, timestamps, footnotes, a card's secondary line.- Not
text-overline. Caption sits below and explains; overline sits above and categorises.
- Not
type-caption-leading— The smallest page-register tier. Metadata beneath something. Use for: Image captions, timestamps, footnotes, a card's secondary line.- Not
text-overline. Caption sits below and explains; overline sits above and categorises.
- Not
type-caption-tracking— The smallest page-register tier. Metadata beneath something. Use for: Image captions, timestamps, footnotes, a card's secondary line.- Not
text-overline. Caption sits below and explains; overline sits above and categorises.
- Not
type-mono-xl-size— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-xl-weight— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-xl-leading— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-xl-tracking— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-lg-size— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-lg-weight— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-lg-leading— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-lg-tracking— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-md-size— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-md-weight— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-md-leading— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-md-tracking— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-caption-size— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-caption-weight— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-caption-leading— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-caption-tracking— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-sm-size— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-sm-weight— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-sm-leading— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
type-mono-sm-tracking— The monospace family: mono-xl through mono-sm, plus mono-caption. Use for: Code, identifiers, hashes, keyboard keys, and any figure where digits must align in a column.- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
text-ui-numsolves in chrome and mono solves on a page.
- Not the sans tiers for numeric data. Proportional digits make a column of numbers ragged; that is what
derived (28)
canvas— The WORK surface — the artboard, the document being edited. Use for: Behind the thing the tool operates on.WorkspaceCanvasuses it.- Not
background. The thing being edited is not the page behind the UI, and collapsing the two makes the document indistinguishable from its chrome.
- Not
canvas-foreground— Ink paired withcanvas. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background iscanvas. Use them as a pair —bg-canvas text-canvas-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
panel— Docked chrome: the surface of a side panel or an inspector. Use for:Panel,WorkspaceBar,StatusBarbackgrounds.- Not
card. Panels are chrome and sit in a deliberately compressed tonal band — see DESIGN.md → Registers. A card's elevation language is wrong here.
- Not
panel-foreground— Ink paired withpanel. Evaluate the rendered contrast together; never choose it independently. Use for: Whenever the background ispanel. Use them as a pair —bg-panel text-panel-foreground— so a theme can retune the surface and the ink together.- Not
foreground. That is the ink forbackgroundonly; on any other surface it is a contrast gamble that happens to pass in the default theme and fails in another.
- Not
panel-raised— One step up frompanel: a selected row, a hover fill, a nested well. Use for: Tree row selection, hovered panel rows, and the light square of a checkerboard.- Not
accent. In a workspace the tonal band is only a few units wide;accentis a page-register step and reads as a shout in chrome.
- Not
panel-field— The inset fill of a compact control docked in a panel. Use for: Thesize="xs"field rung (Input, SelectTrigger, ScrubField share it) and<Button variant="field">. A panel control of your own that should sit among those fields.- Not
canvas.canvasnames the work surface, and its step off the panel is too faint to read as a field in dark mode. This one is mixed from the panel itself, so it follows a theme that retunes the panel. Tune it with--theme-panel-field.
- Not
panel-field-hover— The hover step of apanel-fieldcontrol. Use for:hover:bg-panel-field-hoveron anything filled withpanel-field.- Not
hover:bg-panel-raised. A fixed surface token as a hover is what the surface-hover lint rejects; this one is defined against the panel field it steps from.
- Not
hairline— The 1px structural line that carries all separation in tool chrome. Use for: Between panel sections, under a toolbar, above a status bar.- Not a bigger tonal step. This is one of the two rules the workspace register deliberately reverses: on a page prefer space or tone over a line, in chrome the hairline is the structure.
hairline-strong— A hairline that must be seen — an input edge, a swatch ring. Use for: Bounding a control whose fill is arbitrary (a colour swatch) or user content.- Not
hairline, when the line would otherwise disappear against what it bounds.
- Not
border-floating— The edge of a floating surface. Fainter thanborder: the shadow carries the elevation. Use for: Every floating surface — popover, menu, select, tooltip, dialog, sheet, toast, a floating panel — asborder-border-floatingorring-border-floating, together withbg-popoverand ashadow-md+ shadow. Derived for every theme (a faint alpha of the foreground); a theme may tune it with--theme-border-floating.- Not
border. A full hairline plus a shadow stacks into a heavy outline around anything that floats.borderis for resting edges: inputs, cards, badges.
- Not
field— The fill of a text field: Input, Textarea, Select, Combobox, SearchInput, InputGroup, ChatComposer. Use for: Read by every field through its shell, so you rarely name it. Derived for every theme (card, an outlined field on the card); a theme fills its fields instead with--theme-field: var(--muted)and--theme-field-border: transparent, and every field changes at once. Name it only for a field-shaped surface of your own that must match.- Not
cardormutedon a hand-built field. A field that paintscardkeeps its outline when the theme fills the rest, and one that paintsmutedstays filled when the theme outlines them.
- Not
field-border— The outline of a text field. Derived frominput;transparentin a theme with filled fields. Use for: Withfield, on the same field-shaped surfaces. Tune it with--theme-field-border.- Not
inputon a text field.inputstays the theme's outline colour for form chrome; this is the field's outline, which a filled theme turns off.
- Not
shell-ground— The ground of an inset app frame: the rail and the gap around the raised main panel. Use for: Painted by<AppShell frame="inset">and the Sidebar in its slot; you rarely name it. Derived for every theme as one step offsidebartoward its ink, so the panel reads as lifted even where the rail is the page colour. Tune it with--theme-shell-ground.- Not
sidebarorcanvasbehind an inset panel.sidebaris the page colour in most themes, so the panel would sit on itself;canvasis a workspace's artboard, not app chrome.
- Not
destructive-mark—destructiveat graphic strength: the same hue lifted and saturated, for a mark that carries no text. Use for: A meter's or progress fill, a segmented bar, a status dot, a chart series, and the soft tint behind a badge or note (bg-destructive-mark/15). Held to 2:1 on the page — visibility, not a text ratio — because each of these sits beside text that says the same thing. Every bundled theme tunes its own; a preset sets--theme-destructive-markor gets one derived fromdestructive.- Not
bg-destructiveon a mark. The fill is pinned dark enough to carry a white label, so a meter or dot painted with it reads brown, forest or plum. And not for text — that istext-destructive— nor for a graphic that is the only carrier of its meaning, which owes 3:1 (WCAG 1.4.11): use the fill or add the text.
- Not
success-mark—successat graphic strength: the same hue lifted and saturated, for a mark that carries no text. Use for: A meter's or progress fill, a segmented bar, a status dot, a chart series, and the soft tint behind a badge or note (bg-success-mark/15). Held to 2:1 on the page — visibility, not a text ratio — because each of these sits beside text that says the same thing. Every bundled theme tunes its own; a preset sets--theme-success-markor gets one derived fromsuccess.- Not
bg-successon a mark. The fill is pinned dark enough to carry a white label, so a meter or dot painted with it reads brown, forest or plum. And not for text — that istext-success— nor for a graphic that is the only carrier of its meaning, which owes 3:1 (WCAG 1.4.11): use the fill or add the text.
- Not
tone-warning-mark—tone-warningat graphic strength: the same hue lifted and saturated, for a mark that carries no text. Use for: A meter's or progress fill, a segmented bar, a status dot, a chart series, and the soft tint behind a badge or note (bg-tone-warning-mark/15). Held to 2:1 on the page — visibility, not a text ratio — because each of these sits beside text that says the same thing. Every bundled theme tunes its own; a preset sets--theme-tone-warning-markor gets one derived fromtone-warning.- Not
bg-tone-warningon a mark. The fill is pinned dark enough to carry a white label, so a meter or dot painted with it reads brown, forest or plum. And not for text — that istext-tone-warning— nor for a graphic that is the only carrier of its meaning, which owes 3:1 (WCAG 1.4.11): use the fill or add the text.
- Not
tone-info-mark—tone-infoat graphic strength: the same hue lifted and saturated, for a mark that carries no text. Use for: A meter's or progress fill, a segmented bar, a status dot, a chart series, and the soft tint behind a badge or note (bg-tone-info-mark/15). Held to 2:1 on the page — visibility, not a text ratio — because each of these sits beside text that says the same thing. Every bundled theme tunes its own; a preset sets--theme-tone-info-markor gets one derived fromtone-info.- Not
bg-tone-infoon a mark. The fill is pinned dark enough to carry a white label, so a meter or dot painted with it reads brown, forest or plum. And not for text — that istext-tone-info— nor for a graphic that is the only carrier of its meaning, which owes 3:1 (WCAG 1.4.11): use the fill or add the text.
- Not
tone-1-mark—tone-1at graphic strength: the same hue lifted and saturated, for a mark that carries no text. Use for: A meter's or progress fill, a segmented bar, a status dot, a chart series, and the soft tint behind a badge or note (bg-tone-1-mark/15). Held to 2:1 on the page — visibility, not a text ratio — because each of these sits beside text that says the same thing. Every bundled theme tunes its own; a preset sets--theme-tone-1-markor gets one derived fromtone-1.- Not
bg-tone-1on a mark. The fill is pinned dark enough to carry a white label, so a meter or dot painted with it reads brown, forest or plum. And not for text — that istext-tone-1— nor for a graphic that is the only carrier of its meaning, which owes 3:1 (WCAG 1.4.11): use the fill or add the text.
- Not
tone-2-mark—tone-2at graphic strength: the same hue lifted and saturated, for a mark that carries no text. Use for: A meter's or progress fill, a segmented bar, a status dot, a chart series, and the soft tint behind a badge or note (bg-tone-2-mark/15). Held to 2:1 on the page — visibility, not a text ratio — because each of these sits beside text that says the same thing. Every bundled theme tunes its own; a preset sets--theme-tone-2-markor gets one derived fromtone-2.- Not
bg-tone-2on a mark. The fill is pinned dark enough to carry a white label, so a meter or dot painted with it reads brown, forest or plum. And not for text — that istext-tone-2— nor for a graphic that is the only carrier of its meaning, which owes 3:1 (WCAG 1.4.11): use the fill or add the text.
- Not
tone-3-mark—tone-3at graphic strength: the same hue lifted and saturated, for a mark that carries no text. Use for: A meter's or progress fill, a segmented bar, a status dot, a chart series, and the soft tint behind a badge or note (bg-tone-3-mark/15). Held to 2:1 on the page — visibility, not a text ratio — because each of these sits beside text that says the same thing. Every bundled theme tunes its own; a preset sets--theme-tone-3-markor gets one derived fromtone-3.- Not
bg-tone-3on a mark. The fill is pinned dark enough to carry a white label, so a meter or dot painted with it reads brown, forest or plum. And not for text — that istext-tone-3— nor for a graphic that is the only carrier of its meaning, which owes 3:1 (WCAG 1.4.11): use the fill or add the text.
- Not
chart-1— Slot 1 of the categorical chart palette: the colour series 1 takes when it names none. Use for: Read throughchartColor(0)(orvar(--chart-1)) for a series with no meaning attached — a category, a product, a region — and to hand the theme's palette to a charting library. Take the slots in order: the set is validated as neighbours, so skipping slots can put two similar hues side by side. Past eight series, fold the rest into "Other".- Not A tone mark (
tone-1-mark,success-mark) when the series MEANS something — revenue is the brand, errors are destructive. The chart palette is for categories with no meaning, and a reader will not map its colours to status. And not a palette family step (blue-500): those are tuned for washes and text, not for separating eight neighbours under colour-blindness.
- Not A tone mark (
chart-2— Slot 2 of the categorical chart palette: the colour series 2 takes when it names none. Use for: Read throughchartColor(1)(orvar(--chart-2)) for a series with no meaning attached — a category, a product, a region — and to hand the theme's palette to a charting library. Take the slots in order: the set is validated as neighbours, so skipping slots can put two similar hues side by side. Past eight series, fold the rest into "Other".- Not A tone mark (
tone-1-mark,success-mark) when the series MEANS something — revenue is the brand, errors are destructive. The chart palette is for categories with no meaning, and a reader will not map its colours to status. And not a palette family step (blue-500): those are tuned for washes and text, not for separating eight neighbours under colour-blindness.
- Not A tone mark (
chart-3— Slot 3 of the categorical chart palette: the colour series 3 takes when it names none. Use for: Read throughchartColor(2)(orvar(--chart-3)) for a series with no meaning attached — a category, a product, a region — and to hand the theme's palette to a charting library. Take the slots in order: the set is validated as neighbours, so skipping slots can put two similar hues side by side. Past eight series, fold the rest into "Other".- Not A tone mark (
tone-1-mark,success-mark) when the series MEANS something — revenue is the brand, errors are destructive. The chart palette is for categories with no meaning, and a reader will not map its colours to status. And not a palette family step (blue-500): those are tuned for washes and text, not for separating eight neighbours under colour-blindness.
- Not A tone mark (
chart-4— Slot 4 of the categorical chart palette: the colour series 4 takes when it names none. Use for: Read throughchartColor(3)(orvar(--chart-4)) for a series with no meaning attached — a category, a product, a region — and to hand the theme's palette to a charting library. Take the slots in order: the set is validated as neighbours, so skipping slots can put two similar hues side by side. Past eight series, fold the rest into "Other".- Not A tone mark (
tone-1-mark,success-mark) when the series MEANS something — revenue is the brand, errors are destructive. The chart palette is for categories with no meaning, and a reader will not map its colours to status. And not a palette family step (blue-500): those are tuned for washes and text, not for separating eight neighbours under colour-blindness.
- Not A tone mark (
chart-5— Slot 5 of the categorical chart palette: the colour series 5 takes when it names none. Use for: Read throughchartColor(4)(orvar(--chart-5)) for a series with no meaning attached — a category, a product, a region — and to hand the theme's palette to a charting library. Take the slots in order: the set is validated as neighbours, so skipping slots can put two similar hues side by side. Past eight series, fold the rest into "Other".- Not A tone mark (
tone-1-mark,success-mark) when the series MEANS something — revenue is the brand, errors are destructive. The chart palette is for categories with no meaning, and a reader will not map its colours to status. And not a palette family step (blue-500): those are tuned for washes and text, not for separating eight neighbours under colour-blindness.
- Not A tone mark (
chart-6— Slot 6 of the categorical chart palette: the colour series 6 takes when it names none. Use for: Read throughchartColor(5)(orvar(--chart-6)) for a series with no meaning attached — a category, a product, a region — and to hand the theme's palette to a charting library. Take the slots in order: the set is validated as neighbours, so skipping slots can put two similar hues side by side. Past eight series, fold the rest into "Other".- Not A tone mark (
tone-1-mark,success-mark) when the series MEANS something — revenue is the brand, errors are destructive. The chart palette is for categories with no meaning, and a reader will not map its colours to status. And not a palette family step (blue-500): those are tuned for washes and text, not for separating eight neighbours under colour-blindness.
- Not A tone mark (
chart-7— Slot 7 of the categorical chart palette: the colour series 7 takes when it names none. Use for: Read throughchartColor(6)(orvar(--chart-7)) for a series with no meaning attached — a category, a product, a region — and to hand the theme's palette to a charting library. Take the slots in order: the set is validated as neighbours, so skipping slots can put two similar hues side by side. Past eight series, fold the rest into "Other".- Not A tone mark (
tone-1-mark,success-mark) when the series MEANS something — revenue is the brand, errors are destructive. The chart palette is for categories with no meaning, and a reader will not map its colours to status. And not a palette family step (blue-500): those are tuned for washes and text, not for separating eight neighbours under colour-blindness.
- Not A tone mark (
chart-8— Slot 8 of the categorical chart palette: the colour series 8 takes when it names none. Use for: Read throughchartColor(7)(orvar(--chart-8)) for a series with no meaning attached — a category, a product, a region — and to hand the theme's palette to a charting library. Take the slots in order: the set is validated as neighbours, so skipping slots can put two similar hues side by side. Past eight series, fold the rest into "Other".- Not A tone mark (
tone-1-mark,success-mark) when the series MEANS something — revenue is the brand, errors are destructive. The chart palette is for categories with no meaning, and a reader will not map its colours to status. And not a palette family step (blue-500): those are tuned for washes and text, not for separating eight neighbours under colour-blindness.
- Not A tone mark (
Generated palette
More colour for apps, generated from the active theme: neutral and eight hue families, plus a 50–950 scale under every tone. Each family keeps its hue and leans toward the brand (half the gap, at most 15°; --theme-palette-harmony scales it, 0 = own hues). Neutral is the theme's --background mixed toward its --foreground. Steps follow the mode: low steps sit near the page and high ones far from it in light and dark alike, so a pair needs no dark: variant. For decorative and categorical colour (tags, avatars, labels, legends, illustration); surfaces, text and actions take roles. Components never name a step.
- Families:
neutral,red,orange,yellow,green,teal,blue,purple,pink, each 50–950. - Tone scales:
tone-1-*,tone-2-*,tone-3-*,tone-info-*,tone-warning-*,success-*,destructive-*; one ladder of depths shared by every tone, with the tone exactly on the step nearest its own lightness (500 for a mid tone, 800 for a light status colour in dark mode). Use the tone token itself for the tone. - Use as: bg-blue-100, text-blue-800, border-neutral-200, bg-tone-1-100 — or var(--teal-500). Tailwind's other families (slate, gray, zinc, stone, amber, lime, emerald, cyan, sky, indigo, violet, fuchsia, rose) are switched off.
- tag / label: bg-
-100 text- -800 (held to 4.5:1 in every theme and mode) - text on the page: text-
-700 - solid fill: bg-
-700 text- -50 - hairline: border-
-300 - Components: Badge, Pill and StatusDot take a family as tone (tone="blue"): a category with no meaning attached.
- Slots: data-palette="
" on an element fills these from that family, so one set of classes paints any family: bg-palette-wash text-palette-text.