@macaw-ds/tokens
v0.2.0
Published
MACAW design tokens: DTCG JSON compiled to CSS variables, a Tailwind v4 theme and TypeScript constants
Readme
@macaw-ds/tokens
Design tokens for the MACAW design system, authored in W3C DTCG JSON (src/) and compiled to:
tokens.css:--macaw-*CSS variables for light (:root) and dark ([data-theme="dark"], plus OS preference)theme.css: a Tailwind v4@theme inlinefile so utilities likebg-action-primarymap to the variablestokens.js/tokens.d.ts: typed constants (tokens.color.action.primaryis"var(--macaw-color-action-primary)")tokens.meta.json: every token with its light and dark values, tier and description
@import 'tailwindcss';
@import '@macaw-ds/tokens/tokens.css';
@import '@macaw-ds/tokens/theme.css';Three tiers: primitive (color.neutral.600), semantic (color.action.primary), component (button.bg.primary). Components reference semantic tokens only.
