@akanaka-design/tokens
v0.6.8
Published
Design tokens for the design system
Maintainers
Readme
@akanaka-design/tokens
Documentation: akanaka-design-system-docs.vercel.app
Repository: github.com/designfresh/akanaka-design-system
Design tokens (CSS variables, TypeScript, JSON, Tailwind v3 preset and v4 theme) for the Akanaka Design System.
Install
npm install @akanaka-design/tokens
# or
pnpm add @akanaka-design/tokensStart with the Tokens and Semantic tokens pages on the docs site for names, CSS imports, and Tailwind setup.
Tailwind v4 theme validation
The tokens package fails its build if src/tailwind-v4.css is missing any --color-* entry listed in scripts/required-v4-theme-colors.json. That catches gaps between tokens.css semantics and the v4 @theme inline preset (silent missing utilities in consuming apps).
- Run locally:
pnpm run validate:theme(ornpm run validate:theme) frompackages/tokens, orpnpm validate:theme/pnpm --filter @akanaka-design/tokens validate:themefrom the monorepo root. - CI: Root GitHub Actions run
pnpm validate:themebeforepnpm buildso incomplete@thememappings fail the pipeline. - Extend: add the new
--color-*line tosrc/tailwind-v4.cssand append the token key (the part after--color-) toscripts/required-v4-theme-colors.json. Keep semantic mappings aligned withpackages/components/tailwind.config.tswhere applicable.
