Design tokens for surf-kit — colors, spacing, typography as CSS, JSON, and TypeScript
Part of the surf-kit design system.
npm install @surf-kit/tokens// Light mode (default)
import '@surf-kit/tokens/css';
// Dark mode overrides
import '@surf-kit/tokens/css/dark';
// Brand mode (teal/gold theme)
import '@surf-kit/tokens/css/brand';import tokens from '@surf-kit/tokens';
// tokens.color.primary, tokens.spacing.md, etc.import tokens from '@surf-kit/tokens/json';Built with Style Dictionary v4 using the DTCG format. Source tokens live in the monorepo under src/ and are compiled to CSS, JSON, and TypeScript outputs.
Three CSS builds are generated:
- Light —
:rootcustom properties - Dark —
:rootoverrides for dark mode - Brand —
[data-color-mode="brand"]overrides for the teal/gold brand theme