Foundations / Dark mode

Dark mode

The Tokens collection has two modes, Light and Dark. Components do not change: when a frame is set to Dark mode, each token points to its dark value. Text ≥4.5:1 and control borders, indicators and focus ≥3:1 in both modes.

Version 1.4 · Oct 20, 2026

How it works

Turn on the mode in the layers panel: select a frame › Appearance › Tokens › Dark. Everything inside changes. Primitives (Primitives collection) have no modes; semantic tokens point to a different primitive in each mode. New token color-text-on-action: text and icons on action or solid status backgrounds (white in Light, ink in Dark).

Tokens · Light and Dark

Value of each semantic color token in both modes.

Name (token)
Light
Dark
color-text-primary
#021627
#F0F5FA
color-text-body
#37434E
#DCE3EA
color-text-secondary
#435260
#B4C2D0
color-text-muted
#63707D
#8EA1B4
color-text-inverse
#FFFFFF
#FFFFFF
color-text-on-action
#FFFFFF
#021627
color-surface-white
#FFFFFF
#021627
color-surface-subtle
#F0F5FA
#0A2033
color-surface-ink
#021627
#12304A
color-border-default
#DCE3EA
#24425F
color-border-strong
#7E92A5
#6B87A3
color-border-hover
#435260
#B4C2D0
color-action-default
#2164EE
#4D8DFF
color-action-strong
#124EA1
#7FB0FF
color-action-hover
#124EA1
#6FA2FF
color-action-pressed
#0D3A78
#9CC2FF
color-action-subtle
#E7EEFD
#0C2A55
color-status-success
#22C55E
#4ADE80
color-status-success-text
#157B3B
#6EE7A0
color-status-success-subtle
#E9FBF0
#0B2E1E
color-status-warning
#FBBB06
#FCD34D
color-status-warning-text
#896602
#FCD34D
color-status-warning-subtle
#FEF8E7
#33270A
color-status-error
#FB4F02
#FF8A4C
color-status-error-text
#C13D02
#FFA477
color-status-error-subtle
#FEEEE7
#3A1A0A
color-status-info-text
#1156E4
#7FB0FF
color-status-info-subtle
#E7EEFD
#0C2A55
color-focus-ring
#2164EE
#4D8DFF
color-disabled-bg
#F0F5FA
#0A2033
color-disabled-text
#63707D
#8EA1B4
color-overlay-scrim
#021627 60 %
#000000 70 %

Contrast in Dark

Pairs measured in Dark mode. Text: minimum 4.5:1. Control borders, indicators and focus: minimum 3:1.

Aa
Sample text
text-primary on surface-white
16.70
Excellent
Aa
Sample text
text-body on surface-white
14.14
Excellent
Aa
Sample text
text-secondary on surface-subtle
9.13
Excellent
Aa
Sample text
text-muted on surface-subtle
6.24
Pass
Aa
Sample text
action-strong (link) on surface-white
8.33
Excellent
Aa
Sample text
action-default (text) on surface-subtle
5.18
Pass
Aa
Sample text
on-action on action-default
5.73
Pass
Aa
Sample text
status-info-text on info-subtle
6.47
Pass
Aa
Sample text
status-error-text on error-subtle
8.13
Excellent
Aa
Sample text
border-strong on surface-white
4.90
Pass
Aa
Sample text
focus-ring on surface-subtle
5.18
Pass
Aa
Sample text
text-inverse on surface-ink
13.57
Excellent

Preview in Dark

The same components with the frame in Dark mode. In dark, use Navbar Theme=Dark: the logo does not change with the mode.

Light
BadgeBadge
Info alert
Short description: what happened and what the person can do.
Dark
BadgeBadge
Info alert
Short description: what happened and what the person can do.
Error message: explains how to fix it.
BadgeBadgeBadgeBadgeBadgeBadgeBadgeBadgeBadgeBadge
Info alert
Short description: what happened and what the person can do.
See details
Success alert
Short description: what happened and what the person can do.
See details
Warning alert
Short description: what happened and what the person can do.
See details
Error alert
Short description: what happened and what the person can do.
See details
Image
LABEL
Card title
Short text that explains the card content in one or two lines.
Image
LABEL
Card title
Short text that explains the card content in one or two lines.
Image
LABEL
Card title
Short text that explains the card content in one or two lines.
Dialog title
Dialog text: explains in one or two sentences what will happen and what the person has to decide.
Dialog title
Dialog text: explains in one or two sentences what will happen and what the person has to decide.

What to do and what to avoid

Fixed #FFFFFF