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

  1. Foundation — the kind of decision: color, space, font, elevation, radius.
  2. Property — what it paints: text, background, border.
  3. 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

TokenCSSValueUse it for
color.text--fk-color-textneutral.900 / neutral.50Default body text.
color.text.subtle--fk-color-text-subtleneutral.500 / neutral.300Secondary text, timestamps.
color.text.subtlest--fk-color-text-subtlestneutral.400 / neutral.400Hints, placeholders.
color.text.brand--fk-color-text-brandblue.600 / blue.300Brand-colored text and links at rest.
color.text.inverse--fk-color-text-inverseneutral.0Text on bold brand backgrounds.
color.text.success--fk-color-text-successgreen.600 / green.200Success copy.
color.text.warning--fk-color-text-warningyellow.700 / yellow.300Warning copy (not on yellow fills).
color.text.danger--fk-color-text-dangerred.600 / red.200Error copy.
color.background--fk-color-backgroundneutral.0 / neutral.900Default page surface.
color.background.neutral--fk-color-background-neutralneutral.50 / neutral.800Muted canvas, zebra rows.
color.background.brand--fk-color-background-brandblue.50 / blue.800Selected row, tinted brand surfaces.
color.background.brand.bold--fk-color-background-brand-boldblue.500Primary buttons, key CTAs.
color.background.accent.bold--fk-color-background-accent-boldorange.300Accent CTAs, marketing emphasis.
color.background.success--fk-color-background-successgreen.50Success banners.
color.background.warning--fk-color-background-warningyellow.50Warning banners.
color.background.danger--fk-color-background-dangerred.50Danger banners.
color.background.input--fk-color-background-inputneutral.0 / neutral.800Form fields.
color.border--fk-color-borderneutral.100 / neutral.700Default dividers.
color.border.bold--fk-color-border-boldneutral.200 / neutral.500Input outlines.
color.border.brand--fk-color-border-brandblue.500 / blue.400Selected / focused brand chrome.
color.border.focused--fk-color-border-focusedblue.500 / blue.400Focus rings (pair with elevation.overlay).
color.border.danger--fk-color-border-dangerred.400Invalid fields.
color.link--fk-color-linkblue.600 / blue.300Inline links.
color.icon.brand--fk-color-icon-brandblue.500 / blue.400Brand icons.
color.blanket--fk-color-blanketrgb(11 11 20 / 0.48)Modal backdrop.

Space tokens

TokenCSSValueUse it for
space.0--fk-space-00No space. Collapse a gap.
space.025--fk-space-0252pxHairline inset — icon optical alignment.
space.050--fk-space-0504pxTight related items (badge padding).
space.075--fk-space-0756pxCompact control padding.
space.100--fk-space-1008pxBase unit. Default small gap.
space.150--fk-space-15012pxInline gap between label and field.
space.200--fk-space-20016pxDefault inset for cards and list rows.
space.250--fk-space-25020pxSection padding inside compact panels.
space.300--fk-space-30024pxDefault stack gap between form groups.
space.400--fk-space-40032pxPage section spacing.
space.500--fk-space-50040pxLarge section break.
space.600--fk-space-60048pxHero / page header offset.
space.800--fk-space-80064pxPage-level vertical rhythm.

Typography tokens

TokenCSSValueUse it for
font.family.sans--fk-font-family-sansInter, Segoe UI, system-ui, sans-serifProduct UI and documentation body. Trustworthy, high-legibility.
font.family.display--fk-font-family-displayFraunces, Georgia, serifDocumentation heroes only. Do not use in FalkonSMS product chrome.
font.family.mono--fk-font-family-monoIBM Plex Mono, ui-monospace, monospaceToken names, phone numbers, message IDs, code.
font.heading.xxlarge--fk-font-heading-xxlarge500 40px/1.15 InterPage titles in product (Inbox, Campaigns).
font.heading.xlarge--fk-font-heading-xlarge500 32px/1.2 InterSection titles.
font.heading.large--fk-font-heading-large600 24px/1.25 InterCard titles, modal titles.
font.heading.medium--fk-font-heading-medium600 20px/1.3 InterSubsection headings.
font.heading.small--fk-font-heading-small600 16px/1.35 InterList headers, form group titles.
font.heading.xsmall--fk-font-heading-xsmall600 14px/1.4 InterOverlines, table column groups.
font.body.large--fk-font-body-large400 16px/1.5 InterDefault product body and message preview.
font.body--fk-font-body400 14px/1.5 InterSecondary body, table cells, helper text companion.
font.body.small--fk-font-body-small400 12px/1.45 InterMeta: timestamps, 10DLC labels, captions.

Elevation

TokenCSSValueUse it for
elevation.surface--fk-elevation-surfacenoneDefault page background. No shadow.
elevation.raised--fk-elevation-raised0 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-overlay0 8px 24px rgb(11 11 20 / 0.12)Dropdowns, popovers, date pickers.
elevation.modal--fk-elevation-modal0 16px 40px rgb(11 11 20 / 0.18)Dialogs, confirmation sheets.

Radius

TokenCSSValueUse it for
radius.none--fk-radius-none0Tables, full-bleed surfaces.
radius.small--fk-radius-small4pxCheckboxes, chips, compact controls.
radius.medium--fk-radius-medium8pxButtons, inputs, selects.
radius.large--fk-radius-large12pxCards, dialogs, inbox panes.
radius.xlarge--fk-radius-xlarge16pxMarketing tiles and hero cards.
radius.full--fk-radius-full9999pxAvatars, pills, icon buttons.