Foundations

The design tokens, generated from tokens.toml and checked at build time (392 tokens). Switch the theme, the primary color or pick any color in the header: everything below follows.

Color palette

Ten shades per color, 0 = lightest. Scheme independent: var(--ray-blue-6).

0123456789
dark
gray
red
pink
violet
indigo
blue
cyan
teal
green
yellow
orange
custom

Color variants

Expanded for every color; each follows the theme through light-dark(). Components take color and variant.

filledlightoutlinesubtle
dark
Filled
Light
Outline
Subtle
gray
Filled
Light
Outline
Subtle
red
Filled
Light
Outline
Subtle
pink
Filled
Light
Outline
Subtle
violet
Filled
Light
Outline
Subtle
indigo
Filled
Light
Outline
Subtle
blue
Filled
Light
Outline
Subtle
cyan
Filled
Light
Outline
Subtle
teal
Filled
Light
Outline
Subtle
green
Filled
Light
Outline
Subtle
yellow
Filled
Light
Outline
Subtle
orange
Filled
Light
Outline
Subtle
custom
Filled
Light
Outline
Subtle

Semantic tokens

What components and apps should use. Light and dark values side by side.

backgroundlight #ffffff
dark #141414
foregroundlight #212529
dark #f1f3f5
cardlight #ffffff
dark #1f1f1f
card-foregroundlight #212529
dark #f1f3f5
popoverlight #ffffff
dark #1f1f1f
popover-foregroundlight #212529
dark #f1f3f5
primary#1971c2
primary-hover#1864ab
primary-foreground#ffffff
secondarylight #f1f3f5
dark #2e2e2e
secondary-hoverlight #e9ecef
dark #3b3b3b
secondary-foregroundlight #212529
dark #f1f3f5
defaultlight #ffffff
dark #ffffff 3%
default-hoverlight #f1f3f5
dark #ffffff 7%
raisedlight #ffffff
dark #424242
mutedlight #f8f9fa
dark #2e2e2e
sidebarlight #fafbfb
dark #1c1c1c
muted-foregroundlight #686f77
dark #ababab
accentlight #f1f3f5
dark #2e2e2e
accent-foregroundlight #212529
dark #f1f3f5
destructive#c92a2a
destructive-hover#ab2424
destructive-foreground#ffffff
successlight #226e32
dark #51cf66
warninglight #8f4a00
dark #fcc419
infolight #0a6778
dark #3bc9db
borderlight #dee2e6
dark #2e2e2e
inputlight #ced4da
dark #3b3b3b
ringlight #228be6 55%
dark #4dabf7 60%
overlaylight #000000 10%
dark #000000 50%
overlay-borderlight #000000 16%
dark #ffffff 14%
selectionlight #228be6 22%
dark #4dabf7 30%

Chart palette

Series colors in order, checked in both schemes: 3:1 against the background, apart from each other, and consecutive ones apart with color blindness. SVG uses the variables directly; canvas libraries get them from chartTheme().

chart-1light #228be6
dark #339af0
chart-2light #e8590c
dark #fd7e14
chart-3light #099268
dark #20c997
chart-4light #7950f2
dark #845ef7
chart-5light #e64980
dark #f06595
chart-6light #ae7d13
dark #fcc419
chart-7light #0b7285
dark #22b8cf
chart-8#868e96
chart-gridlight #e9ecef
dark #2e2e2e
chart-axislight #686f77
dark #ababab
chart-textlight #212529
dark #f1f3f5
chart-tooltiplight #ffffff
dark #1f1f1f
chart-tooltip-textlight #212529
dark #f1f3f5
chart-tooltip-borderlight #dee2e6
dark #2e2e2e
04080120 04080120

Typography

--ray-font-sansThe quick brown fox jumps over the lazy dog 0123456789
--ray-font-monoThe quick brown fox jumps over the lazy dog 0123456789
--ray-font-size-xs
0.75rem
Ray design system
--ray-font-size-sm
0.875rem
Ray design system
--ray-font-size-md
1rem
Ray design system
--ray-font-size-lg
1.125rem
Ray design system
--ray-font-size-xl
1.25rem
Ray design system
--ray-font-size-2xl
1.5rem
Ray design system
--ray-font-size-3xl
1.875rem
Ray design system
--ray-font-size-4xl
2.25rem
Ray design system
--ray-font-weight-regularWeight 400
--ray-font-weight-mediumWeight 500
--ray-font-weight-semiboldWeight 600
--ray-font-weight-boldWeight 700
--ray-line-height-tight1.25 — Line height controls the vertical rhythm of a paragraph that wraps over several lines.
--ray-line-height-heading1.3 — Line height controls the vertical rhythm of a paragraph that wraps over several lines.
--ray-line-height-xs1.4 — Line height controls the vertical rhythm of a paragraph that wraps over several lines.
--ray-line-height-sm1.45 — Line height controls the vertical rhythm of a paragraph that wraps over several lines.
--ray-line-height-md1.55 — Line height controls the vertical rhythm of a paragraph that wraps over several lines.
--ray-line-height-lg1.6 — Line height controls the vertical rhythm of a paragraph that wraps over several lines.
--ray-line-height-xl1.65 — Line height controls the vertical rhythm of a paragraph that wraps over several lines.

Spacing

4px grid (numeric) and Mantine-style named steps used for padding and gaps.

--ray-space-0 · 0
--ray-space-1 · 0.25rem
--ray-space-2 · 0.5rem
--ray-space-3 · 0.75rem
--ray-space-4 · 1rem
--ray-space-5 · 1.25rem
--ray-space-6 · 1.5rem
--ray-space-8 · 2rem
--ray-space-10 · 2.5rem
--ray-space-12 · 3rem
--ray-space-16 · 4rem
--ray-space-xs · 0.625rem
--ray-space-sm · 0.75rem
--ray-space-md · 1rem
--ray-space-lg · 1.25rem
--ray-space-xl · 2rem

Radius

--ray-radius-default is what components use; override it to round the whole system.

radius-xs
radius-sm
radius-md
radius-lg
radius-xl
radius-full
radius-default

Shadows

shadow-xs
shadow-sm
shadow-md
shadow-lg
shadow-xl

Control heights

Buttons, inputs and selects share these heights by size.

--ray-control-height-xs · 1.875rem
Control
--ray-control-height-sm · 2.25rem
Control
--ray-control-height-md · 2.625rem
Control
--ray-control-height-lg · 3.125rem
Control
--ray-control-height-xl · 3.75rem
Control

Motion and layers

--ray-duration-fast · 120ms
--ray-duration-base · 200ms
--ray-duration-slow · 300ms
--ray-easing-standardcubic-bezier(0.2, 0, 0, 1)
--ray-easing-incubic-bezier(0.3, 0, 1, 1)
--ray-easing-outcubic-bezier(0, 0, 0, 1)
--ray-z-base0
--ray-z-sticky200
--ray-z-dropdown300
--ray-z-overlay400
--ray-z-modal500
--ray-z-popover600
--ray-z-toast700
--ray-z-tooltip800