@zgames/design-tokens
v2.0.0
Published
Design tokens library for ZGames Technology (iGaming) providing CSS variables and theming utilities for UI components.
Maintainers
Readme
@zgames/design-tokens
Design tokens library for ZGames Technology (iGaming). Provides CSS variables and theming utilities for UI components.
Features
- 3-layer token system: primitives, semantic, component tokens
- All tokens as CSS variables for runtime theming
- Used by @zgames/ui and compatible Angular projects
Installation
npm install @zgames/design-tokensUsage
Import the CSS variables in your global styles:
@import '@zgames/design-tokens/styles/tokens';Or use the theming utilities in TypeScript:
import { applyThemeFromRegistry } from '@zgames/design-tokens';Build
npm run build:design-tokensArtifacts in dist/design-tokens/.
Testing
npm run test:design-tokens
npm run test:design-tokens:coverageDocumentation
- API Docs:
npm run docs:design-tokens(Compodoc)
Publish
cd dist/design-tokens
npm publish --access publicContributing
License
MIT
Additional Resources
For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.
