@leonardaustin/ui 0.31.0 → 0.33.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.
package/dist/styles.css CHANGED
@@ -200,6 +200,8 @@
200
200
  .theme-solarized,
201
201
  .theme-cyber-brutal-dark,
202
202
  .theme-cyber-brutal-light,
203
+ .theme-studio-light,
204
+ .theme-studio-dark,
203
205
  .theme-glass-dark,
204
206
  .theme-glass-light,
205
207
  .theme-glass {
@@ -217,6 +219,241 @@
217
219
  --info-fg: var(--blue-fg);
218
220
  }
219
221
 
222
+ /* Studio: palette based on GitHub Primer (MIT) */
223
+ .theme-studio-light,
224
+ .theme-studio-dark {
225
+ --bg-content: var(--bg-primary);
226
+ --bg-table: var(--bg-secondary);
227
+ --bg-table-header: var(--bg-primary);
228
+ --text-table-header: var(--text-secondary);
229
+ --text-table-header-hover: var(--text-primary);
230
+ --bg-pinned: var(--bg-secondary);
231
+ --bg-tooltip: var(--bg-tertiary);
232
+ --bg-media-badge: rgba(0, 0, 0, 0.2);
233
+ --control-knob: #ffffff;
234
+ --qr-foreground: #000000;
235
+ --qr-background: #ffffff;
236
+ --text-on-avatar: #ffffff;
237
+ --text-on-media: #ffffff;
238
+ --text-on-media-muted: rgba(255, 255, 255, 0.8);
239
+ --shadow-knob: 0 0 1px rgba(0, 0, 0, 0.1), 2px 0 4px rgba(0, 0, 0, 0.35);
240
+ --transition-fast: 100ms ease;
241
+ --transition-base: 150ms ease;
242
+ --transition-slow: 250ms ease;
243
+ --sidebar-width: 220px;
244
+ --sidebar-collapsed: 48px;
245
+ --topbar-height: 36px;
246
+ --bottomnav-height: 56px;
247
+
248
+ /* Rebind generated utility tokens when Studio is scoped to a subtree. */
249
+ --font-sans: var(--font-ui);
250
+ --font-mono: var(--font-code);
251
+ --spacing: var(--ui-density);
252
+ --tracking-wider: var(--ui-tracking);
253
+ --radius-sm: var(--ui-radius);
254
+ --radius-md: var(--ui-radius-md);
255
+ --radius-lg: var(--ui-radius-lg);
256
+ --radius-xl: var(--ui-radius-xl);
257
+ --radius: var(--ui-radius);
258
+ --color-bg-primary: var(--bg-primary);
259
+ --color-bg-secondary: var(--bg-secondary);
260
+ --color-bg-tertiary: var(--bg-tertiary);
261
+ --color-bg-hover: var(--bg-hover);
262
+ --color-bg-active: var(--bg-active);
263
+ --color-bg-overlay: var(--bg-overlay);
264
+ --color-bg-sidebar: var(--bg-sidebar);
265
+ --color-bg-media-badge: var(--bg-media-badge);
266
+ --color-control-knob: var(--control-knob);
267
+ --color-text-primary: var(--text-primary);
268
+ --color-text-secondary: var(--text-secondary);
269
+ --color-text-tertiary: var(--text-tertiary);
270
+ --color-text-disabled: var(--text-disabled);
271
+ --color-text-on-accent: var(--text-on-accent);
272
+ --color-text-on-avatar: var(--text-on-avatar);
273
+ --color-text-on-media: var(--text-on-media);
274
+ --color-text-on-media-muted: var(--text-on-media-muted);
275
+ --color-border: var(--border);
276
+ --color-border-strong: var(--border-strong);
277
+ --color-accent: var(--accent);
278
+ --color-accent-hover: var(--accent-hover);
279
+ --color-accent-active: var(--accent-active);
280
+ --color-accent-muted: var(--accent-muted);
281
+ --color-accent-subtle: var(--accent-subtle);
282
+ --color-green: var(--green);
283
+ --color-green-muted: var(--green-muted);
284
+ --color-success: var(--success);
285
+ --color-success-muted: var(--success-muted);
286
+ --color-yellow: var(--yellow);
287
+ --color-yellow-muted: var(--yellow-muted);
288
+ --color-warning: var(--warning);
289
+ --color-warning-muted: var(--warning-muted);
290
+ --color-red: var(--red);
291
+ --color-red-muted: var(--red-muted);
292
+ --color-danger: var(--danger);
293
+ --color-danger-muted: var(--danger-muted);
294
+ --color-blue: var(--blue);
295
+ --color-blue-muted: var(--blue-muted);
296
+ --color-info: var(--info);
297
+ --color-info-muted: var(--info-muted);
298
+ --color-purple: var(--purple);
299
+ --color-purple-muted: var(--purple-muted);
300
+ --ui-radius: 6px;
301
+ --ui-radius-md: 8px;
302
+ --ui-radius-lg: 10px;
303
+ --ui-radius-xl: 16px;
304
+ --ui-border-width: 1px;
305
+ --ui-tracking: 0em;
306
+ --ui-line-height: 1.45;
307
+ --ui-density: 0.25rem;
308
+ --font-ui:
309
+ -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
310
+ --font-code: "SF Mono", ui-monospace, Menlo, monospace;
311
+ --font-heading: var(--font-ui);
312
+ --font-control: var(--font-ui);
313
+ --font-data: var(--font-ui);
314
+ --font-label: var(--font-ui);
315
+ --font-navigation: var(--font-ui);
316
+ --font-prose: var(--font-ui);
317
+ --border-focus: var(--accent);
318
+ --text-placeholder: var(--text-tertiary);
319
+ --shadow-sm: var(--shadow-md);
320
+ --shadow-lg: var(--shadow-md);
321
+ }
322
+
323
+ .theme-studio-light {
324
+ color-scheme: light;
325
+ --bg-primary: #f6f8fa;
326
+ --bg-secondary: #ffffff;
327
+ --bg-tertiary: #ffffff;
328
+ --bg-sidebar: #eaeef2;
329
+ --bg-card: #ffffff;
330
+ --bg-table-band: #eaeef2;
331
+ --text-primary: #1f2328;
332
+ --text-secondary: #656d76;
333
+ --text-tertiary: #6f7276;
334
+ --text-disabled: #8c959f;
335
+ --text-inverse: #ffffff;
336
+ --text-on-accent: #ffffff;
337
+ --border: #d8dee4;
338
+ --border-strong: #d0d7de;
339
+ --accent: #0969da;
340
+ --accent-hover: #0550ae;
341
+ --accent-active: #0969da;
342
+ --accent-muted: #ddf4ff;
343
+ --accent-subtle: rgba(9, 105, 218, 0.08);
344
+ --orange-fg: #9a6700;
345
+ --red: #cf222e;
346
+ --red-fg: #cf222e;
347
+ --red-muted: #ffebe9;
348
+ --green: #116329;
349
+ --green-fg: #116329;
350
+ --green-muted: #dafbe1;
351
+ --yellow: #9a6700;
352
+ --yellow-fg: #9a6700;
353
+ --yellow-muted: #fff8c5;
354
+ --purple: #8250df;
355
+ --purple-fg: #7f4ddc;
356
+ --purple-muted: #fbefff;
357
+ --blue: #0969da;
358
+ --blue-fg: #0969da;
359
+ --blue-muted: #ddf4ff;
360
+ --rose: #a40e26;
361
+ --rose-fg: #a40e26;
362
+ --rose-muted: #ffebe9;
363
+ --teal: #1b7c83;
364
+ --teal-fg: #17787f;
365
+ --teal-muted: rgba(27, 124, 131, 0.03);
366
+ --bg-hover: rgba(208, 215, 222, 0.2);
367
+ --bg-active: rgba(175, 184, 193, 0.2);
368
+ --bg-overlay: rgba(140, 149, 159, 0.2);
369
+ --accent-fg: #0969da;
370
+ --shadow-focus: 0 0 0 2px rgb(9 105 218 / 0.22);
371
+ --shadow-md: 0 4px 6px rgb(0 0 0 / 0.08);
372
+ --term-bg: #ffffff;
373
+ --term-fg: #1f2328;
374
+ --term-cursor: #0969da;
375
+ --term-muted: #6e7781;
376
+ --term-path: #1b7c83;
377
+ --term-branch: #8250df;
378
+ --term-success: #116329;
379
+ --term-working: #9a6700;
380
+ --term-selection: #1f2328;
381
+ --term-selection-fg: #ffffff;
382
+ --shadow-sm: 0 2px 4px rgb(0 0 0 / 0.08);
383
+ --pane-backdrop: rgb(246 248 250 / 0.65);
384
+ --pane-tint: rgb(241 239 222 / 0.08);
385
+ --pane-stroke: rgb(31 35 40 / 0.08);
386
+ --tab-hover: rgba(208, 215, 222, 0.2);
387
+ --window-filter: saturate(1.15) brightness(1.1);
388
+ }
389
+
390
+ .theme-studio-dark {
391
+ color-scheme: dark;
392
+ --bg-primary: #0d1117;
393
+ --bg-secondary: #161b22;
394
+ --bg-tertiary: #161b22;
395
+ --bg-sidebar: #010409;
396
+ --bg-card: #161b22;
397
+ --bg-table-band: #21262d;
398
+ --text-primary: #e6edf3;
399
+ --text-secondary: #848d97;
400
+ --text-tertiary: #83878c;
401
+ --text-disabled: #6e7681;
402
+ --text-inverse: #0d1117;
403
+ --text-on-accent: #0d1117;
404
+ --border: #21262d;
405
+ --border-strong: #30363d;
406
+ --accent: #2f81f7;
407
+ --accent-hover: #58a6ff;
408
+ --accent-active: #2f81f7;
409
+ --accent-muted: rgba(56, 139, 253, 0.1);
410
+ --accent-subtle: rgba(56, 139, 253, 0.1);
411
+ --orange-fg: #d29922;
412
+ --red: #ff7b72;
413
+ --red-fg: #ff7b72;
414
+ --red-muted: rgba(248, 81, 73, 0.1);
415
+ --green: #3fb950;
416
+ --green-fg: #3fb950;
417
+ --green-muted: rgba(46, 160, 67, 0.15);
418
+ --yellow: #d29922;
419
+ --yellow-fg: #d29922;
420
+ --yellow-muted: rgba(187, 128, 9, 0.15);
421
+ --purple: #bc8cff;
422
+ --purple-fg: #bc8cff;
423
+ --purple-muted: rgba(163, 113, 247, 0.1);
424
+ --blue: #58a6ff;
425
+ --blue-fg: #58a6ff;
426
+ --blue-muted: rgba(56, 139, 253, 0.1);
427
+ --rose: #ffa198;
428
+ --rose-fg: #ffa198;
429
+ --rose-muted: rgba(248, 81, 73, 0.1);
430
+ --teal: #39c5cf;
431
+ --teal-fg: #39c5cf;
432
+ --teal-muted: rgba(57, 197, 207, 0.12);
433
+ --bg-hover: rgba(110, 118, 129, 0.1);
434
+ --bg-active: rgba(110, 118, 129, 0.4);
435
+ --bg-overlay: rgba(22, 27, 34, 0.4);
436
+ --accent-fg: #58a6ff;
437
+ --shadow-focus: 0 0 0 2px rgb(47 129 247 / 0.25);
438
+ --shadow-md: 0 4px 6px rgb(0 0 0 / 0.26);
439
+ --term-bg: #0d1117;
440
+ --term-fg: #e6edf3;
441
+ --term-cursor: #2f81f7;
442
+ --term-muted: #b1bac4;
443
+ --term-path: #39c5cf;
444
+ --term-branch: #bc8cff;
445
+ --term-success: #3fb950;
446
+ --term-working: #d29922;
447
+ --term-selection: #e6edf3;
448
+ --term-selection-fg: #0d1117;
449
+ --shadow-sm: var(--shadow-md);
450
+ --pane-backdrop: rgb(22 27 34 / 0.75);
451
+ --pane-tint: rgb(18 15 29 / 0.3);
452
+ --pane-stroke: rgb(1 4 9 / 0.09);
453
+ --tab-hover: rgba(110, 118, 129, 0.1);
454
+ --window-filter: brightness(0.65);
455
+ }
456
+
220
457
  /* ─── Light Theme ─── */
221
458
 
222
459
  .theme-light,
@@ -1070,6 +1307,8 @@ pre.shiki span {
1070
1307
  .theme-light-inverted pre.shiki span,
1071
1308
  .theme-cyber-brutal-light pre.shiki,
1072
1309
  .theme-cyber-brutal-light pre.shiki span,
1310
+ .theme-studio-light pre.shiki,
1311
+ .theme-studio-light pre.shiki span,
1073
1312
  .theme-glass-light pre.shiki,
1074
1313
  .theme-glass-light pre.shiki span,
1075
1314
  .theme-hashi pre.shiki,
@@ -1156,6 +1395,16 @@ pre.shiki span {
1156
1395
  background-color: var(--bg-secondary);
1157
1396
  }
1158
1397
 
1398
+ :is(.theme-studio-light, .theme-studio-dark) .bg-bg-card {
1399
+ background-color: var(--bg-card);
1400
+ background-image:
1401
+ linear-gradient(var(--pane-tint), var(--pane-tint)),
1402
+ linear-gradient(var(--pane-backdrop), var(--pane-backdrop));
1403
+ box-shadow:
1404
+ 0 0 0 1px var(--pane-stroke),
1405
+ var(--shadow-md);
1406
+ }
1407
+
1159
1408
  .theme-glass .bg-bg-card {
1160
1409
  background-color: var(--glass-card-bg);
1161
1410
  }
@@ -1173,6 +1422,10 @@ pre.shiki span {
1173
1422
  /* Clear only the shell's default fill. cn removes that default utility when a
1174
1423
  caller supplies another background; hover/focus utilities also still win. */
1175
1424
  @layer utilities {
1425
+ :is(.theme-studio-light, .theme-studio-dark) .bg-bg-card.rounded-md {
1426
+ border-radius: var(--ui-radius-lg);
1427
+ }
1428
+
1176
1429
  .theme-glass :where(.ui-glass-shell.bg-bg-primary) {
1177
1430
  background-color: transparent;
1178
1431
  }
@@ -2730,6 +2983,7 @@ select:disabled + .ui-select-placeholder {
2730
2983
  }
2731
2984
  :is(
2732
2985
  button.ui-sized-control[data-variant],
2986
+ a.ui-sized-control[data-variant],
2733
2987
  input.ui-sized-control:not(.ui-password-input),
2734
2988
  textarea.ui-sized-control
2735
2989
  )[data-control-size="compact"]:not([data-variant="icon"]):not(
@@ -3184,7 +3438,7 @@ select:disabled + .ui-select-placeholder {
3184
3438
  }
3185
3439
  .ui-table-header-band > thead > tr > th {
3186
3440
  color: var(--text-primary);
3187
- background-color: var(--bg-hover);
3441
+ background-color: var(--bg-table-band, var(--bg-hover));
3188
3442
  font-size: inherit;
3189
3443
  letter-spacing: normal;
3190
3444
  text-transform: none;
@@ -0,0 +1,68 @@
1
+
2
+
3
+ .theme-studio-dark {
4
+ color-scheme: dark;
5
+ --bg-primary: #0d1117;
6
+ --bg-secondary: #161b22;
7
+ --bg-tertiary: #161b22;
8
+ --bg-sidebar: #010409;
9
+ --bg-card: #161b22;
10
+ --bg-table-band: #21262d;
11
+ --text-primary: #e6edf3;
12
+ --text-secondary: #848d97;
13
+ --text-tertiary: #83878c;
14
+ --text-disabled: #6e7681;
15
+ --text-inverse: #0d1117;
16
+ --text-on-accent: #0d1117;
17
+ --border: #21262d;
18
+ --border-strong: #30363d;
19
+ --accent: #2f81f7;
20
+ --accent-hover: #58a6ff;
21
+ --accent-active: #2f81f7;
22
+ --accent-muted: rgba(56, 139, 253, 0.1);
23
+ --accent-subtle: rgba(56, 139, 253, 0.1);
24
+ --orange-fg: #d29922;
25
+ --red: #ff7b72;
26
+ --red-fg: #ff7b72;
27
+ --red-muted: rgba(248, 81, 73, 0.1);
28
+ --green: #3fb950;
29
+ --green-fg: #3fb950;
30
+ --green-muted: rgba(46, 160, 67, 0.15);
31
+ --yellow: #d29922;
32
+ --yellow-fg: #d29922;
33
+ --yellow-muted: rgba(187, 128, 9, 0.15);
34
+ --purple: #bc8cff;
35
+ --purple-fg: #bc8cff;
36
+ --purple-muted: rgba(163, 113, 247, 0.1);
37
+ --blue: #58a6ff;
38
+ --blue-fg: #58a6ff;
39
+ --blue-muted: rgba(56, 139, 253, 0.1);
40
+ --rose: #ffa198;
41
+ --rose-fg: #ffa198;
42
+ --rose-muted: rgba(248, 81, 73, 0.1);
43
+ --teal: #39c5cf;
44
+ --teal-fg: #39c5cf;
45
+ --teal-muted: rgba(57, 197, 207, 0.12);
46
+ --bg-hover: rgba(110, 118, 129, 0.1);
47
+ --bg-active: rgba(110, 118, 129, 0.4);
48
+ --bg-overlay: rgba(22, 27, 34, 0.4);
49
+ --accent-fg: #58a6ff;
50
+ --shadow-focus: 0 0 0 2px rgb(47 129 247 / 0.25);
51
+ --shadow-md: 0 4px 6px rgb(0 0 0 / 0.26);
52
+ --term-bg: #0d1117;
53
+ --term-fg: #e6edf3;
54
+ --term-cursor: #2f81f7;
55
+ --term-muted: #b1bac4;
56
+ --term-path: #39c5cf;
57
+ --term-branch: #bc8cff;
58
+ --term-success: #3fb950;
59
+ --term-working: #d29922;
60
+ --term-selection: #e6edf3;
61
+ --term-selection-fg: #0d1117;
62
+ --shadow-sm: var(--shadow-md);
63
+ --pane-backdrop: rgb(22 27 34 / 0.75);
64
+ --pane-tint: rgb(18 15 29 / 0.3);
65
+ --pane-stroke: rgb(1 4 9 / 0.09);
66
+ --tab-hover: rgba(110, 118, 129, 0.1);
67
+ --window-filter: brightness(0.65);
68
+ }
@@ -0,0 +1,68 @@
1
+
2
+
3
+ .theme-studio-light {
4
+ color-scheme: light;
5
+ --bg-primary: #f6f8fa;
6
+ --bg-secondary: #ffffff;
7
+ --bg-tertiary: #ffffff;
8
+ --bg-sidebar: #eaeef2;
9
+ --bg-card: #ffffff;
10
+ --bg-table-band: #eaeef2;
11
+ --text-primary: #1f2328;
12
+ --text-secondary: #656d76;
13
+ --text-tertiary: #6f7276;
14
+ --text-disabled: #8c959f;
15
+ --text-inverse: #ffffff;
16
+ --text-on-accent: #ffffff;
17
+ --border: #d8dee4;
18
+ --border-strong: #d0d7de;
19
+ --accent: #0969da;
20
+ --accent-hover: #0550ae;
21
+ --accent-active: #0969da;
22
+ --accent-muted: #ddf4ff;
23
+ --accent-subtle: rgba(9, 105, 218, 0.08);
24
+ --orange-fg: #9a6700;
25
+ --red: #cf222e;
26
+ --red-fg: #cf222e;
27
+ --red-muted: #ffebe9;
28
+ --green: #116329;
29
+ --green-fg: #116329;
30
+ --green-muted: #dafbe1;
31
+ --yellow: #9a6700;
32
+ --yellow-fg: #9a6700;
33
+ --yellow-muted: #fff8c5;
34
+ --purple: #8250df;
35
+ --purple-fg: #7f4ddc;
36
+ --purple-muted: #fbefff;
37
+ --blue: #0969da;
38
+ --blue-fg: #0969da;
39
+ --blue-muted: #ddf4ff;
40
+ --rose: #a40e26;
41
+ --rose-fg: #a40e26;
42
+ --rose-muted: #ffebe9;
43
+ --teal: #1b7c83;
44
+ --teal-fg: #17787f;
45
+ --teal-muted: rgba(27, 124, 131, 0.03);
46
+ --bg-hover: rgba(208, 215, 222, 0.2);
47
+ --bg-active: rgba(175, 184, 193, 0.2);
48
+ --bg-overlay: rgba(140, 149, 159, 0.2);
49
+ --accent-fg: #0969da;
50
+ --shadow-focus: 0 0 0 2px rgb(9 105 218 / 0.22);
51
+ --shadow-md: 0 4px 6px rgb(0 0 0 / 0.08);
52
+ --term-bg: #ffffff;
53
+ --term-fg: #1f2328;
54
+ --term-cursor: #0969da;
55
+ --term-muted: #6e7781;
56
+ --term-path: #1b7c83;
57
+ --term-branch: #8250df;
58
+ --term-success: #116329;
59
+ --term-working: #9a6700;
60
+ --term-selection: #1f2328;
61
+ --term-selection-fg: #ffffff;
62
+ --shadow-sm: 0 2px 4px rgb(0 0 0 / 0.08);
63
+ --pane-backdrop: rgb(246 248 250 / 0.65);
64
+ --pane-tint: rgb(241 239 222 / 0.08);
65
+ --pane-stroke: rgb(31 35 40 / 0.08);
66
+ --tab-hover: rgba(208, 215, 222, 0.2);
67
+ --window-filter: saturate(1.15) brightness(1.1);
68
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leonardaustin/ui",
3
- "version": "0.31.0",
3
+ "version": "0.33.0",
4
4
  "description": "Reusable React component library and application shell for Leonard Austin projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",