@pingux/onyx-tokens
v0.35.1
Published
Design tokens for the Onyx/NextGen theme, built with [Style Dictionary](https://amzn.github.io/style-dictionary/).
Readme
@pingux/onyx-tokens
Design tokens for the Onyx/NextGen theme, built with Style Dictionary.
Usage
import { astroTokens, astroTokensDark } from '@pingux/onyx-tokens';
// Access tokens programmatically
const primaryColor = astroTokens.color.primary; // '#1a73e8'
const spacing = astroTokens.spacing.md; // 16Token Reference
See build/TOKENS.md for the complete list of available tokens with values.
Building
npm run buildThis generates:
build/astro/tokens.json- Light theme tokensbuild/astro/tokens-dark.json- Dark theme tokensbuild/TOKENS.md- Auto-generated token documentation- CSS and SCSS variables
Running Tests
npm test