Codeways UI
Browse components

@codeways/design-tokens

Design tokens

Light / dark

Every value below is read live from @codeways/design-tokens/tokens.css through its CSS variable, so toggling light and dark shows exactly what each app gets.

Colour - surfaces

Background

--background

Aa

Foreground

--foreground

Card

--card

Popover

--popover

Muted

--muted

Aa

Muted foreground

--muted-foreground

Accent

--accent

Surface 3

--surface-3

Aa

Foreground secondary

--foreground-secondary

Aa

Placeholder

--placeholder

Colour - lines

Border

--border

Input

--input

Aa

Ring

--ring

Colour - brand and destructive

Aa

Primary

--primary

Aa

Primary hover

--primary-hover

Aa

Primary active

--primary-active

Aa

Link

--link

Selected

--selected

Aa

Selected foreground

--selected-foreground

Selected border

--selected-border

Aa

Destructive

--destructive

Colour - status tones

Each tone is text / subtle background / border / solid fill.

Neutral text

--neutral

Neutral subtle

--neutral-subtle

Neutral border

--neutral-border

Aa

Neutral solid

--neutral-solid

Info text

--info

Info subtle

--info-subtle

Info border

--info-border

Aa

Info solid

--info-solid

Teal text

--teal

Teal subtle

--teal-subtle

Teal border

--teal-border

Aa

Teal solid

--teal-solid

Warning text

--warning

Warning subtle

--warning-subtle

Warning border

--warning-border

Aa

Warning solid

--warning-solid

Success text

--success

Success subtle

--success-subtle

Success border

--success-border

Aa

Success solid

--success-solid

Danger text

--danger

Danger subtle

--danger-subtle

Danger border

--danger-border

Aa

Danger solid

--danger-solid

Colour - suite bar

Identical in every app - always the dark palette, in both themes.

Topbar

--topbar

Aa

Topbar foreground

--topbar-foreground

Aa

Topbar muted

--topbar-muted

Topbar field

--topbar-field

Topbar field border

--topbar-field-border

Aa

Inverse (tooltip)

--inverse

Colour - charts

Fixed categorical order, colour-vision-deficiency validated per mode.

Aa

Chart 1

--chart-1

Aa

Chart 2

--chart-2

Aa

Chart 3

--chart-3

Aa

Chart 4

--chart-4

Aa

Chart 5

--chart-5

Chart grid

--chart-grid

Type scale

The invoice was senttext-display - 30 / 36, -0.022em, 600
The invoice was senttext-page-title - 20 / 28, -0.017em, 600
The invoice was senttext-section - 15 / 22, -0.011em, 600
The invoice was senttext-subhead - 14 / 20, -0.006em, 600
The invoice was senttext-body - 14 / 20, -0.006em, 400
The invoice was senttext-table - 13 / 18, -0.003em, 400
The invoice was senttext-caption - 12 / 16, 0em, 400
The invoice was senttext-overline - 11 / 16, 0.06em, 600
The invoice was senttext-kpi - 22 / 28, -0.02em, 600

Spacing

Named layout metrics, plus the default 4px-based Tailwind scale used for gaps and padding.

control-sm - 28px

control - 32px

control-lg - 36px

row-compact - 36px

row - 44px

1

2

3

4

6

8

10

12

16

Radius

xs - 4px

sm - 6px

md - 8px

lg - 10px

xl - 12px

2xl - 16px

control

card

Elevation

xs

sm

md

lg

paper