Colors

Plex UI color system reference. Primitive palettes, semantic tokens, and accessible color pairings tuned for light and dark mode usage

Plex UI defines a set of primitive color palettes that underpin every component. These palettes are exposed as CSS custom properties and are designed to work seamlessly with light and dark modes. Use semantic tokens (e.g. text-primary, bg-surface) in your own components rather than referencing specific palette values directly.

Accent

The accent of the kit is one variable, --color-accent, #0285ff (blue-400) by default. Set it once, after the Plex UI stylesheet, and React and Vue follow on the desktop and on a phone:

:root {
  --color-accent: #7c3aed;
}

It colors primary links (TextLink), keyboard focus rings and the iOS tint: the prominent bar button (NavigationButton action="confirm", a solid primary action in a phone toolbar), the main action of a phone Dialog and the plain tinted action under it, an alert's preferred action, IndexBar letters and the Sortable drop line. Its lighter and darker steps are drawn from it in both themes as --accent-50 to --accent-700 and --accent-a25 to --accent-a75, and the roles as --color-text-accent, --color-background-accent-solid and --color-background-accent-soft. The info, success, warning, danger, discovery and caution status families keep their own colors.

Primary actions and checked controls

Primary stays the neutral ink of Plex UI on the desktop. To draw solid primary actions, Switch color="accent", Checkbox, RadioGroup and Slider in the accent too, add:

/* After the Plex UI stylesheet; repeat at each nested [data-theme] root. */
:root,
:where([data-theme]) {
  --color-background-primary-solid: var(--color-accent);
  --color-background-primary-solid-hover: var(--accent-500);
  --color-background-primary-solid-active: var(--accent-500);
  --color-text-primary-solid: var(--white);

  --switch-accent-color: var(--color-accent);
  --checkbox-checked-background: var(--color-accent);
  --checkbox-checkmark-color: var(--white);
  --checkbox-ghost-check-color: var(--color-text-accent);
  --radio-group-indicator-background-color: var(--color-accent);
  --radio-group-indicator-hole-background-color: var(--white);
  --radio-group-checkmark-color: var(--color-text-accent);
  --slider-range-color: var(--color-accent);
}

Solid primary buttons and ButtonLink use the primary color; Switch opts in with color="accent". Switch's default primary style is unchanged, and accent switches remain platform green when no override is supplied.

The optional Checkbox tokens preserve the current defaults: --checkbox-checked-background falls back to var(--gray-900), and --checkbox-checkmark-color to var(--gray-0). The Phone RadioGroup checkmark reads --radio-group-checkmark-color, falling back to var(--color-text). These hooks also work independently of the accent.

Disabled states keep each component's existing treatment. A disabled checked accent Switch retains a muted accent; a disabled unchecked Switch uses the neutral track, and the disabled thumb has no shadow. Checkbox and RadioGroup retain their disabled opacity. Buttons continue to use the shared disabled tokens. Invalid borders and fills retain their semantic tokens. The success, warning, danger, info, discovery and caution color families keep their existing values.

Grayscale

0
25
50
75
100
150
200
250
300
350
400
450
500
550
600
650
700
750
800
850
900
925
950
975
1000

Alphas

0
02
04
05
06
08
10
12
15
16
20
25
30
35
40
50

Primary colors

25
50
75
100
200
300
400
500
600
700
800
900
950
1000
a25
a50
a75
a100
a200
a300
25
50
75
100
200
300
400
500
600
700
800
900
950
1000
a25
a50
a75
a100
a200
a300
25
50
75
100
200
300
400
500
600
700
800
900
950
1000
a25
a50
a75
a100
a200
a300
25
50
75
100
200
300
400
500
600
700
800
900
950
1000
a25
a50
a75
a100
a200
a300
25
50
75
100
200
300
400
500
600
700
800
900
950
1000
a25
a50
a75
a100
a200
a300
25
50
75
100
200
300
400
500
600
700
800
900
950
1000
a25
a50
a75
a100
a200
a300
25
50
75
100
200
300
400
500
600
700
800
900
950
1000
a25
a50
a75
a100
a200
a300