@boyernick/standard-ui-tokens 0.1.0 → 0.1.1-canary.2

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.
Files changed (2) hide show
  1. package/css/tokens.css +39 -31
  2. package/package.json +1 -1
package/css/tokens.css CHANGED
@@ -25,6 +25,7 @@
25
25
  --text-primary-inverted: var(--gray-0);
26
26
  --text-secondary-inverted: var(--gray-200);
27
27
 
28
+ --border-subtle: var(--alpha-06);
28
29
  --border-primary: var(--alpha-10);
29
30
  --border-primary-solid: var(--gray-100);
30
31
  --border-secondary: var(--alpha-15);
@@ -58,19 +59,24 @@
58
59
  --ring: var(--gray-1000);
59
60
 
60
61
  /*
61
- * Code syntax — White (arthurwhite.White), mapped to gray scale
62
- * strings ≈ greyStrong (#6b7a88 → gray-450), comments ≈ grey (#bec9d3 → gray-200)
62
+ * Code syntax — Rare UI's red light theme, rebuilt on our own scales.
63
+ * That theme generates every token from one accent hue (hsl 3.2) by ramping
64
+ * lightness and scaling saturation, so each role below is the nearest token
65
+ * to the colour it generates. Punctuation and comments are desaturated warm
66
+ * mid-tones the red scale cannot reach on its own, so they are mixed toward
67
+ * gray. Hierarchy comes from colour alone — the previous mapping was
68
+ * monochrome and leaned on font-weight instead.
63
69
  */
64
- --sh-class: var(--gray-1000);
65
- --sh-identifier: var(--gray-1000);
66
- --sh-sign: var(--gray-1000);
67
- --sh-space: var(--gray-1000);
68
- --sh-property: var(--gray-1000);
69
- --sh-entity: var(--gray-1000);
70
- --sh-jsxliterals: var(--gray-1000);
71
- --sh-string: var(--gray-450);
72
- --sh-keyword: var(--gray-1000);
73
- --sh-comment: var(--gray-200);
70
+ --sh-keyword: var(--red-500);
71
+ --sh-string: var(--red-700);
72
+ --sh-jsxliterals: var(--red-800);
73
+ --sh-property: var(--red-800);
74
+ --sh-entity: var(--red-950);
75
+ --sh-class: var(--red-1000);
76
+ --sh-identifier: var(--gray-925);
77
+ --sh-space: var(--gray-925);
78
+ --sh-sign: color-mix(in oklab, var(--red-200) 49%, var(--gray-950));
79
+ --sh-comment: color-mix(in oklab, var(--red-300) 47%, var(--gray-450));
74
80
 
75
81
  /* Spacing base — 4px unit for Tailwind spacing scale */
76
82
  --spacing: 0.25rem;
@@ -136,19 +142,20 @@
136
142
  --ring: var(--gray-1000);
137
143
 
138
144
  /*
139
- * Code syntax — White Night via inverted gray scale
140
- * strings ≈ #a8a8b1 → gray-700, comments ≈ #65696e → gray-550
145
+ * Code syntax — dark half of the same theme. The red scale does not flip
146
+ * between themes (only gray does), so the dark ramp walks the light end of
147
+ * the same reds rather than the dark end.
141
148
  */
142
- --sh-class: var(--gray-1000);
149
+ --sh-keyword: var(--red-400);
150
+ --sh-string: var(--red-200);
151
+ --sh-jsxliterals: var(--red-100);
152
+ --sh-property: var(--red-100);
153
+ --sh-entity: var(--red-50);
154
+ --sh-class: var(--red-25);
143
155
  --sh-identifier: var(--gray-1000);
144
- --sh-sign: var(--gray-1000);
145
156
  --sh-space: var(--gray-1000);
146
- --sh-property: var(--gray-1000);
147
- --sh-entity: var(--gray-1000);
148
- --sh-jsxliterals: var(--gray-1000);
149
- --sh-string: var(--gray-700);
150
- --sh-keyword: var(--gray-1000);
151
- --sh-comment: var(--gray-550);
157
+ --sh-sign: color-mix(in oklab, var(--red-300) 36%, var(--gray-600));
158
+ --sh-comment: color-mix(in oklab, var(--red-600) 52%, var(--gray-500));
152
159
 
153
160
  --shadow-alpha-100: 0.2;
154
161
  --shadow-alpha-200: 0.2;
@@ -190,6 +197,7 @@
190
197
  --color-fg-inverted: var(--text-primary-inverted);
191
198
  --color-fg-inverted-secondary: var(--text-secondary-inverted);
192
199
 
200
+ --color-border-subtle: var(--border-subtle);
193
201
  --color-border-primary: var(--border-primary);
194
202
  --color-border-primary-solid: var(--border-primary-solid);
195
203
  --color-border-secondary: var(--border-secondary);
@@ -391,7 +399,7 @@
391
399
  font-family: var(--font-sans);
392
400
  font-size: 2.25rem;
393
401
  line-height: 2.625rem;
394
- font-weight: 600;
402
+ font-weight: 500;
395
403
  letter-spacing: 0em;
396
404
  }
397
405
 
@@ -399,7 +407,7 @@
399
407
  font-family: var(--font-display);
400
408
  font-size: 2.25rem;
401
409
  line-height: 2.625rem;
402
- font-weight: 600;
410
+ font-weight: 500;
403
411
  letter-spacing: 0em;
404
412
  }
405
413
 
@@ -407,7 +415,7 @@
407
415
  font-family: var(--font-sans);
408
416
  font-size: 2rem;
409
417
  line-height: 2.375rem;
410
- font-weight: 600;
418
+ font-weight: 500;
411
419
  letter-spacing: 0em;
412
420
  }
413
421
 
@@ -415,7 +423,7 @@
415
423
  font-family: var(--font-display);
416
424
  font-size: 2rem;
417
425
  line-height: 2.375rem;
418
- font-weight: 600;
426
+ font-weight: 500;
419
427
  letter-spacing: 0em;
420
428
  }
421
429
 
@@ -423,7 +431,7 @@
423
431
  font-family: var(--font-sans);
424
432
  font-size: 1.5rem;
425
433
  line-height: 1.75rem;
426
- font-weight: 600;
434
+ font-weight: 500;
427
435
  letter-spacing: 0em;
428
436
  }
429
437
 
@@ -431,7 +439,7 @@
431
439
  font-family: var(--font-display);
432
440
  font-size: 1.5rem;
433
441
  line-height: 1.75rem;
434
- font-weight: 600;
442
+ font-weight: 500;
435
443
  letter-spacing: 0em;
436
444
  }
437
445
 
@@ -439,7 +447,7 @@
439
447
  font-family: var(--font-sans);
440
448
  font-size: 1.25rem;
441
449
  line-height: 1.625rem;
442
- font-weight: 600;
450
+ font-weight: 500;
443
451
  letter-spacing: 0em;
444
452
  }
445
453
 
@@ -447,7 +455,7 @@
447
455
  font-family: var(--font-sans);
448
456
  font-size: 1.125rem;
449
457
  line-height: 1.625rem;
450
- font-weight: 600;
458
+ font-weight: 500;
451
459
  letter-spacing: 0em;
452
460
  }
453
461
 
@@ -455,7 +463,7 @@
455
463
  font-family: var(--font-sans);
456
464
  font-size: 1rem;
457
465
  line-height: 1.5rem;
458
- font-weight: 600;
466
+ font-weight: 500;
459
467
  letter-spacing: 0em;
460
468
  }
461
469
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyernick/standard-ui-tokens",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-canary.2",
4
4
  "description": "Design tokens for StandardUI",
5
5
  "license": "MIT",
6
6
  "files": [