@chisquare-tech/yan-design-tokens
v0.1.1
Published
Yan design tokens: single source of truth generating CSS, Kotlin (Compose) and Swift (SwiftUI).
Readme
yan-design-tokens
Single source of truth (tokens.json, extracted from the Yan prototype) generating:
| Output | Consumer |
|---|---|
| dist/tokens.css | web (cloud/web/src/styles.scss) — sRGB hex fallback + oklch(), [data-theme=dark] and prefers-color-scheme |
| dist/YanTokens.kt | Android :core:designsystem (Compose Color) |
| dist/YanTokens.swift | iOS YanDesign (SwiftUI Color) |
| dist/tokens.resolved.json | tests / tooling |
npm run build regenerates dist/ (committed so native repos can vendor it). npm test checks the oklch→sRGB conversion and token completeness. Dark values are derived, not designed (PLAN D14).
