@jztack/tokens 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,269 @@
1
+ /* Generated by @jztack/tokens tools/emit.mjs — do not edit. */
2
+
3
+ @theme {
4
+ --color-slate-50: #f8fafc;
5
+ --color-slate-100: #f1f5f9;
6
+ --color-slate-200: #e2e8f0;
7
+ --color-slate-300: #cbd5e1;
8
+ --color-slate-400: #94a3b8;
9
+ --color-slate-500: #64748b;
10
+ --color-slate-600: #475569;
11
+ --color-slate-700: #334155;
12
+ --color-slate-800: #1e293b;
13
+ --color-slate-900: #0f172a;
14
+ --color-slate-950: #020617;
15
+ --color-stone-50: #fafaf9;
16
+ --color-stone-100: #f5f5f4;
17
+ --color-stone-200: #e7e5e4;
18
+ --color-stone-300: #d6d3d1;
19
+ --color-stone-400: #a8a29e;
20
+ --color-stone-500: #78716c;
21
+ --color-stone-600: #57534e;
22
+ --color-stone-700: #44403c;
23
+ --color-stone-800: #292524;
24
+ --color-stone-900: #1c1917;
25
+ --color-stone-950: #0c0a09;
26
+ --color-blue-50: #eff6ff;
27
+ --color-blue-100: #dbeafe;
28
+ --color-blue-200: #bfdbfe;
29
+ --color-blue-300: #93c5fd;
30
+ --color-blue-400: #60a5fa;
31
+ --color-blue-500: #3b82f6;
32
+ --color-blue-600: #2563eb;
33
+ --color-blue-700: #1d4ed8;
34
+ --color-blue-800: #1e40af;
35
+ --color-blue-900: #1e3a8a;
36
+ --color-blue-950: #172554;
37
+ --color-teal-50: #f0fdfa;
38
+ --color-teal-100: #ccfbf1;
39
+ --color-teal-200: #99f6e4;
40
+ --color-teal-300: #5eead4;
41
+ --color-teal-400: #2dd4bf;
42
+ --color-teal-500: #14b8a6;
43
+ --color-teal-600: #0d9488;
44
+ --color-teal-700: #0f766e;
45
+ --color-teal-800: #115e59;
46
+ --color-teal-900: #134e4a;
47
+ --color-teal-950: #042f2e;
48
+ --color-indigo-50: #eef2ff;
49
+ --color-indigo-100: #e0e7ff;
50
+ --color-indigo-200: #c7d2fe;
51
+ --color-indigo-300: #a5b4fc;
52
+ --color-indigo-400: #818cf8;
53
+ --color-indigo-500: #6366f1;
54
+ --color-indigo-600: #4f46e5;
55
+ --color-indigo-700: #4338ca;
56
+ --color-indigo-800: #3730a3;
57
+ --color-indigo-900: #312e81;
58
+ --color-indigo-950: #1e1b4b;
59
+ --color-emerald-50: #ecfdf5;
60
+ --color-emerald-100: #d1fae5;
61
+ --color-emerald-200: #a7f3d0;
62
+ --color-emerald-300: #6ee7b7;
63
+ --color-emerald-400: #34d399;
64
+ --color-emerald-500: #10b981;
65
+ --color-emerald-600: #059669;
66
+ --color-emerald-700: #047857;
67
+ --color-emerald-800: #065f46;
68
+ --color-emerald-900: #064e3b;
69
+ --color-emerald-950: #022c22;
70
+ --color-amber-50: #fffbeb;
71
+ --color-amber-100: #fef3c7;
72
+ --color-amber-200: #fde68a;
73
+ --color-amber-300: #fcd34d;
74
+ --color-amber-400: #fbbf24;
75
+ --color-amber-500: #f59e0b;
76
+ --color-amber-600: #d97706;
77
+ --color-amber-700: #b45309;
78
+ --color-amber-800: #92400e;
79
+ --color-amber-900: #78350f;
80
+ --color-amber-950: #451a03;
81
+ --color-red-50: #fef2f2;
82
+ --color-red-100: #fee2e2;
83
+ --color-red-200: #fecaca;
84
+ --color-red-300: #fca5a5;
85
+ --color-red-400: #f87171;
86
+ --color-red-500: #ef4444;
87
+ --color-red-600: #dc2626;
88
+ --color-red-700: #b91c1c;
89
+ --color-red-800: #991b1b;
90
+ --color-red-900: #7f1d1d;
91
+ --color-red-950: #450a0a;
92
+ --color-sky-50: #f0f9ff;
93
+ --color-sky-100: #e0f2fe;
94
+ --color-sky-200: #bae6fd;
95
+ --color-sky-300: #7dd3fc;
96
+ --color-sky-400: #38bdf8;
97
+ --color-sky-500: #0ea5e9;
98
+ --color-sky-600: #0284c7;
99
+ --color-sky-700: #0369a1;
100
+ --color-sky-800: #075985;
101
+ --color-sky-900: #0c4a6e;
102
+ --color-sky-950: #082f49;
103
+ --color-white: #ffffff;
104
+ --color-black: #000000;
105
+ --color-transparent: transparent;
106
+ --spacing-none: 0px;
107
+ --spacing-hairline: 1px;
108
+ --spacing-xxs: 2px;
109
+ --spacing-xs: 4px;
110
+ --spacing-s: 8px;
111
+ --spacing-sm: 12px;
112
+ --spacing-m: 16px;
113
+ --spacing-l: 24px;
114
+ --spacing-lg: 32px;
115
+ --spacing-xl: 40px;
116
+ --container-3xs: 16rem;
117
+ --width-3xs: 16rem;
118
+ --min-width-3xs: 16rem;
119
+ --max-width-3xs: 16rem;
120
+ --container-2xs: 18rem;
121
+ --width-2xs: 18rem;
122
+ --min-width-2xs: 18rem;
123
+ --max-width-2xs: 18rem;
124
+ --container-xs: 20rem;
125
+ --width-xs: 20rem;
126
+ --min-width-xs: 20rem;
127
+ --max-width-xs: 20rem;
128
+ --container-sm: 24rem;
129
+ --width-sm: 24rem;
130
+ --min-width-sm: 24rem;
131
+ --max-width-sm: 24rem;
132
+ --container-md: 28rem;
133
+ --width-md: 28rem;
134
+ --min-width-md: 28rem;
135
+ --max-width-md: 28rem;
136
+ --container-lg: 32rem;
137
+ --width-lg: 32rem;
138
+ --min-width-lg: 32rem;
139
+ --max-width-lg: 32rem;
140
+ --container-xl: 36rem;
141
+ --width-xl: 36rem;
142
+ --min-width-xl: 36rem;
143
+ --max-width-xl: 36rem;
144
+ --container-2xl: 42rem;
145
+ --width-2xl: 42rem;
146
+ --min-width-2xl: 42rem;
147
+ --max-width-2xl: 42rem;
148
+ --container-3xl: 48rem;
149
+ --width-3xl: 48rem;
150
+ --min-width-3xl: 48rem;
151
+ --max-width-3xl: 48rem;
152
+ --container-4xl: 56rem;
153
+ --width-4xl: 56rem;
154
+ --min-width-4xl: 56rem;
155
+ --max-width-4xl: 56rem;
156
+ --container-5xl: 64rem;
157
+ --width-5xl: 64rem;
158
+ --min-width-5xl: 64rem;
159
+ --max-width-5xl: 64rem;
160
+ --container-6xl: 72rem;
161
+ --width-6xl: 72rem;
162
+ --min-width-6xl: 72rem;
163
+ --max-width-6xl: 72rem;
164
+ --container-7xl: 80rem;
165
+ --width-7xl: 80rem;
166
+ --min-width-7xl: 80rem;
167
+ --max-width-7xl: 80rem;
168
+ --radius-sm: 4px;
169
+ --radius-md: 8px;
170
+ --radius-lg: 12px;
171
+ --radius-xl: 16px;
172
+ --radius-2xl: 20px;
173
+ --radius-full: 9999px;
174
+ --breakpoint-phone: 0px;
175
+ --breakpoint-tablet: 768px;
176
+ --breakpoint-desktop: 1024px;
177
+ --breakpoint-wide: 1440px;
178
+ --font-sans: "Geist Variable", sans-serif;
179
+ --text-header: 28px;
180
+ --text-header--line-height: 34px;
181
+ --text-title: 20px;
182
+ --text-title--line-height: 26px;
183
+ --text-subtitle: 16px;
184
+ --text-subtitle--line-height: 22px;
185
+ --text-body: 15px;
186
+ --text-body--line-height: 22px;
187
+ --text-body-strong: 15px;
188
+ --text-body-strong--line-height: 22px;
189
+ --text-body-secondary: 13px;
190
+ --text-body-secondary--line-height: 18px;
191
+ --text-button: 15px;
192
+ --text-button--line-height: 22px;
193
+ --text-badge: 12px;
194
+ --text-badge--line-height: 18px;
195
+ --text-error: 12px;
196
+ --text-error--line-height: 16px;
197
+ --text-kpi: 28px;
198
+ --text-kpi--line-height: 34px;
199
+ --text-caption: 11px;
200
+ --text-caption--line-height: 16px;
201
+ --text-defaults: 15px;
202
+ --text-defaults--line-height: 22px;
203
+ }
204
+
205
+ [data-theme="wedding-ops"] {
206
+ --background: #fafaf9;
207
+ --background-secondary: #f5f5f4;
208
+ --foreground: #1c1917;
209
+ --foreground-secondary: #78716c;
210
+ --card: #ffffff;
211
+ --card-foreground: #1c1917;
212
+ --popover: #ffffff;
213
+ --popover-foreground: #1c1917;
214
+ --primary: #115e59;
215
+ --primary-foreground: #ffffff;
216
+ --secondary: #f5f5f4;
217
+ --secondary-foreground: #44403c;
218
+ --muted: #f5f5f4;
219
+ --muted-foreground: #57534e;
220
+ --accent: #0f766e;
221
+ --accent-bg: #f0fdfa;
222
+ --accent-border: rgba(15, 118, 110, 0.25);
223
+ --accent-foreground: #ffffff;
224
+ --destructive: #b91c1c;
225
+ --destructive-foreground: #ffffff;
226
+ --border: #d6d3d1;
227
+ --border-strong: #44403c;
228
+ --input: #d6d3d1;
229
+ --ring: #0f766e;
230
+ --success: #10b981;
231
+ --success-bg: #d1fae5;
232
+ --success-foreground: #065f46;
233
+ --warning: #f59e0b;
234
+ --warning-bg: #fef3c7;
235
+ --warning-foreground: #92400e;
236
+ --danger: #ef4444;
237
+ --danger-bg: #fee2e2;
238
+ --danger-foreground: #991b1b;
239
+ --info: #0284c7;
240
+ --info-bg: #e0f2fe;
241
+ --info-foreground: #075985;
242
+ }
243
+
244
+ [lang="my"] {
245
+ --text-header: 24px;
246
+ --text-header--line-height: 38px;
247
+ --text-title: 18px;
248
+ --text-title--line-height: 28px;
249
+ --text-subtitle: 15px;
250
+ --text-subtitle--line-height: 24px;
251
+ --text-body: 14px;
252
+ --text-body--line-height: 24px;
253
+ --text-body-strong: 14px;
254
+ --text-body-strong--line-height: 24px;
255
+ --text-body-secondary: 12px;
256
+ --text-body-secondary--line-height: 24px;
257
+ --text-button: 14px;
258
+ --text-button--line-height: 28px;
259
+ --text-badge: 11px;
260
+ --text-badge--line-height: 20px;
261
+ --text-error: 11px;
262
+ --text-error--line-height: 18px;
263
+ --text-kpi: 24px;
264
+ --text-kpi--line-height: 38px;
265
+ --text-caption: 11px;
266
+ --text-caption--line-height: 20px;
267
+ --text-defaults: 14px;
268
+ --text-defaults--line-height: 24px;
269
+ }
@@ -28,7 +28,13 @@ export const commonboard = {
28
28
  secondary: palette.slate[100], // CONSTRUCTED
29
29
  'secondary-foreground': palette.slate[700],
30
30
  muted: palette.slate[100], // CONSTRUCTED
31
- 'muted-foreground': palette.slate[500],
31
+ // slate-600 (contrast correction, Dec 5, 2026): slate-500 on
32
+ // slate-100 measured 4.34:1 — below the 4.5:1 floor for the Badge
33
+ // neutral-subtle pairing (muted-foreground on muted at 12px).
34
+ // Slate-600 on slate-100 measures 6.92:1 (pinned in
35
+ // tests/contrast.test.ts). Constructed value — verify against the
36
+ // live app at adoption.
37
+ 'muted-foreground': palette.slate[600],
32
38
  accent: palette.blue[100],
33
39
  // The subtle pair is the app's own blue Badge tone (ui.tsx):
34
40
  // bg-blue-50 with a blue-600/20 inset ring.
@@ -33,7 +33,12 @@ export const rentproof = {
33
33
  secondary: palette.stone[100], // CONSTRUCTED
34
34
  'secondary-foreground': palette.stone[700],
35
35
  muted: palette.stone[100], // CONSTRUCTED
36
- 'muted-foreground': palette.stone[500],
36
+ // stone-600 (pilot correction, Dec 5, 2026): the app's dominant
37
+ // secondary text is stone-600, and stone-500 on stone-100 measured
38
+ // only ~4.4:1 — below the 4.5:1 floor for the Badge neutral-subtle
39
+ // pairing (muted-foreground on muted at 12px). Stone-600 on
40
+ // stone-100 measures 6.99:1 (pinned in tests/contrast.test.ts).
41
+ 'muted-foreground': palette.stone[600],
37
42
  accent: brandDark,
38
43
  'accent-bg': 'rgba(7, 94, 107, 0.08)', // CONSTRUCTED — brand at 8%
39
44
  'accent-border': 'rgba(7, 94, 107, 0.2)', // CONSTRUCTED — brand at 20%
@@ -34,7 +34,12 @@ export const twjs = {
34
34
  secondary: palette.slate[100],
35
35
  'secondary-foreground': palette.slate[700],
36
36
  muted: palette.slate[100], // CONSTRUCTED
37
- 'muted-foreground': palette.slate[500], // CONSTRUCTED
37
+ // slate-600 (contrast correction, Dec 5, 2026): slate-500 on
38
+ // slate-100 measured 4.34:1 — below the 4.5:1 floor for the Badge
39
+ // neutral-subtle pairing (muted-foreground on muted at 12px).
40
+ // Slate-600 on slate-100 measures 6.92:1 (pinned in
41
+ // tests/contrast.test.ts). CONSTRUCTED — verify at adoption.
42
+ 'muted-foreground': palette.slate[600], // CONSTRUCTED
38
43
  accent: '#5a31f4',
39
44
  'accent-bg': 'rgba(90, 49, 244, 0.06)', // = brandBg in the source theme
40
45
  'accent-border': 'rgba(90, 49, 244, 0.15)', // = brandBorder in the source theme
@@ -33,7 +33,13 @@ export const weddingOps = {
33
33
  secondary: palette.stone[100], // CONSTRUCTED
34
34
  'secondary-foreground': palette.stone[700],
35
35
  muted: palette.stone[100], // CONSTRUCTED
36
- 'muted-foreground': palette.stone[500],
36
+ // stone-600 (contrast correction, Dec 5, 2026): stone-500 on
37
+ // stone-100 measured 4.40:1 — below the 4.5:1 floor for the Badge
38
+ // neutral-subtle pairing (muted-foreground on muted at 12px).
39
+ // Stone-600 on stone-100 measures 6.99:1 (pinned in
40
+ // tests/contrast.test.ts). Constructed value — verify against the
41
+ // live app at adoption.
42
+ 'muted-foreground': palette.stone[600],
37
43
  accent: palette.teal[700],
38
44
  'accent-bg': palette.teal[50], // CONSTRUCTED
39
45
  'accent-border': 'rgba(15, 118, 110, 0.25)', // CONSTRUCTED — teal-700 at 25%
package/dist/tokens.css CHANGED
@@ -263,7 +263,7 @@
263
263
  --secondary: #f1f5f9;
264
264
  --secondary-foreground: #334155;
265
265
  --muted: #f1f5f9;
266
- --muted-foreground: #64748b;
266
+ --muted-foreground: #475569;
267
267
  --accent: #dbeafe;
268
268
  --accent-bg: #eff6ff;
269
269
  --accent-border: rgba(37, 99, 235, 0.2);
@@ -302,7 +302,7 @@
302
302
  --secondary: #f5f5f4;
303
303
  --secondary-foreground: #44403c;
304
304
  --muted: #f5f5f4;
305
- --muted-foreground: #78716c;
305
+ --muted-foreground: #57534e;
306
306
  --accent: #0f766e;
307
307
  --accent-bg: #f0fdfa;
308
308
  --accent-border: rgba(15, 118, 110, 0.25);
@@ -341,7 +341,7 @@
341
341
  --secondary: #f5f5f4;
342
342
  --secondary-foreground: #44403c;
343
343
  --muted: #f5f5f4;
344
- --muted-foreground: #78716c;
344
+ --muted-foreground: #57534e;
345
345
  --accent: #054b55;
346
346
  --accent-bg: rgba(7, 94, 107, 0.08);
347
347
  --accent-border: rgba(7, 94, 107, 0.2);
@@ -380,7 +380,7 @@
380
380
  --secondary: #f1f5f9;
381
381
  --secondary-foreground: #334155;
382
382
  --muted: #f1f5f9;
383
- --muted-foreground: #64748b;
383
+ --muted-foreground: #475569;
384
384
  --accent: #5a31f4;
385
385
  --accent-bg: rgba(90, 49, 244, 0.06);
386
386
  --accent-border: rgba(90, 49, 244, 0.15);
package/package.json CHANGED
@@ -10,6 +10,7 @@
10
10
  "types": "./dist/index.d.ts"
11
11
  },
12
12
  "./css": "./dist/tokens.css",
13
+ "./css/*": "./dist/css/*.css",
13
14
  "./restyle": {
14
15
  "default": "./dist/restyle.js",
15
16
  "types": "./dist/restyle.d.ts"
@@ -20,10 +21,11 @@
20
21
  ],
21
22
  "name": "@jztack/tokens",
22
23
  "sideEffects": [
23
- "./dist/tokens.css"
24
+ "./dist/tokens.css",
25
+ "./dist/css/*.css"
24
26
  ],
25
27
  "type": "module",
26
- "version": "0.1.0",
28
+ "version": "0.2.0",
27
29
  "scripts": {
28
30
  "build": "tsc -p tsconfig.json && node tools/emit.mjs",
29
31
  "test": "vitest run",