Skip to main content
The CSS export generates custom properties (CSS variables) with automatic dark mode support.

Output format

Only tokens with different dark values get a [data-theme="dark"] override. Non-color tokens are the same in both modes.

Configuration

Prefix

The default prefix is --. You can customize it per design system:

Naming convention

Configure these in your design system settings or pass them as query parameters to the export API.

Usage in code

Dark mode

The CSS export uses [data-theme="dark"] for dark mode. Add this attribute to your root element to switch themes:
Or toggle it with JavaScript: