@synu/tokens
v0.1.0
Published
Design token engine for Synu — color primitives, semantic scales, spacing, typography, shadows, motion, and CSS variable generation.
Downloads
97
Maintainers
Readme
@synu/tokens
Design token engine for the Synu design system — color primitives, semantic scales, spacing, typography, shadows, motion, and CSS variable generation.
Installation
npm install @synu/tokensOr install everything at once:
npm install synu
Usage
TypeScript / JavaScript
import {
colors,
spacing,
radius,
typography,
shadows,
motion,
lightTheme,
darkTheme,
generateCSSVars,
} from '@synu/tokens';
// Generate CSS custom properties from a theme
const css = generateCSSVars(lightTheme);CSS
@import '@synu/tokens/css';What's Included
- Primitive Tokens — Colors, spacing, radius, typography, shadows, motion, z-index, breakpoints
- Semantic Tokens — Color roles, surface levels, text hierarchy, border styles
- Themes — Light and dark theme definitions
- CSS Generation —
generateCSSVars()to produce CSS custom properties from any theme object - Full TypeScript — Every token is fully typed
Documentation
Visit synu.dev for the theming and token guide.
License
MIT
