Tessera
GitHub

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.

TokenLightDarkUsage
bg-page#fafafa#0f0f11Page ground behind cards and panels.
surface#ffffff#18181bCards, app header, inputs, table body.
surface-raised#ffffff#1f1f23Menus, popovers, dialogs, drawers, toasts: anything that floats above surface.
surface-muted#f4f4f5#27272bBoard columns, table header row, read-only and disabled fields, skeletons.
surface-hoverrgba(24,24,27,0.05)rgba(255,255,255,0.06)Hover tint on transparent controls, menu items and table rows.
surface-activergba(24,24,27,0.09)rgba(255,255,255,0.11)Pressed tint on transparent controls.
surface-inverse#18181b#e9e9ecTooltips and toasts.
scrimrgba(15,15,17,0.48)rgba(0,0,0,0.64)Overlay behind dialogs, drawers and the command palette.
border#dcdce0#323238Card, panel, table and menu borders (decorative, not a control edge).
border-subtle#e9e9ec#27272bRow dividers and section rules inside a card.
border-control#7c7c86#7c7c86Edges of inputs, selects, checkboxes, radios, switches. 3:1 on surface and bg-page in both themes.
focus-ring#4f46e5#a6acfb2px focus ring outside every interactive element, 2px offset. 3:1+ on every surface.
text#18181b#f4f4f5Body and title text on surface, surface-raised, surface-muted and bg-page.
text-subtle#45454d#dcdce0Secondary text and labels on surface, surface-muted and bg-page.
text-muted#5f5f69#b9b9c0Metadata, timestamps, placeholders, helper text on surface, surface-muted and bg-page.
text-disabled#7c7c86#7c7c86Disabled labels only (exempt from contrast minimums).
text-accent#4f46e5#a6acfbLinks and selected labels on surface, bg-page and accent-subtle.
text-inverse#f4f4f5#18181bText on surface-inverse (tooltips, toasts).
accent#4f46e5#838af7Primary button fill, checked controls, selected-tab bar, slider and progress fill.
accent-hover#4036c4#c4c8fdHover on accent fills.
on-accent#ffffff#0f0f11Text and icons on accent and accent-hover.
accent-subtle#eef0ff#232052Selected rows and nav items, accent badges, today in calendars.
info#0868b3#7cc4f5Info text and icons on surface and info-subtle.
info-subtle#e8f4fd#0c2a40Info alert, banner and badge ground.
success#147844#6fd19cSuccess text and icons on surface and success-subtle. Always paired with a word or icon.
success-subtle#e7f6ed#0e2e1dSuccess alert, banner and badge ground.
warning#985a00#f5c060Warning text and icons on surface and warning-subtle. Always paired with a word or icon.
warning-subtle#fdf4e1#392708Warning alert, banner and badge ground.
critical#c42b2b#f59a96Error text, destructive button fill, critical icons on surface and critical-subtle.
critical-hover#a32020#f9c0bdHover and pressed on critical fills.
critical-subtle#fdecec#3f1515Critical alert, banner and badge ground.
on-critical#ffffff#0f0f11Text on a critical fill.
new#7a35d4#c9a6f7New, beta and discovery labels on surface and new-subtle.
new-subtle#f4eefe#2c1748New badge ground.
info-on-inverse#7cc4f5#0868b3Info and neutral icons on surface-inverse (toasts).
success-on-inverse#6fd19c#147844Success icons on surface-inverse (toasts).
warning-on-inverse#f5c060#985a00Warning icons on surface-inverse (toasts).
critical-on-inverse#f59a96#c42b2bCritical 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

StyleSize / lineWeightUsage
Order desk
title-1
24px / 32px600Page title on landing and overview pages. One per page.
Customer details
title-2
20px / 28px600Page title (PageHeader).
Associated company
title-3
16px / 24px600Dialog and drawer titles.
5 cases
title-4
14px / 20px600Card titles, section headers, fieldset legends, board column headers.
A case tracks one customer request from open to closed.
body
14px / 22px400Multi-line prose: descriptions, dialog body, comments, docs. Same size as ui with a looser line height.
Refund requested for a damaged item
ui
14px / 20px400The workhorse: table cells, field values, card content, menus.
Assignee
ui-strong
14px / 20px600Field labels, button labels, tab labels, emphasised values.
Updated 2 Sep 2026, 10:12
small
12px / 16px400Helper text and timestamps. Never for body copy.
High
small-strong
12px / 16px500Badge, tag and count labels; column headers in dense tables.
€12,480.00
num-display
24px / 32px600Stat values and other headline figures.
1,284 · 2 Sep 2026, 10:12
num-ui
14px / 20px400Amounts, counts, dates and times in table cells, fields and lists. Tabular figures.
€1,240.00
num-ui-strong
14px / 20px600Totals and emphasised figures.
+12% vs last week
num-small
12px / 16px400Deltas, timestamps and progress values.
128
num-small-strong
12px / 16px500Counts on tabs, nav items and badges.
org_7Q2M9X4KD1
mono
13px / 20px400IDs, keys and code, in Geist Mono by default. Pair with CopyButton when the value is meant to be copied.

Spacing

TokenValueUsage
space-00pxFlush edges.
space-22pxGap between nav items; icon-to-text nudge inside dense controls.
space-44pxGap between a label and its value; badge padding block.
space-66pxIcon-to-label gap in buttons and tabs; block padding of list rows and table headers.
space-88pxSmall button padding, table cell block padding, gap between buttons, between tight inline items.
space-1212pxDefault button and field padding, table cell inline padding, gap between form fields, compact card padding.
space-1616pxCard, dialog and drawer padding; gap between cards and page sections.
space-2424pxPage gutter; gap between major page regions.
space-3232pxEmpty-state padding; top padding on sparse pages.
space-4848pxRare: spacing on landing and onboarding pages.
space-6464pxRare: hero spacing on marketing-style pages. Never inside components.

Radius

TokenValueUsage
radius-xs2pxCheckboxes, focus ring corners on tight items.
radius-sm4pxInputs, selects, menus, tooltips, badges.
radius-md6pxButtons, icon buttons, board columns.
radius-lg8pxCards, dialogs, tables, popovers' outer frame.
radius-pill999pxSwitch tracks, avatars, count pills on tabs.

Shadow

TokenValueUsage
shadow-sm0 1px 2px rgba(15,15,17,0.08)App header, cards resting on bg-page.
shadow-md0 2px 4px rgba(15,15,17,0.06), 0 6px 16px rgba(15,15,17,0.08)Menus, popovers, select lists, tooltips.
shadow-lg0 8px 24px rgba(15,15,17,0.12), 0 24px 56px rgba(15,15,17,0.12)Dialogs and drawers.

Size

TokenValueUsage
control-xs24pxInline controls inside table rows, tags and toolbars of dense panels.
control-sm28pxToolbars, filter bars, table toolbars, side panels.
control-md32pxDefault height for buttons, fields, selects, nav items and menu items.
control-lg40pxTabs; the primary action on sparse pages such as sign-in or onboarding.
header-height48pxAppHeader height.
sidenav-rail56pxCollapsed SideNav width.
sidenav-open240pxExpanded SideNav width.