# Theme tokens and the UI that uses them Every token the AANCER UI uses (52), what it is for, its stock light and dark value, and the components that use it (most references first). **A theme pack (`content/theme.json`, schema version 2) may set only 35 of them**: the colour, surface and text tokens listed in [allowed-tokens.md](allowed-tokens.md). The type scale, line height and spacing tokens (`--fs-*`, `--lh-*`, `--sp-*`) are theme invariant; the validator rejects them in a theme pack. | Token | What it is for | Light | Dark | Used in | |---|---|---|---|---| | `--fs-micro` | floor: kbd hints, dense meta — never go below this | `10px` | `10px` | index.css | | `--fs-xs` | small labels, chips, status pills | `11px` | `11px` | MentionMenu, ChatMenu, ChatSearchPicker, WorkingFolderChip, index.css, KnowledgeMenu | | `--fs-sm` | form labels, secondary text, buttons, card titles | `12.5px` | `12.5px` | index.css, AutomationDetailPage, ChatMenu, ChatSearchPicker, KnowledgeDetailPage, KnowledgeMenu, KpiCard, MentionMenu and 1 more | | `--fs-base` | body | `14px` | `14px` | index.css | | `--fs-md` | lead paragraphs, prominent values | `16px` | `16px` | (stylesheet only) | | `--fs-lg` | sub-headings, KPI numerals | `20px` | `20px` | AutomationDetailPage, KnowledgeDetailPage | | `--fs-xl` | page titles | `26px` | `26px` | DashboardView, index.css, KpiCard | | `--lh-tight` | headings | `1.25` | `1.25` | (stylesheet only) | | `--lh-snug` | labels, single-line UI | `1.4` | `1.4` | index.css | | `--lh-normal` | body | `1.55` | `1.55` | index.css | | `--lh-relaxed` | long-form prose | `1.7` | `1.7` | index.css | | `--sp-1` | Type scale + rhythm (theme-invariant, "Calm the type" S1/S3 2026-10-22) One proportional scale drives the shared classes below, so retuning here re-skins all… | `4px` | `4px` | (stylesheet only) | | `--sp-2` | Type scale + rhythm (theme-invariant, "Calm the type" S1/S3 2026-10-22) One proportional scale drives the shared classes below, so retuning here re-skins all… | `8px` | `8px` | (stylesheet only) | | `--sp-3` | Type scale + rhythm (theme-invariant, "Calm the type" S1/S3 2026-10-22) One proportional scale drives the shared classes below, so retuning here re-skins all… | `12px` | `12px` | (stylesheet only) | | `--sp-4` | Type scale + rhythm (theme-invariant, "Calm the type" S1/S3 2026-10-22) One proportional scale drives the shared classes below, so retuning here re-skins all… | `16px` | `16px` | (stylesheet only) | | `--sp-5` | Type scale + rhythm (theme-invariant, "Calm the type" S1/S3 2026-10-22) One proportional scale drives the shared classes below, so retuning here re-skins all… | `24px` | `24px` | (stylesheet only) | | `--sp-6` | Type scale + rhythm (theme-invariant, "Calm the type" S1/S3 2026-10-22) One proportional scale drives the shared classes below, so retuning here re-skins all… | `32px` | `32px` | (stylesheet only) | | `--bg` | Surfaces: page / sunken / raised | `#F7F6F4` | `#191816` | index.css | | `--s0` | Surfaces: page / sunken / raised | `#EFEDEA` | `#141311` | (stylesheet only) | | `--s1` | Surfaces: page / sunken / raised | `#F7F6F4` | `#191816` | index.css, InsertEdge, RunTimelinePanel, WorkflowDesignerPage | | `--s2` | Surfaces: page / sunken / raised | `#FFFFFF` | `#22211E` | StepNode, index.css, WorkflowDesignerPage | | `--s3` | Surfaces: page / sunken / raised | `#EFEDEA` | `#262522` | WorkflowDesignerPage, index.css, StepNode | | `--s4` | Surfaces: page / sunken / raised | `#E3DED6` | `#37352F` | StepNode, WorkflowDesignerPage | | `--t0` | Ink | `#2B2926` | `#ECE9E4` | index.css, StepNode, WorkflowDesignerPage | | `--t1` | Ink | `#6B665E` | `#A8A49D` | StepNode, RunTimelinePanel, WorkflowDesignerPage, FlowCanvas, index.css | | `--t2` | Ink | `#757068` | `#8B8781` | WorkflowDesignerPage, RunTimelinePanel, StepNode, statusBadge.ts | | `--ac` | Accent — brand cyan-teal (owner 2026-10-25, harmonized to the ribbon logo). White-label: branding.primaryColor overrides --ac/--acs/--acb at runtime. | `#0E7490` | `#2DD4BF` | StepNode, index.css, WorkflowDesignerPage, BrandingSettingsPage, InviteUserPage, AgentStepPanel, CostAnalyticsPage, FlowCanvas and 6 more | | `--aci` | Accent — brand cyan-teal (owner 2026-10-25, harmonized to the ribbon logo). White-label: branding.primaryColor overrides --ac/--acs/--acb at runtime. | `#FFFFFF` | `#0C1F1A` | (stylesheet only) | | `--acs` | Accent — brand cyan-teal (owner 2026-10-25, harmonized to the ribbon logo). White-label: branding.primaryColor overrides --ac/--acs/--acb at runtime. | `#E1F2F6` | `#123536` | StepNode, WorkflowDesignerPage, BrandingSettingsPage, DataPickerInput | | `--acb` | Accent — brand cyan-teal (owner 2026-10-25, harmonized to the ribbon logo). White-label: branding.primaryColor overrides --ac/--acs/--acb at runtime. | `rgba(14,116,144,0.30)` | `rgba(45,212,191,0.35)` | StepNode, InsertEdge, BrandingSettingsPage, DataPickerInput | | `--te` | OK green | `#1E6B34` | `#5FBF7A` | WorkflowDesignerPage, index.css, ApprovalCard, assistantIdentity.ts, FlowCanvas, PlatformHealthPage, RunTimelinePanel, statusBadge.ts and 1 more | | `--tei` | OK green | `#FFFFFF` | `#0C1F1A` | (stylesheet only) | | `--tes` | OK green | `#E7F2E9` | `#1B2E20` | WorkflowDesignerPage, statusBadge.ts, StepNode | | `--teb` | OK green | `rgba(30,107,52,0.28)` | `rgba(95,191,122,0.35)` | statusBadge.ts, StepNode, WorkflowDesignerPage | | `--am` | Attention amber | `#8B4D10` | `#E0A458` | StepNode, WorkflowDesignerPage, RunTimelinePanel, FlowCanvas, statusBadge.ts | | `--ams` | Attention amber | `#F7E9D7` | `#3A2C18` | StepNode, DataPickerInput, RunTimelinePanel, statusBadge.ts, WorkflowDesignerPage | | `--amb` | Attention amber | `rgba(139,77,16,0.30)` | `rgba(224,164,88,0.35)` | StepNode, DataPickerInput, RunTimelinePanel, statusBadge.ts, WorkflowDesignerPage | | `--re` | Violation red | `#B42318` | `#F08577` | WorkflowDesignerPage, RunTimelinePanel, StepNode, BootstrapWizardPage, statusBadge.ts | | `--res` | Violation red | `#FBEAE8` | `#3A1F1B` | WorkflowDesignerPage, RunTimelinePanel, statusBadge.ts, StepNode | | `--reb` | Violation red | `rgba(180,35,24,0.30)` | `rgba(240,133,119,0.35)` | WorkflowDesignerPage, RunTimelinePanel, statusBadge.ts, StepNode | | `--pr` | Info blue (was connector purple) | `#1D4ED8` | `#7DA2F5` | BrandingSettingsPage, FlowCanvas, StepNode | | `--prs` | Info blue (was connector purple) | `#E8EDFB` | `#1C2740` | BrandingSettingsPage, StepNode | | `--prb` | Info blue (was connector purple) | `rgba(29,78,216,0.30)` | `rgba(125,162,245,0.35)` | BrandingSettingsPage, StepNode | | `--b` | Borders | `#E3DED6` | `#37352F` | WorkflowDesignerPage, RunTimelinePanel, index.css, FlowCanvas | | `--bm` | Borders | `#C9C2B6` | `#4A473F` | StepNode | | `--bs` | Borders | `#B3AB9C` | `#5C584E` | WorkflowDesignerPage, statusBadge.ts | | `--scrollbar` | Borders | `#C9C2B6` | `#4A473F` | index.css | | `--anchor` | Anchor rail (dark warm chrome on every light theme) | `#201F1D` | `#0F0E0D` | index.css | | `--anchor-raised` | Anchor rail (dark warm chrome on every light theme) | `#35332F` | `#262522` | index.css | | `--ink-on-anchor` | Anchor rail (dark warm chrome on every light theme) | `#F5F3EF` | `#F5F3EF` | index.css | | `--ink-on-anchor-dim` | Anchor rail (dark warm chrome on every light theme) | `#A8A49D` | `#A8A49D` | index.css | | `--shadow-card` | Anchor rail (dark warm chrome on every light theme) | `0 1px 3px rgba(40,35,25,0.08), 0 4px 14px rgba(40,35,25,0.05)` | `0 1px 3px rgba(0,0,0,0.4), 0 4px 14px rgba(0,0,0,0.3)` | index.css, ChatInput |