Skip to content

CSS Custom Properties Reference

Complete reference of all CSS custom properties emitted on :root by @grundtone/design-tokens. All values derive from @grundtone/core (single source of truth) and can be overridden at runtime.

css
.card {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

For SCSS accessor functions that wrap these vars, see SCSS Functions.


Colors

38 semantic color tokens with automatic light-dark() switching. See Colors & Theming for the full list, swatches, and override instructions.

css
var(--color-primary)
var(--color-text)
var(--color-background)
/* etc. — 38 tokens */

Typography

Font Families

Custom propertyDefault value
--font-family-base'IBM Plex Sans', -apple-system, …, sans-serif
--font-family-heading'IBM Plex Sans', -apple-system, …, sans-serif
--font-family-mono'IBM Plex Mono', ui-monospace, …, monospace

Font Sizes

Custom propertyValue
--font-size-xs0.75rem
--font-size-sm0.875rem
--font-size-base1rem
--font-size-lg1.125rem
--font-size-xl1.25rem
--font-size-2xl1.5rem
--font-size-3xl1.875rem
--font-size-4xl2.25rem
--font-size-5xl3rem

Font Weights

Custom propertyValue
--font-weight-thin100
--font-weight-light300
--font-weight-normal400
--font-weight-medium500
--font-weight-semibold600
--font-weight-bold700
--font-weight-extrabold800

Line Heights

Custom propertyValue
--line-height-none1
--line-height-tight1.25
--line-height-snug1.375
--line-height-normal1.5
--line-height-relaxed1.625
--line-height-loose2

Spacing

Custom propertyValue
--space-xs0.25rem
--space-sm0.5rem
--space-md1rem
--space-lg1.5rem
--space-xl2rem
--space-2xl3rem
--space-3xl4rem
--space-4xl6rem

Border Radius

Custom propertyValue
--radius-none0
--radius-xs0.125rem
--radius-sm0.25rem
--radius-md0.375rem
--radius-lg0.5rem
--radius-xl0.75rem
--radius-2xl1rem
--radius-3xl1.5rem
--radius-full9999px

Shadows

Custom propertyDescription
--shadow-xsSubtle lift
--shadow-smLight shadow
--shadow-mdMedium elevation
--shadow-lgCard/modal level
--shadow-xlHigh elevation
--shadow-2xlMaximum elevation
--shadow-innerInset shadow
--shadow-noneNo shadow
css
.card { box-shadow: var(--shadow-sm); }
.modal { box-shadow: var(--shadow-lg); }

Z-Index

Custom propertyValue
--z-dropdown1000
--z-sticky1020
--z-fixed1030
--z-modal-backdrop1040
--z-modal1050
--z-popover1060
--z-tooltip1070
--z-toast1080

Transitions

Durations

Custom propertyValue
--duration-fast150ms
--duration-base300ms
--duration-slow500ms

Timing Functions

Custom propertyValue
--easecubic-bezier(0.4, 0, 0.2, 1)
--ease-incubic-bezier(0.4, 0, 1, 1)
--ease-outcubic-bezier(0, 0, 0.2, 1)
--ease-in-outcubic-bezier(0.4, 0, 0.2, 1)
--linearlinear

Grid

Custom propertyDefault
--grid-auto-fit-min250px

Overriding at Runtime

All properties can be overridden on any element:

css
/* Override globally */
:root {
  --space-md: 1.25rem;
  --radius-md: 0.5rem;
}

/* Override per component */
.compact-card {
  --space-md: 0.75rem;
}

For build-time SCSS overrides, see Colors and Breakpoints.