Tokens
Every value Tessera uses, as CSS variables in tokens.css. Swatches follow the mode and accent you pick in the header. Source: tokens.json.
Semantic colour
Use these in product UI. They switch with data-theme and the accent options.
| Token | Light | Dark | Usage |
|---|---|---|---|
bg-page | #fafafa | #0f0f11 | Page ground behind cards and panels. |
surface | #ffffff | #18181b | Cards, app header, inputs, table body. |
surface-raised | #ffffff | #1f1f23 | Menus, popovers, dialogs, drawers, toasts: anything that floats above surface. |
surface-muted | #f4f4f5 | #27272b | Board columns, table header row, read-only and disabled fields, skeletons. |
surface-hover | rgba(24,24,27,0.05) | rgba(255,255,255,0.06) | Hover tint on transparent controls, menu items and table rows. |
surface-active | rgba(24,24,27,0.09) | rgba(255,255,255,0.11) | Pressed tint on transparent controls. |
surface-inverse | #18181b | #e9e9ec | Tooltips and toasts. |
scrim | rgba(15,15,17,0.48) | rgba(0,0,0,0.64) | Overlay behind dialogs, drawers and the command palette. |
border | #dcdce0 | #323238 | Card, panel, table and menu borders (decorative, not a control edge). |
border-subtle | #e9e9ec | #27272b | Row dividers and section rules inside a card. |
border-control | #7c7c86 | #7c7c86 | Edges of inputs, selects, checkboxes, radios, switches. 3:1 on surface and bg-page in both themes. |
focus-ring | #4f46e5 | #a6acfb | 2px focus ring outside every interactive element, 2px offset. 3:1+ on every surface. |
text | #18181b | #f4f4f5 | Body and title text on surface, surface-raised, surface-muted and bg-page. |
text-subtle | #45454d | #dcdce0 | Secondary text and labels on surface, surface-muted and bg-page. |
text-muted | #5f5f69 | #b9b9c0 | Metadata, timestamps, placeholders, helper text on surface, surface-muted and bg-page. |
text-disabled | #7c7c86 | #7c7c86 | Disabled labels only (exempt from contrast minimums). |
text-accent | #4f46e5 | #a6acfb | Links and selected labels on surface, bg-page and accent-subtle. |
text-inverse | #f4f4f5 | #18181b | Text on surface-inverse (tooltips, toasts). |
accent | #4f46e5 | #838af7 | Primary button fill, checked controls, selected-tab bar, slider and progress fill. |
accent-hover | #4036c4 | #c4c8fd | Hover on accent fills. |
on-accent | #ffffff | #0f0f11 | Text and icons on accent and accent-hover. |
accent-subtle | #eef0ff | #232052 | Selected rows and nav items, accent badges, today in calendars. |
info | #0868b3 | #7cc4f5 | Info text and icons on surface and info-subtle. |
info-subtle | #e8f4fd | #0c2a40 | Info alert, banner and badge ground. |
success | #147844 | #6fd19c | Success text and icons on surface and success-subtle. Always paired with a word or icon. |
success-subtle | #e7f6ed | #0e2e1d | Success alert, banner and badge ground. |
warning | #985a00 | #f5c060 | Warning text and icons on surface and warning-subtle. Always paired with a word or icon. |
warning-subtle | #fdf4e1 | #392708 | Warning alert, banner and badge ground. |
critical | #c42b2b | #f59a96 | Error text, destructive button fill, critical icons on surface and critical-subtle. |
critical-hover | #a32020 | #f9c0bd | Hover and pressed on critical fills. |
critical-subtle | #fdecec | #3f1515 | Critical alert, banner and badge ground. |
on-critical | #ffffff | #0f0f11 | Text on a critical fill. |
new | #7a35d4 | #c9a6f7 | New, beta and discovery labels on surface and new-subtle. |
new-subtle | #f4eefe | #2c1748 | New badge ground. |
info-on-inverse | #7cc4f5 | #0868b3 | Info and neutral icons on surface-inverse (toasts). |
success-on-inverse | #6fd19c | #147844 | Success icons on surface-inverse (toasts). |
warning-on-inverse | #f5c060 | #985a00 | Warning icons on surface-inverse (toasts). |
critical-on-inverse | #f59a96 | #c42b2b | Critical icons on surface-inverse (toasts). |
Palette
Ramps the semantic tokens point to. Reach for a semantic token first.
gray
gray-0#ffffff
gray-25#fafafa
gray-50#f4f4f5
gray-100#e9e9ec
gray-200#dcdce0
gray-300#b9b9c0
gray-400#9b9ba4
gray-500#7c7c86
gray-600#5f5f69
gray-700#45454d
gray-750#323238
gray-800#27272b
gray-850#1f1f23
gray-900#18181b
gray-950#0f0f11
indigo
indigo-50#eef0ff
indigo-100#e0e3ff
indigo-200#c4c8fd
indigo-300#a6acfb
indigo-400#838af7
indigo-500#6366f1
indigo-600#4f46e5
indigo-700#4036c4
indigo-900#232052
sky
sky-50#e8f4fd
sky-300#7cc4f5
sky-600#0868b3
sky-900#0c2a40
green
green-50#e7f6ed
green-300#6fd19c
green-600#147844
green-900#0e2e1d
amber
amber-50#fdf4e1
amber-300#f5c060
amber-600#985a00
amber-900#392708
red
red-50#fdecec
red-200#f9c0bd
red-300#f59a96
red-600#c42b2b
red-700#a32020
red-900#3f1515
violet
violet-50#f4eefe
violet-300#c9a6f7
violet-600#7a35d4
violet-900#2c1748
Type
| Style | Size / line | Weight | Usage |
|---|---|---|---|
Order desk title-1 | 24px / 32px | 600 | Page title on landing and overview pages. One per page. |
Customer details title-2 | 20px / 28px | 600 | Page title (PageHeader). |
Associated company title-3 | 16px / 24px | 600 | Dialog and drawer titles. |
5 cases title-4 | 14px / 20px | 600 | Card titles, section headers, fieldset legends, board column headers. |
A case tracks one customer request from open to closed. body | 14px / 22px | 400 | Multi-line prose: descriptions, dialog body, comments, docs. Same size as ui with a looser line height. |
Refund requested for a damaged item ui | 14px / 20px | 400 | The workhorse: table cells, field values, card content, menus. |
Assignee ui-strong | 14px / 20px | 600 | Field labels, button labels, tab labels, emphasised values. |
Updated 2 Sep 2026, 10:12 small | 12px / 16px | 400 | Helper text and timestamps. Never for body copy. |
High small-strong | 12px / 16px | 500 | Badge, tag and count labels; column headers in dense tables. |
€12,480.00 num-display | 24px / 32px | 600 | Stat values and other headline figures. |
1,284 · 2 Sep 2026, 10:12 num-ui | 14px / 20px | 400 | Amounts, counts, dates and times in table cells, fields and lists. Tabular figures. |
€1,240.00 num-ui-strong | 14px / 20px | 600 | Totals and emphasised figures. |
+12% vs last week num-small | 12px / 16px | 400 | Deltas, timestamps and progress values. |
128 num-small-strong | 12px / 16px | 500 | Counts on tabs, nav items and badges. |
org_7Q2M9X4KD1 mono | 13px / 20px | 400 | IDs, keys and code, in Geist Mono by default. Pair with CopyButton when the value is meant to be copied. |
Spacing
| Token | Value | Usage |
|---|---|---|
space-0 | 0px | Flush edges. |
space-2 | 2px | Gap between nav items; icon-to-text nudge inside dense controls. |
space-4 | 4px | Gap between a label and its value; badge padding block. |
space-6 | 6px | Icon-to-label gap in buttons and tabs; block padding of list rows and table headers. |
space-8 | 8px | Small button padding, table cell block padding, gap between buttons, between tight inline items. |
space-12 | 12px | Default button and field padding, table cell inline padding, gap between form fields, compact card padding. |
space-16 | 16px | Card, dialog and drawer padding; gap between cards and page sections. |
space-24 | 24px | Page gutter; gap between major page regions. |
space-32 | 32px | Empty-state padding; top padding on sparse pages. |
space-48 | 48px | Rare: spacing on landing and onboarding pages. |
space-64 | 64px | Rare: hero spacing on marketing-style pages. Never inside components. |
Radius
| Token | Value | Usage |
|---|---|---|
radius-xs | 2px | Checkboxes, focus ring corners on tight items. |
radius-sm | 4px | Inputs, selects, menus, tooltips, badges. |
radius-md | 6px | Buttons, icon buttons, board columns. |
radius-lg | 8px | Cards, dialogs, tables, popovers' outer frame. |
radius-pill | 999px | Switch tracks, avatars, count pills on tabs. |
Shadow
| Token | Value | Usage |
|---|---|---|
shadow-sm | 0 1px 2px rgba(15,15,17,0.08) | App header, cards resting on bg-page. |
shadow-md | 0 2px 4px rgba(15,15,17,0.06), 0 6px 16px rgba(15,15,17,0.08) | Menus, popovers, select lists, tooltips. |
shadow-lg | 0 8px 24px rgba(15,15,17,0.12), 0 24px 56px rgba(15,15,17,0.12) | Dialogs and drawers. |
Size
| Token | Value | Usage |
|---|---|---|
control-xs | 24px | Inline controls inside table rows, tags and toolbars of dense panels. |
control-sm | 28px | Toolbars, filter bars, table toolbars, side panels. |
control-md | 32px | Default height for buttons, fields, selects, nav items and menu items. |
control-lg | 40px | Tabs; the primary action on sparse pages such as sign-in or onboarding. |
header-height | 48px | AppHeader height. |
sidenav-rail | 56px | Collapsed SideNav width. |
sidenav-open | 240px | Expanded SideNav width. |