Ask Natuna

Ask about the design system

Hi, I am Natuna.

Ask me about the design system: components, tokens, statuses, and how to use them.

Natuna can be wrong. The docs are the source of truth.

Skip to content
  • IntroductionPage
  • Ask NatunaAsk about the design systemPage
  • FoundationColor, type, number, effectPage
  • Components overviewPage
  • ThemesLight and dark modePage
  • NamingProperty and page namesPage
  • Privacy statementPage
  • Text-safe stepsFirst AA and AAA step per color rampSection
  • AccessibilityWCAG 2.2 AAA rulesSection
  • Dark modeThemesSection
  • Using it todayFigma file and React codeSection
  • Component statusDesign status and In ReactSection

Arrow keys to move, Enter to open, Esc to close.

Themes

Light and dark mode come from the same tokens. Components ask for a role, such as bg/surface or text/primary, and the mode decides the value. The same card is rendered in both modes below.

Light mode
Electricity bill
Due 12 Oct
Pending
Rp 412.500
NoteAdd a note
Pay nowLater

Paid bills move to history.

Dark mode
Electricity bill
Due 12 Oct
Pending
Rp 412.500
NoteAdd a note
Pay nowLater

Paid bills move to history.

Color roles

The values each role takes in light and dark, each one a --color-role-* token that holds its own value in both modes, so a copied component needs no dark-mode rewrite of the ramps. bg/brand and bg/danger stay put in both modes because they carry white text: 8.05:1 and 8.41:1. text/link lightens in dark mode to stay readable on the dark surface. Some roles, such as the status pairs and tertiary text, are specified here for the products built on Natuna and are not drawn by every component in src/ui yet.

RoleLightDark
Background
bg/canvas--color-role-bg-canvasThe page.#ffffffwhite#19212egray/900
bg/surface--color-role-bg-surfaceCards, fields, panels.#ffffffwhite#27303fgray/800
bg/subtle--color-role-bg-subtleSecondary button, disabled fill.#ebf0f4gray/100#364152gray/700
bg/subtle-hover--color-role-bg-subtle-hoverHover on a subtle fill.#d0d5ddgray/200#4b5565gray/600
bg/hover--color-role-bg-hoverHover on an unfilled control.#f1f5f9gray/50#364152gray/700
bg/brand--color-role-bg-brandPrimary action. Carries white text.#015099blue/800#015099blue/800
bg/brand-hover--color-role-bg-brand-hoverHover on the primary action.#013566blue/900#013566blue/900
bg/danger--color-role-bg-dangerDestructive action. Carries white text.#8c2b2cred/800#8c2b2cred/800
bg/danger-hover--color-role-bg-danger-hoverHover on the destructive action.#5e1d1ered/900#5e1d1ered/900
Text
text/primary--color-role-text-primaryDefault text.#19212egray/900#f1f5f9gray/50
text/secondary--color-role-text-secondaryHints, labels, placeholders.#364152gray/700#d0d5ddgray/200
text/tertiary--color-role-text-tertiaryMetadata and captions on the canvas. On a surface use text/secondary.#4b5565gray/600#b4bbc7gray/300
text/on-danger--color-role-text-on-dangerText on a danger fill.#ffffffwhite#ffffffwhite
text/on-accent--color-role-text-on-accentNavy text on the Signal lime and on status solid fills.#0b1220navy#0b1220navy
text/strong--color-role-text-strongText on secondary and ghost buttons.#27303fgray/800#ebf0f4gray/100
text/strong-hover--color-role-text-strong-hoverThat text while hovered.#0d121cgray/950#ffffffwhite
text/disabled--color-role-text-disabledText on a disabled control.#697586gray/500#b4bbc7gray/300
text/on-brand--color-role-text-on-brandText on a brand or danger fill.#ffffffwhite#ffffffwhite
text/danger--color-role-text-dangerError messages.#8c2b2cred/800#f7b6b7red/200
text/link--color-role-text-linkLinks.#015099blue/800#9aceffblue/200
Border
border/default--color-role-border-defaultDividers and card edges.#d0d5ddgray/200#4b5565gray/600
border/input--color-role-border-inputField and ghost button edges. 3:1 or more.#697586gray/500#9aa4b2gray/400
border/disabled--color-role-border-disabledEdge of a disabled field.#b4bbc7gray/300#697586gray/500
border/focus--color-role-border-focusFocus ring. 3:1 or more.#0274e0blue/600#359dffblue/400
border/danger--color-role-border-dangerEdge and ring of an invalid field.#8c2b2cred/800#f7b6b7red/200
Tone
bg/tone/neutral--color-role-bg-tone-neutralNeutral badge fill.#ebf0f4gray/100#364152gray/700
text/tone/neutral--color-role-text-tone-neutralNeutral badge text.#364152gray/700#d0d5ddgray/200
bg/tone/info--color-role-bg-tone-infoInfo badge and avatar fill.#d1e9ffblue/100#013566blue/900
text/tone/info--color-role-text-tone-infoInfo badge and avatar text.#013566blue/900#d1e9ffblue/100
bg/tone/success--color-role-bg-tone-successSuccess badge fill.#e5f4ddemerald/100#25490femerald/900
text/tone/success--color-role-text-tone-successSuccess badge text.#25490femerald/900#d4ecc5emerald/200
bg/tone/warning--color-role-bg-tone-warningWarning badge fill.#fef2d2amber/100#644800amber/900
text/tone/warning--color-role-text-tone-warningWarning badge text.#644800amber/900#fef2d2amber/100
bg/tone/danger--color-role-bg-tone-dangerDanger badge fill.#fbdadbred/100#5e1d1ered/900
text/tone/danger--color-role-text-tone-dangerDanger badge text.#5e1d1ered/900#fbdadbred/100
Status
status/success--color-role-status-successSuccess text. Pair it with a label or icon.#25490femerald/900#d4ecc5emerald/200
status/success-bg--color-role-status-success-bgSuccess message fill.#f7fbf3emerald/50#132507emerald/950
status/warning--color-role-status-warningWarning text. Pair it with a label or icon.#644800amber/900#fde5a5amber/200
status/warning-bg--color-role-status-warning-bgWarning message fill.#fffbf0amber/50#322400amber/950
status/danger--color-role-status-dangerDanger text. Pair it with a label or icon.#5e1d1ered/900#f7b6b7red/200
status/danger-bg--color-role-status-danger-bgDanger message fill.#fef1f2red/50#2f0e0fred/950
status/info--color-role-status-infoInfo text. Pair it with a label or icon.#003f66teal/950#b2e2ffteal/200
status/info-bg--color-role-status-info-bgInfo message fill.#f0f9ffteal/50#003f66teal/950
status/solid/success--color-role-status-solid-successSolid success badge. Carries text/on-accent.#5db725emerald/500#5db725emerald/500
status/solid/warning--color-role-status-solid-warningSolid warning badge. Carries text/on-accent.#fab400amber/500#fab400amber/500
status/solid/info--color-role-status-solid-infoSolid info badge. Carries text/on-accent.#24abffteal/500#24abffteal/500

Switch this whole site between modes with the sun and moon button in the header. Custom brand themes are not part of the foundation yet.