The design tokens are the single source of the system’s values. They ship three ways: as --ds-* custom properties in tokens.css (and styles.css), as typed data from @blocks/design-system/tokens, and as the prop types of the components (padding="md"). The tables below are rendered from the package’s own token data.
tsimport { cssVarName, tokens } from '@blocks/design-system/tokens'
tokens .space .md
cssVarName ('space' , 'md' )
Components read only the semantic tier. Each name points at a Radix Colors step in each theme; dark mode and data-ds-theme swap these and nothing else. Steps follow Radix’s roles: 1–2 backgrounds, 3–5 component fills, 6–8 borders and focus, 9–10 solid fills, 11–12 text.
Semantic colors Token Light Dark --ds-color-bg slate-1 slate-dark-1--ds-color-bg-subtle slate-2 slate-dark-2--ds-color-surface slate-3 slate-dark-3--ds-color-surface-hover slate-4 slate-dark-4--ds-color-surface-active slate-5 slate-dark-5--ds-color-selected indigo-4 indigo-dark-4--ds-color-border-subtle slate-6 slate-dark-6--ds-color-border slate-7 slate-dark-7--ds-color-border-strong slate-8 slate-dark-8--ds-color-focus-ring indigo-9 indigo-dark-9--ds-color-accent indigo-9 indigo-dark-9--ds-color-accent-hover indigo-10 indigo-dark-10--ds-color-accent-fg #fff #fff--ds-color-accent-subtle indigo-3 indigo-dark-3--ds-color-accent-text indigo-11 indigo-dark-11--ds-color-danger red-9 red-dark-9--ds-color-danger-hover red-10 red-dark-10--ds-color-danger-fg #fff #fff--ds-color-danger-subtle red-3 red-dark-3--ds-color-danger-text red-11 red-dark-11--ds-color-warning amber-9 amber-dark-9--ds-color-warning-hover amber-10 amber-dark-10--ds-color-warning-fg slate-12 slate-12--ds-color-warning-subtle amber-3 amber-dark-3--ds-color-warning-text amber-11 amber-dark-11--ds-color-success green-9 green-dark-9--ds-color-success-hover green-10 green-dark-10--ds-color-success-fg #fff #fff--ds-color-success-subtle green-3 green-dark-3--ds-color-success-text green-11 green-dark-11--ds-color-info blue-9 blue-dark-9--ds-color-info-hover blue-10 blue-dark-10--ds-color-info-fg #fff #fff--ds-color-info-subtle blue-3 blue-dark-3--ds-color-info-text blue-11 blue-dark-11--ds-color-text-muted slate-11 slate-dark-11--ds-color-text slate-12 slate-dark-12--ds-color-overlay slate-a9 slate-a11
Space and font sizes are pixels; everything else carries its unit. Breakpoints are minimum widths: the responsive props and @custom-media (--ds-md) apply from that width up.
Space (px) Token Custom property Value none--ds-space-none0xxs--ds-space-xxs1xs--ds-space-xs2sm--ds-space-sm4md--ds-space-md8lg--ds-space-lg16xl--ds-space-xl32xxl--ds-space-xxl64xxxl--ds-space-xxxl128xxxxl--ds-space-xxxxl256xxxxxl--ds-space-xxxxxl512
Font sizes (px) Token Custom property Value body--ds-font-size-body16heading--ds-font-size-heading24code--ds-font-size-code14xxs--ds-font-size-xxs10xs--ds-font-size-xs12sm--ds-font-size-sm14md--ds-font-size-md16lg--ds-font-size-lg20xl--ds-font-size-xl24xxl--ds-font-size-xxl32xxxl--ds-font-size-xxxl48xxxxl--ds-font-size-xxxxl64xxxxxl--ds-font-size-xxxxxl96
Font weights Token Custom property Value body--ds-font-weight-body400medium--ds-font-weight-medium500heading--ds-font-weight-heading600bold--ds-font-weight-bold700semibold--ds-font-weight-semibold600
Line heights Token Custom property Value body--ds-line-height-body1.5heading--ds-line-height-heading1.125
Font stacks Token Custom property Value body--ds-font-bodysystem-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serifheading--ds-font-headingsystem-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serifmonospace--ds-font-monospaceui-monospace, SFMono-Regular, Menlo, Consolas, monospace
Measures Token Custom property Value sm--ds-measure-sm26remmd--ds-measure-md38remlg--ds-measure-lg46rem
Breakpoints Token Custom property Value sm--ds-breakpoint-sm40remmd--ds-breakpoint-md48remlg--ds-breakpoint-lg64remxl--ds-breakpoint-xl80rem
Border radius Token Custom property Value none--ds-border-radius-none0button--ds-border-radius-button4pxpill--ds-border-radius-pill9999pxcircle--ds-border-radius-circle50%sm--ds-border-radius-sm4pxmd--ds-border-radius-md8pxxl--ds-border-radius-xl12pxxxl--ds-border-radius-xxl16pxxxxl--ds-border-radius-xxxl24px
Border widths Token Custom property Value none--ds-border-width-none0sm--ds-border-width-sm1pxmd--ds-border-width-md2pxlg--ds-border-width-lg4px
Shadows Token Custom property Value sm--ds-shadow-sm0 1px 2px var(--ds-slate-a3)md--ds-shadow-md0 1px 2px var(--ds-slate-a3), 0 4px 12px var(--ds-slate-a4)lg--ds-shadow-lg0 4px 8px var(--ds-slate-a3), 0 16px 40px var(--ds-slate-a6)
Z-index Token Custom property Value dropdown--ds-z-dropdown1000sticky--ds-z-sticky1100drawer--ds-z-drawer1200overlay--ds-z-overlay1300modal--ds-z-modal1400toast--ds-z-toast1500
Durations Token Custom property Value instant--ds-duration-instant1msfast--ds-duration-fast100msnormal--ds-duration-normal200msslow--ds-duration-slow300ms
Easings Token Custom property Value standard--ds-easing-standardcubic-bezier(0.2, 0, 0, 1)emphasized--ds-easing-emphasizedcubic-bezier(0.16, 1, 0.3, 1)linear--ds-easing-linearlinear
Control heights Token Custom property Value sm--ds-control-height-sm28pxmd--ds-control-height-md32pxlg--ds-control-height-lg40px
Icon sizes Token Custom property Value sm--ds-icon-size-sm16pxmd--ds-icon-size-md20px
Layout Token Custom property Value sidebar-width--ds-sidebar-width280px