@jztack/tokens 0.0.0-stage → 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,472 @@
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="tabbie"] {
206
+ --background: #090a0f;
207
+ --background-secondary: rgba(255, 255, 255, 0.05);
208
+ --foreground: #ffffff;
209
+ --foreground-secondary: rgba(255, 255, 255, 0.6);
210
+ --card: #0f111a;
211
+ --card-foreground: #ffffff;
212
+ --popover: #0f111a;
213
+ --popover-foreground: #ffffff;
214
+ --primary: #ffffff;
215
+ --primary-foreground: #090a0f;
216
+ --secondary: rgba(255, 255, 255, 0.05);
217
+ --secondary-foreground: #ffffff;
218
+ --muted: rgba(255, 255, 255, 0.05);
219
+ --muted-foreground: rgba(255, 255, 255, 0.6);
220
+ --accent: rgba(255, 255, 255, 0.1);
221
+ --accent-bg: rgba(255, 255, 255, 0.1);
222
+ --accent-border: rgba(255, 255, 255, 0.1);
223
+ --accent-foreground: #ffffff;
224
+ --destructive: #f87171;
225
+ --destructive-foreground: #ffffff;
226
+ --border: rgba(255, 255, 255, 0.1);
227
+ --border-strong: rgba(255, 255, 255, 0.3);
228
+ --input: rgba(255, 255, 255, 0.1);
229
+ --ring: rgba(255, 255, 255, 0.3);
230
+ --success: #34d399;
231
+ --success-bg: rgba(52, 211, 153, 0.12);
232
+ --success-foreground: #34d399;
233
+ --warning: #fbbf24;
234
+ --warning-bg: rgba(251, 191, 36, 0.12);
235
+ --warning-foreground: #fbbf24;
236
+ --danger: #f87171;
237
+ --danger-bg: rgba(248, 113, 113, 0.12);
238
+ --danger-foreground: #f87171;
239
+ --info: #60a5fa;
240
+ --info-bg: rgba(96, 165, 250, 0.12);
241
+ --info-foreground: #60a5fa;
242
+ --radius: 1rem;
243
+ --radius-sm: calc(var(--radius) * 0.6);
244
+ --radius-md: calc(var(--radius) * 0.8);
245
+ --radius-lg: var(--radius);
246
+ --radius-xl: calc(var(--radius) * 1.4);
247
+ --radius-2xl: calc(var(--radius) * 1.8);
248
+ --radius-3xl: calc(var(--radius) * 2.2);
249
+ --radius-4xl: calc(var(--radius) * 2.6);
250
+ }
251
+
252
+ [data-theme="commonboard"] {
253
+ --background: #f1f5f9;
254
+ --background-secondary: #e2e8f0;
255
+ --foreground: #0f172a;
256
+ --foreground-secondary: #64748b;
257
+ --card: #ffffff;
258
+ --card-foreground: #0f172a;
259
+ --popover: #ffffff;
260
+ --popover-foreground: #0f172a;
261
+ --primary: #1d4ed8;
262
+ --primary-foreground: #ffffff;
263
+ --secondary: #f1f5f9;
264
+ --secondary-foreground: #334155;
265
+ --muted: #f1f5f9;
266
+ --muted-foreground: #475569;
267
+ --accent: #dbeafe;
268
+ --accent-bg: #eff6ff;
269
+ --accent-border: rgba(37, 99, 235, 0.2);
270
+ --accent-foreground: #1e40af;
271
+ --destructive: #dc2626;
272
+ --destructive-foreground: #ffffff;
273
+ --border: #cbd5e1;
274
+ --border-strong: #334155;
275
+ --input: #cbd5e1;
276
+ --ring: #2563eb;
277
+ --success: #10b981;
278
+ --success-bg: #d1fae5;
279
+ --success-foreground: #065f46;
280
+ --warning: #f59e0b;
281
+ --warning-bg: #fef3c7;
282
+ --warning-foreground: #92400e;
283
+ --danger: #ef4444;
284
+ --danger-bg: #fee2e2;
285
+ --danger-foreground: #991b1b;
286
+ --info: #0284c7;
287
+ --info-bg: #e0f2fe;
288
+ --info-foreground: #075985;
289
+ }
290
+
291
+ [data-theme="wedding-ops"] {
292
+ --background: #fafaf9;
293
+ --background-secondary: #f5f5f4;
294
+ --foreground: #1c1917;
295
+ --foreground-secondary: #78716c;
296
+ --card: #ffffff;
297
+ --card-foreground: #1c1917;
298
+ --popover: #ffffff;
299
+ --popover-foreground: #1c1917;
300
+ --primary: #115e59;
301
+ --primary-foreground: #ffffff;
302
+ --secondary: #f5f5f4;
303
+ --secondary-foreground: #44403c;
304
+ --muted: #f5f5f4;
305
+ --muted-foreground: #57534e;
306
+ --accent: #0f766e;
307
+ --accent-bg: #f0fdfa;
308
+ --accent-border: rgba(15, 118, 110, 0.25);
309
+ --accent-foreground: #ffffff;
310
+ --destructive: #b91c1c;
311
+ --destructive-foreground: #ffffff;
312
+ --border: #d6d3d1;
313
+ --border-strong: #44403c;
314
+ --input: #d6d3d1;
315
+ --ring: #0f766e;
316
+ --success: #10b981;
317
+ --success-bg: #d1fae5;
318
+ --success-foreground: #065f46;
319
+ --warning: #f59e0b;
320
+ --warning-bg: #fef3c7;
321
+ --warning-foreground: #92400e;
322
+ --danger: #ef4444;
323
+ --danger-bg: #fee2e2;
324
+ --danger-foreground: #991b1b;
325
+ --info: #0284c7;
326
+ --info-bg: #e0f2fe;
327
+ --info-foreground: #075985;
328
+ }
329
+
330
+ [data-theme="rentproof"] {
331
+ --background: #fafaf9;
332
+ --background-secondary: #f5f5f4;
333
+ --foreground: #1c1917;
334
+ --foreground-secondary: #78716c;
335
+ --card: #ffffff;
336
+ --card-foreground: #1c1917;
337
+ --popover: #ffffff;
338
+ --popover-foreground: #1c1917;
339
+ --primary: #075e6b;
340
+ --primary-foreground: #ffffff;
341
+ --secondary: #f5f5f4;
342
+ --secondary-foreground: #44403c;
343
+ --muted: #f5f5f4;
344
+ --muted-foreground: #57534e;
345
+ --accent: #054b55;
346
+ --accent-bg: rgba(7, 94, 107, 0.08);
347
+ --accent-border: rgba(7, 94, 107, 0.2);
348
+ --accent-foreground: #ffffff;
349
+ --destructive: #dc2626;
350
+ --destructive-foreground: #ffffff;
351
+ --border: #e7e5e4;
352
+ --border-strong: #44403c;
353
+ --input: #d6d3d1;
354
+ --ring: #075e6b;
355
+ --success: #10b981;
356
+ --success-bg: #d1fae5;
357
+ --success-foreground: #065f46;
358
+ --warning: #f59e0b;
359
+ --warning-bg: #fef3c7;
360
+ --warning-foreground: #92400e;
361
+ --danger: #ef4444;
362
+ --danger-bg: #fee2e2;
363
+ --danger-foreground: #991b1b;
364
+ --info: #0284c7;
365
+ --info-bg: #e0f2fe;
366
+ --info-foreground: #075985;
367
+ }
368
+
369
+ [data-theme="twjs"] {
370
+ --background: #f8fafc;
371
+ --background-secondary: #f1f5f9;
372
+ --foreground: #0f172a;
373
+ --foreground-secondary: #64748b;
374
+ --card: #ffffff;
375
+ --card-foreground: #0f172a;
376
+ --popover: #ffffff;
377
+ --popover-foreground: #0f172a;
378
+ --primary: #4f46e5;
379
+ --primary-foreground: #ffffff;
380
+ --secondary: #f1f5f9;
381
+ --secondary-foreground: #334155;
382
+ --muted: #f1f5f9;
383
+ --muted-foreground: #475569;
384
+ --accent: #5a31f4;
385
+ --accent-bg: rgba(90, 49, 244, 0.06);
386
+ --accent-border: rgba(90, 49, 244, 0.15);
387
+ --accent-foreground: #ffffff;
388
+ --destructive: #ef4444;
389
+ --destructive-foreground: #ffffff;
390
+ --border: #e2e8f0;
391
+ --border-strong: #334155;
392
+ --input: #e2e8f0;
393
+ --ring: #4f46e5;
394
+ --success: #10b981;
395
+ --success-bg: #d1fae5;
396
+ --success-foreground: #065f46;
397
+ --warning: #f59e0b;
398
+ --warning-bg: #fef3c7;
399
+ --warning-foreground: #92400e;
400
+ --danger: #ef4444;
401
+ --danger-bg: #fee2e2;
402
+ --danger-foreground: #991b1b;
403
+ --info: #0284c7;
404
+ --info-bg: #e0f2fe;
405
+ --info-foreground: #075985;
406
+ }
407
+
408
+ [data-theme="twjs"].dark {
409
+ --background: #0b0f19;
410
+ --background-secondary: #162032;
411
+ --foreground: #e2e8f0;
412
+ --foreground-secondary: #94a3b8;
413
+ --card: #151e2e;
414
+ --card-foreground: #e2e8f0;
415
+ --popover: #151e2e;
416
+ --popover-foreground: #e2e8f0;
417
+ --primary: #6366f1;
418
+ --primary-foreground: #ffffff;
419
+ --secondary: #1e293b;
420
+ --secondary-foreground: #cbd5e1;
421
+ --muted: #1e293b;
422
+ --muted-foreground: #94a3b8;
423
+ --accent: #818cf8;
424
+ --accent-bg: rgba(129, 140, 248, 0.12);
425
+ --accent-border: rgba(129, 140, 248, 0.25);
426
+ --accent-foreground: #0b0f19;
427
+ --destructive: #fca5a5;
428
+ --destructive-foreground: #0b0f19;
429
+ --border: #243044;
430
+ --border-strong: #475569;
431
+ --input: #243044;
432
+ --ring: #6366f1;
433
+ --success: #6ee7b7;
434
+ --success-bg: rgba(16, 185, 129, 0.12);
435
+ --success-foreground: #6ee7b7;
436
+ --warning: #fcd34d;
437
+ --warning-bg: rgba(245, 158, 11, 0.12);
438
+ --warning-foreground: #fcd34d;
439
+ --danger: #fca5a5;
440
+ --danger-bg: rgba(239, 68, 68, 0.12);
441
+ --danger-foreground: #fca5a5;
442
+ --info: #7dd3fc;
443
+ --info-bg: rgba(2, 132, 199, 0.12);
444
+ --info-foreground: #7dd3fc;
445
+ }
446
+
447
+ [lang="my"] {
448
+ --text-header: 24px;
449
+ --text-header--line-height: 38px;
450
+ --text-title: 18px;
451
+ --text-title--line-height: 28px;
452
+ --text-subtitle: 15px;
453
+ --text-subtitle--line-height: 24px;
454
+ --text-body: 14px;
455
+ --text-body--line-height: 24px;
456
+ --text-body-strong: 14px;
457
+ --text-body-strong--line-height: 24px;
458
+ --text-body-secondary: 12px;
459
+ --text-body-secondary--line-height: 24px;
460
+ --text-button: 14px;
461
+ --text-button--line-height: 28px;
462
+ --text-badge: 11px;
463
+ --text-badge--line-height: 20px;
464
+ --text-error: 11px;
465
+ --text-error--line-height: 18px;
466
+ --text-kpi: 24px;
467
+ --text-kpi--line-height: 38px;
468
+ --text-caption: 11px;
469
+ --text-caption--line-height: 20px;
470
+ --text-defaults: 14px;
471
+ --text-defaults--line-height: 24px;
472
+ }
package/package.json CHANGED
@@ -1,6 +1,34 @@
1
1
  {
2
+ "devDependencies": {
3
+ "typescript": "^7.0.2",
4
+ "vitest": "^5.1.2"
5
+ },
6
+ "description": "Design tokens for all @jztack apps: one source of truth, emitted as Tailwind 4 CSS and as a restyle theme object.",
7
+ "exports": {
8
+ ".": {
9
+ "default": "./dist/index.js",
10
+ "types": "./dist/index.d.ts"
11
+ },
12
+ "./css": "./dist/tokens.css",
13
+ "./css/*": "./dist/css/*.css",
14
+ "./restyle": {
15
+ "default": "./dist/restyle.js",
16
+ "types": "./dist/restyle.d.ts"
17
+ }
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
2
22
  "name": "@jztack/tokens",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
23
+ "sideEffects": [
24
+ "./dist/tokens.css",
25
+ "./dist/css/*.css"
26
+ ],
27
+ "type": "module",
28
+ "version": "0.2.0",
29
+ "scripts": {
30
+ "build": "tsc -p tsconfig.json && node tools/emit.mjs",
31
+ "test": "vitest run",
32
+ "typecheck": "tsc -p tsconfig.json --noEmit"
33
+ }
6
34
  }