Design tokens
Named values for color, type, space, shape, and motion. Use semantic tokens in components; primitives are the raw values behind them.
Use
Import one brand stylesheet: radius, pi, earendil, lefos, or elanor.
@import '@earendil-works/design-tokens/radius.css';
.note {
color: var(--semantic-color-text-secondary);
}Colors follow the system’s light or dark setting. To fix one, set data-color-scheme to light or dark on the root element. With reduced motion, movement is instant.
The Stylelint plugin flags raw values and unknown tokens.
Browse
Color
Colors for surfaces, content, fills, and status, in light and dark.
137 tokens
Typography
Text styles, headings, font families, font weights, and font scales.
31 tokens
Space & size
Padding, gaps, sizes, and breakpoints.
56 tokens
Shape & depth
Corner radius, border width, scale, shadows, layers, and opacity.
25 tokens
Motion
Transitions, how far things move, and how long states last.
14 tokens
Primitives
The raw palette and scales that semantic tokens point to.
352 tokens