- Canonical bytelyst.tokens.json with colors, typography, spacing, radius, elevation, motion, breakpoints - loadTokens() for programmatic access - generate.ts script outputs 4 platform formats: - tokens.css (CSS custom properties with --ml-* prefix) - tokens.ts (TypeScript constants) - MindLystTokens.kt (Kotlin object for KMP shared module) - MindLystTheme.swift (Swift structs for SwiftUI) - Shared across LysnrAI dashboards and MindLyst native apps
25 lines
554 B
JSON
25 lines
554 B
JSON
{
|
|
"name": "@bytelyst/design-tokens",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./tokens.json": "./tokens/bytelyst.tokens.json",
|
|
"./css": "./generated/tokens.css"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": ["dist", "tokens", "generated", "scripts"],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"generate": "tsx scripts/generate.ts",
|
|
"test": "vitest run"
|
|
},
|
|
"devDependencies": {
|
|
"tsx": "^4.0.0"
|
|
}
|
|
}
|