Design tokens
Design tokens explained
Tokens are name–value pairs for small, repeatable decisions. Use
color.text.subtle instead of a gray hex so light theme, dark theme, and future high-contrast can change in one place.How to read a token name
- Foundation — the kind of decision:
color,space,font,elevation,radius. - Property — what it paints:
text,background,border. - Modifier — role or intensity:
subtle,brand,bold,danger.
In CSS the dots become hyphens: color.text.subtle → var(--fk-color-text-subtle). In TypeScript, token("color.text.subtle") returns that same custom property.
Do. Pick a token by meaning (danger text for a failed send).
Don’t. Pick a token because the hex looks close. That breaks in dark theme.
Color tokens
| Token | CSS | Value | Use it for |
|---|---|---|---|
color.text | --fk-color-text | neutral.900 / neutral.50 | Default body text. |
color.text.subtle | --fk-color-text-subtle | neutral.500 / neutral.300 | Secondary text, timestamps. |
color.text.subtlest | --fk-color-text-subtlest | neutral.400 / neutral.400 | Hints, placeholders. |
color.text.brand | --fk-color-text-brand | blue.600 / blue.300 | Brand-colored text and links at rest. |
color.text.inverse | --fk-color-text-inverse | neutral.0 | Text on bold brand backgrounds. |
color.text.success | --fk-color-text-success | green.600 / green.200 | Success copy. |
color.text.warning | --fk-color-text-warning | yellow.700 / yellow.300 | Warning copy (not on yellow fills). |
color.text.danger | --fk-color-text-danger | red.600 / red.200 | Error copy. |
color.background | --fk-color-background | neutral.0 / neutral.900 | Default page surface. |
color.background.neutral | --fk-color-background-neutral | neutral.50 / neutral.800 | Muted canvas, zebra rows. |
color.background.brand | --fk-color-background-brand | blue.50 / blue.800 | Selected row, tinted brand surfaces. |
color.background.brand.bold | --fk-color-background-brand-bold | blue.500 | Primary buttons, key CTAs. |
color.background.accent.bold | --fk-color-background-accent-bold | orange.300 | Accent CTAs, marketing emphasis. |
color.background.success | --fk-color-background-success | green.50 | Success banners. |
color.background.warning | --fk-color-background-warning | yellow.50 | Warning banners. |
color.background.danger | --fk-color-background-danger | red.50 | Danger banners. |
color.background.input | --fk-color-background-input | neutral.0 / neutral.800 | Form fields. |
color.border | --fk-color-border | neutral.100 / neutral.700 | Default dividers. |
color.border.bold | --fk-color-border-bold | neutral.200 / neutral.500 | Input outlines. |
color.border.brand | --fk-color-border-brand | blue.500 / blue.400 | Selected / focused brand chrome. |
color.border.focused | --fk-color-border-focused | blue.500 / blue.400 | Focus rings (pair with elevation.overlay). |
color.border.danger | --fk-color-border-danger | red.400 | Invalid fields. |
color.link | --fk-color-link | blue.600 / blue.300 | Inline links. |
color.icon.brand | --fk-color-icon-brand | blue.500 / blue.400 | Brand icons. |
color.blanket | --fk-color-blanket | rgb(11 11 20 / 0.48) | Modal backdrop. |
Space tokens
| Token | CSS | Value | Use it for |
|---|---|---|---|
space.0 | --fk-space-0 | No space. Collapse a gap. | |
space.025 | --fk-space-025 | Hairline inset — icon optical alignment. | |
space.050 | --fk-space-050 | Tight related items (badge padding). | |
space.075 | --fk-space-075 | Compact control padding. | |
space.100 | --fk-space-100 | Base unit. Default small gap. | |
space.150 | --fk-space-150 | Inline gap between label and field. | |
space.200 | --fk-space-200 | Default inset for cards and list rows. | |
space.250 | --fk-space-250 | Section padding inside compact panels. | |
space.300 | --fk-space-300 | Default stack gap between form groups. | |
space.400 | --fk-space-400 | Page section spacing. | |
space.500 | --fk-space-500 | Large section break. | |
space.600 | --fk-space-600 | Hero / page header offset. | |
space.800 | --fk-space-800 | Page-level vertical rhythm. |
Typography tokens
| Token | CSS | Value | Use it for |
|---|---|---|---|
font.family.sans | --fk-font-family-sans | Inter, Segoe UI, system-ui, sans-serif | Product UI and documentation body. Trustworthy, high-legibility. |
font.family.display | --fk-font-family-display | Fraunces, Georgia, serif | Documentation heroes only. Do not use in FalkonSMS product chrome. |
font.family.mono | --fk-font-family-mono | IBM Plex Mono, ui-monospace, monospace | Token names, phone numbers, message IDs, code. |
font.heading.xxlarge | --fk-font-heading-xxlarge | 500 40px/1.15 Inter | Page titles in product (Inbox, Campaigns). |
font.heading.xlarge | --fk-font-heading-xlarge | 500 32px/1.2 Inter | Section titles. |
font.heading.large | --fk-font-heading-large | 600 24px/1.25 Inter | Card titles, modal titles. |
font.heading.medium | --fk-font-heading-medium | 600 20px/1.3 Inter | Subsection headings. |
font.heading.small | --fk-font-heading-small | 600 16px/1.35 Inter | List headers, form group titles. |
font.heading.xsmall | --fk-font-heading-xsmall | 600 14px/1.4 Inter | Overlines, table column groups. |
font.body.large | --fk-font-body-large | 400 16px/1.5 Inter | Default product body and message preview. |
font.body | --fk-font-body | 400 14px/1.5 Inter | Secondary body, table cells, helper text companion. |
font.body.small | --fk-font-body-small | 400 12px/1.45 Inter | Meta: timestamps, 10DLC labels, captions. |
Elevation
| Token | CSS | Value | Use it for |
|---|---|---|---|
elevation.surface | --fk-elevation-surface | none | Default page background. No shadow. |
elevation.raised | --fk-elevation-raised | 0 1px 2px rgb(11 11 20 / 0.06), 0 1px 0 rgb(11 11 20 / 0.04) | Cards, conversation list, settings panels. |
elevation.overlay | --fk-elevation-overlay | 0 8px 24px rgb(11 11 20 / 0.12) | Dropdowns, popovers, date pickers. |
elevation.modal | --fk-elevation-modal | 0 16px 40px rgb(11 11 20 / 0.18) | Dialogs, confirmation sheets. |
Radius
| Token | CSS | Value | Use it for |
|---|---|---|---|
radius.none | --fk-radius-none | 0 | Tables, full-bleed surfaces. |
radius.small | --fk-radius-small | 4px | Checkboxes, chips, compact controls. |
radius.medium | --fk-radius-medium | 8px | Buttons, inputs, selects. |
radius.large | --fk-radius-large | 12px | Cards, dialogs, inbox panes. |
radius.xlarge | --fk-radius-xlarge | 16px | Marketing tiles and hero cards. |
radius.full | --fk-radius-full | 9999px | Avatars, pills, icon buttons. |