@figkit/tokens
v0.1.0
Published
Design tokens in JSON format with multi-brand and multi-theme support
Maintainers
Readme
@figkit/tokens
Design tokens in JSON format with multi-brand and multi-theme support.
Installation
npm install @figkit/tokens
# or
pnpm add @figkit/tokens
# or
yarn add @figkit/tokensUsage
Import token files directly:
import tokens from '@figkit/tokens/default.light.json';
console.log(tokens['color.bg.brand.default']); // "#0D99FF"Or use the main tokens file:
import tokens from '@figkit/tokens';
// Access tokens
const brandColor = tokens.color.bg.brand.default;Available Token Files
default.light.json- Default brand, light themedefault.dark.json- Default brand, dark themefigjam.light.json- FigJam brand, light themefigjam.dark.json- FigJam brand, dark themedevmode.light.json- DevMode brand, light themedevmode.dark.json- DevMode brand, dark themeslides.light.json- Slides brand, light themeslides.dark.json- Slides brand, dark theme
Token Structure
Tokens are organized by category:
color.*- Color tokens (text, background, border, icon)space.*- Spacing tokensradius.*- Border radius tokens- Typography tokens (font families, sizes, weights, etc.)
License
ISC
