Global Theme Variables
Boreal UI uses a comprehensive set of CSS variables to maintain design consistency and make customization easier. These tokens form the foundation for colors, typography, spacing, elevation, borders, and interaction states across the library.
Pro Tip
Modify these variables in your root stylesheet to quickly shift the entire application’s visual system without rewriting individual component styles.
Variable Registry
173 of 173 active system tokens
Implementation Example
tokens.css
:root {
--primary-color: #006a6a;
--surface-container: #eceeee;
--font-family-heading: "Space Grotesk", sans-serif;
--border-radius-lg: 0.75rem;
}
.card {
background-color: var(--surface-container);
border-radius: var(--border-radius-lg);
font-family: var(--font-family-heading);
}Scale & Spacing
Boreal UI spacing tokens are designed around predictable rhythm. Prefer shared variables like --spacing-md and --spacing-lg over one-off spacing values whenever a layout should feel consistent across pages.
Fast Theming
Change the active color scheme with the ThemeProvider, then customize structural variables in your global stylesheet.