@podoba/tokens 0.0.14 → 0.0.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podoba/tokens",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "description": "podoba design tokens — static DTCG tokens.json + generated CSS custom properties. Framework-agnostic.",
6
6
  "repository": {
package/src/tokens.json CHANGED
@@ -1,6 +1,29 @@
1
1
  {
2
2
  "color": {
3
3
  "accent": {
4
+ "blue": {
5
+ "$type": "color",
6
+ "$value": "#005ff9",
7
+ "$description": "Accent blue — links / informational accent (gs accent-blue).",
8
+ "$extensions": {
9
+ "graphicstandard": {
10
+ "family": "color",
11
+ "layer": "semantic",
12
+ "value": {
13
+ "kind": "color",
14
+ "value": [
15
+ {
16
+ "themeKey": "light",
17
+ "online": {
18
+ "colorSpace": "hex",
19
+ "hex": "#005ff9"
20
+ }
21
+ }
22
+ ]
23
+ }
24
+ }
25
+ }
26
+ },
4
27
  "green-light": {
5
28
  "$type": "color",
6
29
  "$value": "#b1fed4",
@@ -24,6 +47,29 @@
24
47
  }
25
48
  }
26
49
  },
50
+ "green-lighter": {
51
+ "$type": "color",
52
+ "$value": "#96f6c2",
53
+ "$description": "Accent green-lighter — hover step above green-light (gs color.green.lighter).",
54
+ "$extensions": {
55
+ "graphicstandard": {
56
+ "family": "color",
57
+ "layer": "semantic",
58
+ "value": {
59
+ "kind": "color",
60
+ "value": [
61
+ {
62
+ "themeKey": "light",
63
+ "online": {
64
+ "colorSpace": "hex",
65
+ "hex": "#96f6c2"
66
+ }
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ }
72
+ },
27
73
  "mint": {
28
74
  "$type": "color",
29
75
  "$value": "#dff6ec",
@@ -121,7 +167,7 @@
121
167
  "DEFAULT": {
122
168
  "$type": "color",
123
169
  "$value": "#eceae1",
124
- "$description": "Border — neutral-100.",
170
+ "$description": "Border — neutral-100 on light, 10% white hairline on dark (gs dark-border).",
125
171
  "$extensions": {
126
172
  "graphicstandard": {
127
173
  "family": "color",
@@ -135,6 +181,43 @@
135
181
  "colorSpace": "hex",
136
182
  "hex": "#eceae1"
137
183
  }
184
+ },
185
+ {
186
+ "themeKey": "dark",
187
+ "online": {
188
+ "colorSpace": "hex",
189
+ "hex": "#ffffff1a"
190
+ }
191
+ }
192
+ ]
193
+ }
194
+ }
195
+ }
196
+ },
197
+ "muted": {
198
+ "$type": "color",
199
+ "$value": "#ddd9d0",
200
+ "$description": "Border muted — stronger hairline (gs border-muted; dark: 20% white).",
201
+ "$extensions": {
202
+ "graphicstandard": {
203
+ "family": "color",
204
+ "layer": "semantic",
205
+ "value": {
206
+ "kind": "color",
207
+ "value": [
208
+ {
209
+ "themeKey": "light",
210
+ "online": {
211
+ "colorSpace": "hex",
212
+ "hex": "#ddd9d0"
213
+ }
214
+ },
215
+ {
216
+ "themeKey": "dark",
217
+ "online": {
218
+ "colorSpace": "hex",
219
+ "hex": "#ffffff33"
220
+ }
138
221
  }
139
222
  ]
140
223
  }
@@ -169,7 +252,7 @@
169
252
  "primary": {
170
253
  "$type": "color",
171
254
  "$value": "#0d0d0d",
172
- "$description": "Brand black — primary / interactive.",
255
+ "$description": "Brand primary / interactive — brand black on light, brand green on dark (gs primary flip).",
173
256
  "$extensions": {
174
257
  "graphicstandard": {
175
258
  "family": "color",
@@ -183,6 +266,13 @@
183
266
  "colorSpace": "hex",
184
267
  "hex": "#0d0d0d"
185
268
  }
269
+ },
270
+ {
271
+ "themeKey": "dark",
272
+ "online": {
273
+ "colorSpace": "hex",
274
+ "hex": "#75e7b8"
275
+ }
186
276
  }
187
277
  ]
188
278
  }
@@ -217,7 +307,7 @@
217
307
  "DEFAULT": {
218
308
  "$type": "color",
219
309
  "$value": "#dc2626",
220
- "$description": "Danger — error.",
310
+ "$description": "Danger — error (dark: gs error-dark, brighter for contrast).",
221
311
  "$extensions": {
222
312
  "graphicstandard": {
223
313
  "family": "color",
@@ -231,6 +321,13 @@
231
321
  "colorSpace": "hex",
232
322
  "hex": "#dc2626"
233
323
  }
324
+ },
325
+ {
326
+ "themeKey": "dark",
327
+ "online": {
328
+ "colorSpace": "hex",
329
+ "hex": "#ef4444"
330
+ }
234
331
  }
235
332
  ]
236
333
  }
@@ -259,13 +356,43 @@
259
356
  }
260
357
  }
261
358
  }
359
+ },
360
+ "light": {
361
+ "$type": "color",
362
+ "$value": "#fee2e2",
363
+ "$description": "Danger light — error fill background (dark: 15% error tint, gs error-light-dark).",
364
+ "$extensions": {
365
+ "graphicstandard": {
366
+ "family": "color",
367
+ "layer": "semantic",
368
+ "value": {
369
+ "kind": "color",
370
+ "value": [
371
+ {
372
+ "themeKey": "light",
373
+ "online": {
374
+ "colorSpace": "hex",
375
+ "hex": "#fee2e2"
376
+ }
377
+ },
378
+ {
379
+ "themeKey": "dark",
380
+ "online": {
381
+ "colorSpace": "hex",
382
+ "hex": "#ef444426"
383
+ }
384
+ }
385
+ ]
386
+ }
387
+ }
388
+ }
262
389
  }
263
390
  },
264
391
  "fg": {
265
392
  "DEFAULT": {
266
393
  "$type": "color",
267
394
  "$value": "#0d0d0d",
268
- "$description": "Foreground — primary text (brand black).",
395
+ "$description": "Foreground — primary text (brand black on light, white on dark).",
269
396
  "$extensions": {
270
397
  "graphicstandard": {
271
398
  "family": "color",
@@ -279,6 +406,13 @@
279
406
  "colorSpace": "hex",
280
407
  "hex": "#0d0d0d"
281
408
  }
409
+ },
410
+ {
411
+ "themeKey": "dark",
412
+ "online": {
413
+ "colorSpace": "hex",
414
+ "hex": "#ffffff"
415
+ }
282
416
  }
283
417
  ]
284
418
  }
@@ -288,7 +422,7 @@
288
422
  "inverted": {
289
423
  "$type": "color",
290
424
  "$value": "#ffffff",
291
- "$description": "Foreground inverted — text on dark.",
425
+ "$description": "Foreground inverted — text on the inverted surface.",
292
426
  "$extensions": {
293
427
  "graphicstandard": {
294
428
  "family": "color",
@@ -302,6 +436,13 @@
302
436
  "colorSpace": "hex",
303
437
  "hex": "#ffffff"
304
438
  }
439
+ },
440
+ {
441
+ "themeKey": "dark",
442
+ "online": {
443
+ "colorSpace": "hex",
444
+ "hex": "#0d0d0d"
445
+ }
305
446
  }
306
447
  ]
307
448
  }
@@ -311,7 +452,7 @@
311
452
  "muted": {
312
453
  "$type": "color",
313
454
  "$value": "#7d786f",
314
- "$description": "Foreground muted — secondary text (gs text-muted; WCAG AA on white + surface-muted).",
455
+ "$description": "Foreground muted — secondary/body text (AA-compliant grey on white). Dark: gs neutral-200 #aba89c. NOTE: gs de-emphasized DECORATIVE text (e.g. dashboard greeting) uses a lighter grey (#b3b3b3 = fg-subtle territory) — that is a per-component token choice, not this value.",
315
456
  "$extensions": {
316
457
  "graphicstandard": {
317
458
  "family": "color",
@@ -325,6 +466,13 @@
325
466
  "colorSpace": "hex",
326
467
  "hex": "#7d786f"
327
468
  }
469
+ },
470
+ {
471
+ "themeKey": "dark",
472
+ "online": {
473
+ "colorSpace": "hex",
474
+ "hex": "#aba89c"
475
+ }
328
476
  }
329
477
  ]
330
478
  }
@@ -333,8 +481,8 @@
333
481
  },
334
482
  "subtle": {
335
483
  "$type": "color",
336
- "$value": "#aba89c",
337
- "$description": "Foreground subtle — tertiary lead-in text inside large display stats (decorative scale only — below AA for body text).",
484
+ "$value": "#b3b3b3",
485
+ "$description": "Foreground subtle — light decorative grey (gs #b3b3b3 / neutral-300): dashboard greeting de-emphasis, lead-in text in large display stats. Same value in light + dark (decorative scale — below AA for body text; use fg-muted for readable secondary text).",
338
486
  "$extensions": {
339
487
  "graphicstandard": {
340
488
  "family": "color",
@@ -346,7 +494,7 @@
346
494
  "themeKey": "light",
347
495
  "online": {
348
496
  "colorSpace": "hex",
349
- "hex": "#aba89c"
497
+ "hex": "#b3b3b3"
350
498
  }
351
499
  }
352
500
  ]
@@ -356,6 +504,29 @@
356
504
  }
357
505
  },
358
506
  "neutral": {
507
+ "300": {
508
+ "$type": "color",
509
+ "$value": "#b3b3b3",
510
+ "$description": "Neutral-300 — mid grey (gs neutral-300).",
511
+ "$extensions": {
512
+ "graphicstandard": {
513
+ "family": "color",
514
+ "layer": "semantic",
515
+ "value": {
516
+ "kind": "color",
517
+ "value": [
518
+ {
519
+ "themeKey": "light",
520
+ "online": {
521
+ "colorSpace": "hex",
522
+ "hex": "#b3b3b3"
523
+ }
524
+ }
525
+ ]
526
+ }
527
+ }
528
+ }
529
+ },
359
530
  "600": {
360
531
  "$type": "color",
361
532
  "$value": "#333333",
@@ -384,7 +555,7 @@
384
555
  "DEFAULT": {
385
556
  "$type": "color",
386
557
  "$value": "#0d0d0d",
387
- "$description": "Focus ring — interactive primary (black).",
558
+ "$description": "Focus ring — interactive primary (black on light, brand green on dark).",
388
559
  "$extensions": {
389
560
  "graphicstandard": {
390
561
  "family": "color",
@@ -398,6 +569,13 @@
398
569
  "colorSpace": "hex",
399
570
  "hex": "#0d0d0d"
400
571
  }
572
+ },
573
+ {
574
+ "themeKey": "dark",
575
+ "online": {
576
+ "colorSpace": "hex",
577
+ "hex": "#75e7b8"
578
+ }
401
579
  }
402
580
  ]
403
581
  }
@@ -457,7 +635,7 @@
457
635
  "DEFAULT": {
458
636
  "$type": "color",
459
637
  "$value": "#ffffff",
460
- "$description": "Surface — canvas.",
638
+ "$description": "Surface — page canvas (dark: gs --color-background = neutral-400 #242423, matches the rendered gs-manager dark shell).",
461
639
  "$extensions": {
462
640
  "graphicstandard": {
463
641
  "family": "color",
@@ -471,6 +649,13 @@
471
649
  "colorSpace": "hex",
472
650
  "hex": "#ffffff"
473
651
  }
652
+ },
653
+ {
654
+ "themeKey": "dark",
655
+ "online": {
656
+ "colorSpace": "hex",
657
+ "hex": "#242423"
658
+ }
474
659
  }
475
660
  ]
476
661
  }
@@ -480,7 +665,7 @@
480
665
  "card": {
481
666
  "$type": "color",
482
667
  "$value": "#f7f6f2",
483
- "$description": "Surface card — cream tile / dashboard card fill.",
668
+ "$description": "Surface card — cream tile on light, elevated dark tile on dark (gs neutral-400).",
484
669
  "$extensions": {
485
670
  "graphicstandard": {
486
671
  "family": "color",
@@ -494,6 +679,13 @@
494
679
  "colorSpace": "hex",
495
680
  "hex": "#f7f6f2"
496
681
  }
682
+ },
683
+ {
684
+ "themeKey": "dark",
685
+ "online": {
686
+ "colorSpace": "hex",
687
+ "hex": "#242423"
688
+ }
497
689
  }
498
690
  ]
499
691
  }
@@ -503,7 +695,7 @@
503
695
  "inverted": {
504
696
  "$type": "color",
505
697
  "$value": "#242423",
506
- "$description": "Surface inverted — dark tile / pill-button fill (pairs with fg.inverted).",
698
+ "$description": "Surface inverted — dark tile / pill-button fill; inverts to a light surface on dark (pairs with fg.inverted).",
507
699
  "$extensions": {
508
700
  "graphicstandard": {
509
701
  "family": "color",
@@ -517,6 +709,13 @@
517
709
  "colorSpace": "hex",
518
710
  "hex": "#242423"
519
711
  }
712
+ },
713
+ {
714
+ "themeKey": "dark",
715
+ "online": {
716
+ "colorSpace": "hex",
717
+ "hex": "#f7f6f2"
718
+ }
520
719
  }
521
720
  ]
522
721
  }
@@ -526,7 +725,7 @@
526
725
  "muted": {
527
726
  "$type": "color",
528
727
  "$value": "#eceae1",
529
- "$description": "Surface muted — hover / active / panel-strong.",
728
+ "$description": "Surface muted — hover / active / panel-strong (dark: gs neutral-600).",
530
729
  "$extensions": {
531
730
  "graphicstandard": {
532
731
  "family": "color",
@@ -540,6 +739,13 @@
540
739
  "colorSpace": "hex",
541
740
  "hex": "#eceae1"
542
741
  }
742
+ },
743
+ {
744
+ "themeKey": "dark",
745
+ "online": {
746
+ "colorSpace": "hex",
747
+ "hex": "#333333"
748
+ }
543
749
  }
544
750
  ]
545
751
  }
@@ -549,7 +755,7 @@
549
755
  "placeholder": {
550
756
  "$type": "color",
551
757
  "$value": "#333333",
552
- "$description": "Surface placeholder — media / thumbnail placeholder block.",
758
+ "$description": "Surface placeholder — media / thumbnail placeholder block (reads on both themes).",
553
759
  "$extensions": {
554
760
  "graphicstandard": {
555
761
  "family": "color",
@@ -1094,60 +1300,60 @@
1094
1300
  "tracking": {
1095
1301
  "normal": {
1096
1302
  "$type": "dimension",
1097
- "$value": "-0.13px",
1098
- "$description": "Letter spacing — normal (gs body default).",
1303
+ "$value": "0.01em",
1304
+ "$description": "Letter spacing — normal (body default).",
1099
1305
  "$extensions": {
1100
1306
  "graphicstandard": {
1101
1307
  "family": "dimension",
1102
1308
  "layer": "semantic",
1103
1309
  "value": {
1104
1310
  "kind": "scalar",
1105
- "value": "-0.13px"
1311
+ "value": "0.01em"
1106
1312
  }
1107
1313
  }
1108
1314
  }
1109
1315
  },
1110
1316
  "tight": {
1111
1317
  "$type": "dimension",
1112
- "$value": "-0.2px",
1113
- "$description": "Letter spacing — tight (gs headings).",
1318
+ "$value": "0em",
1319
+ "$description": "Letter spacing — tight (neutral; dense UI text).",
1114
1320
  "$extensions": {
1115
1321
  "graphicstandard": {
1116
1322
  "family": "dimension",
1117
1323
  "layer": "semantic",
1118
1324
  "value": {
1119
1325
  "kind": "scalar",
1120
- "value": "-0.2px"
1326
+ "value": "0em"
1121
1327
  }
1122
1328
  }
1123
1329
  }
1124
1330
  },
1125
1331
  "wide": {
1126
1332
  "$type": "dimension",
1127
- "$value": "-0.56px",
1128
- "$description": "Letter spacing — wide display (gs).",
1333
+ "$value": "0.02em",
1334
+ "$description": "Letter spacing — wide (headings / display).",
1129
1335
  "$extensions": {
1130
1336
  "graphicstandard": {
1131
1337
  "family": "dimension",
1132
1338
  "layer": "semantic",
1133
1339
  "value": {
1134
1340
  "kind": "scalar",
1135
- "value": "-0.56px"
1341
+ "value": "0.02em"
1136
1342
  }
1137
1343
  }
1138
1344
  }
1139
1345
  },
1140
1346
  "wider": {
1141
1347
  "$type": "dimension",
1142
- "$value": "-0.6px",
1143
- "$description": "Letter spacing — wider display (gs).",
1348
+ "$value": "0.03em",
1349
+ "$description": "Letter spacing — wider (large display).",
1144
1350
  "$extensions": {
1145
1351
  "graphicstandard": {
1146
1352
  "family": "dimension",
1147
1353
  "layer": "semantic",
1148
1354
  "value": {
1149
1355
  "kind": "scalar",
1150
- "value": "-0.6px"
1356
+ "value": "0.03em"
1151
1357
  }
1152
1358
  }
1153
1359
  }
package/src/variables.css CHANGED
@@ -3,21 +3,26 @@
3
3
  /* Regenerate: bun --filter @tools/sync-tokens start */
4
4
 
5
5
  :root {
6
+ --color-accent-blue: #005ff9;
6
7
  --color-accent-green-light: #b1fed4;
8
+ --color-accent-green-lighter: #96f6c2;
7
9
  --color-accent-mint: #dff6ec;
8
10
  --color-accent-pink: #ff69b4;
9
11
  --color-accent-strong: #4bcf9f;
10
12
  --color-accent-yellow: #ffcc6a;
11
13
  --color-border: #eceae1;
14
+ --color-border-muted: #ddd9d0;
12
15
  --color-brand-green: #75e7b8;
13
16
  --color-brand-primary: #0d0d0d;
14
17
  --color-brand-secondary: #6eddb1;
15
18
  --color-danger: #dc2626;
16
19
  --color-danger-fg: #ffffff;
20
+ --color-danger-light: #fee2e2;
17
21
  --color-fg: #0d0d0d;
18
22
  --color-fg-inverted: #ffffff;
19
23
  --color-fg-muted: #7d786f;
20
- --color-fg-subtle: #aba89c;
24
+ --color-fg-subtle: #b3b3b3;
25
+ --color-neutral-300: #b3b3b3;
21
26
  --color-neutral-600: #333333;
22
27
  --color-ring: #0d0d0d;
23
28
  --color-success: #4bcf9f;
@@ -61,8 +66,24 @@
61
66
  --space-sm: 0.5rem;
62
67
  --space-xl: 2rem;
63
68
  --space-xs: 0.25rem;
64
- --tracking-normal: -0.13px;
65
- --tracking-tight: -0.2px;
66
- --tracking-wide: -0.56px;
67
- --tracking-wider: -0.6px;
69
+ --tracking-normal: 0.01em;
70
+ --tracking-tight: 0em;
71
+ --tracking-wide: 0.02em;
72
+ --tracking-wider: 0.03em;
73
+ }
74
+
75
+ [data-theme="dark"] {
76
+ --color-border: #ffffff1a;
77
+ --color-border-muted: #ffffff33;
78
+ --color-brand-primary: #75e7b8;
79
+ --color-danger: #ef4444;
80
+ --color-danger-light: #ef444426;
81
+ --color-fg: #ffffff;
82
+ --color-fg-inverted: #0d0d0d;
83
+ --color-fg-muted: #aba89c;
84
+ --color-ring: #75e7b8;
85
+ --color-surface: #242423;
86
+ --color-surface-card: #242423;
87
+ --color-surface-inverted: #f7f6f2;
88
+ --color-surface-muted: #333333;
68
89
  }