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
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-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-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-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
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.75remRay design system
--ray-font-size-sm
0.875remRay design system
--ray-font-size-md
1remRay design system
--ray-font-size-lg
1.125remRay design system
--ray-font-size-xl
1.25remRay design system
--ray-font-size-2xl
1.5remRay design system
--ray-font-size-3xl
1.875remRay design system
--ray-font-size-4xl
2.25remRay 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-xs · 0.625rem
Radius
--ray-radius-default is what components use; override it to round the whole system.
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.875remControl
--ray-control-height-sm · 2.25remControl
--ray-control-height-md · 2.625remControl
--ray-control-height-lg · 3.125remControl
--ray-control-height-xl · 3.75remControl
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