mirror of
https://github.com/hanzoai/design.git
synced 2026-10-30 14:58:37 +00:00
Adds a code layer to @hanzo/design: scripts/gen-tokens.mjs parses tokens/*.css into typed TS (src/tokens.gen.ts), src/index.ts exposes colors/spacing/radius/ zIndex/... + cssVar()/tokenValue()/injectDesignCss(). One source (the CSS), TS derived, so the stylesheet and code can never drift. Additive — CSS exports unchanged. Makes hanzoai/design the programmatic control plane for look & feel. Co-authored-by: Hanzo Dev <[email protected]>
19 lines
431 B
JSON
19 lines
431 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"lib": ["ES2022", "DOM"],
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["dist", "node_modules"]
|
|
}
|