@leonardaustin/ui 0.30.0 → 0.32.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.
@@ -2,11 +2,11 @@ import { cn as e } from "../../lib/cn.js";
2
2
  import { clamp as t } from "../../lib/math.js";
3
3
  import { estimateTooltipWidth as n, formatCompactValue as r, getPositiveValue as i, getSvgTooltipPosition as a, resolveChartColor as o, truncateChartLabel as s } from "./chartUtils.js";
4
4
  import { useBarChartSize as c } from "./useChartSize.js";
5
- import { getBarActivationProps as l, getBarAxisLayout as u } from "./barChartUtils.js";
6
- import { useMemo as d, useState as f } from "react";
7
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
5
+ import { getBarAxisLayout as l, useBarNavigation as u } from "./barChartUtils.js";
6
+ import { useMemo as d } from "react";
7
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
8
8
  //#region src/components/charts/VerticalBarChart.tsx
9
- var h = [
9
+ var m = [
10
10
  1,
11
11
  .85,
12
12
  .7,
@@ -14,67 +14,67 @@ var h = [
14
14
  .45,
15
15
  .35,
16
16
  .25
17
- ], g = {
17
+ ], h = {
18
18
  top: 20,
19
19
  right: 8,
20
20
  bottom: 24,
21
21
  left: 40
22
22
  };
23
- function _({ data: _, onDatumActivate: v, height: y = 180, maxValue: b, valueFormatter: x, tooltipValueFormatter: S, labelFormatter: C, maxLabelLength: w, xLabelCount: T = 7, barGap: E = 6, minBarWidth: D = 4, "aria-label": O = "Vertical bar chart", className: k, ref: A, ...j }) {
24
- let { rootRef: M, size: N, viewBoxWidth: P } = c(A), [F, I] = f(null), L = Math.max(g.top + g.bottom + 1, y), R = N?.height ?? L, z = d(() => _.map((e, t) => C?.(e.label, e, t) ?? e.label), [_, C]), B = d(() => z.map((e) => s(e, w)), [z, w]), { left: V, plotWidth: H, indices: U } = d(() => u(B, T, N?.width, g), [
23
+ function g({ data: g, onDatumActivate: _, height: v = 180, maxValue: y, valueFormatter: b, tooltipValueFormatter: x, labelFormatter: S, maxLabelLength: C, xLabelCount: w = 7, barGap: T = 6, minBarWidth: E = 4, "aria-label": D = "Vertical bar chart", className: O, ref: k, ...A }) {
24
+ let { rootRef: j, size: M, viewBoxWidth: N } = c(k), P = u(g, _, A), { hoverIndex: F, setHoverIndex: I } = P, L = Math.max(h.top + h.bottom + 1, v), R = M?.height ?? L, z = d(() => g.map((e, t) => S?.(e.label, e, t) ?? e.label), [g, S]), B = d(() => z.map((e) => s(e, C)), [z, C]), { left: V, plotWidth: H, indices: U } = d(() => l(B, w, M?.width, h), [
25
25
  B,
26
- T,
27
- N?.width
28
- ]), W = Math.max(1, R - g.top - g.bottom), G = b === void 0 ? Math.max(..._.map((e) => i(e.value)), 1) : Math.max(i(b), 1), K = Math.max(0, E), q = Math.max(1, D), J = _.length > 1 ? Math.max(0, (H - _.length * q) / Math.max(_.length - 1, 1)) : 0, Y = _.length > 1 ? Math.min(K, J) : 0, X = _.length > 0 ? Math.max(0, (H - Y * Math.max(_.length - 1, 0)) / _.length) : 0, Z = x ?? r, Q = S ?? ((e) => e.toLocaleString());
29
- return /* @__PURE__ */ m("svg", {
30
- ref: M,
31
- ...j,
26
+ w,
27
+ M?.width
28
+ ]), W = Math.max(1, R - h.top - h.bottom), G = y === void 0 ? Math.max(...g.map((e) => i(e.value)), 1) : Math.max(i(y), 1), K = Math.max(0, T), q = Math.max(1, E), J = g.length > 1 ? Math.max(0, (H - g.length * q) / Math.max(g.length - 1, 1)) : 0, Y = g.length > 1 ? Math.min(K, J) : 0, X = g.length > 0 ? Math.max(0, (H - Y * Math.max(g.length - 1, 0)) / g.length) : 0, Z = b ?? r, Q = x ?? ((e) => e.toLocaleString());
29
+ return /* @__PURE__ */ p("svg", {
30
+ ref: j,
31
+ ...A,
32
32
  width: "100%",
33
- height: N && L,
34
- viewBox: `0 0 ${P} ${R}`,
35
- className: e("select-none", k),
36
- role: v ? "group" : "img",
37
- "aria-label": O,
33
+ height: M && L,
34
+ viewBox: `0 0 ${N} ${R}`,
35
+ className: e("select-none", O),
36
+ ...P.chartProps,
37
+ "aria-label": D,
38
38
  children: [
39
- /* @__PURE__ */ p("text", {
39
+ /* @__PURE__ */ f("text", {
40
40
  x: V - 6,
41
- y: g.top + 4,
41
+ y: h.top + 4,
42
42
  textAnchor: "end",
43
43
  fill: "var(--text-tertiary)",
44
44
  fontSize: 10,
45
45
  children: Z(G)
46
46
  }),
47
- /* @__PURE__ */ p("text", {
47
+ /* @__PURE__ */ f("text", {
48
48
  x: V - 6,
49
- y: g.top + W,
49
+ y: h.top + W,
50
50
  textAnchor: "end",
51
51
  dominantBaseline: "central",
52
52
  fill: "var(--text-tertiary)",
53
53
  fontSize: 10,
54
54
  children: "0"
55
55
  }),
56
- /* @__PURE__ */ p("line", {
56
+ /* @__PURE__ */ f("line", {
57
57
  x1: V,
58
- y1: g.top + W,
58
+ y1: h.top + W,
59
59
  x2: V + H,
60
- y2: g.top + W,
60
+ y2: h.top + W,
61
61
  stroke: "var(--border)",
62
62
  strokeWidth: 1
63
63
  }),
64
- /* @__PURE__ */ p("line", {
64
+ /* @__PURE__ */ f("line", {
65
65
  x1: V,
66
- y1: g.top + W / 2,
66
+ y1: h.top + W / 2,
67
67
  x2: V + H,
68
- y2: g.top + W / 2,
68
+ y2: h.top + W / 2,
69
69
  stroke: "var(--border)",
70
70
  strokeWidth: 1,
71
71
  strokeDasharray: "3 3",
72
72
  opacity: .5
73
73
  }),
74
- _.map((e, r) => {
75
- let s = V + r * (X + Y), c = t(i(e.value), 0, G) / G * W, u = g.top + W - c, d = F === r, f = z[r], _ = B[r], y = _ !== f, b = Q(e.value);
76
- return /* @__PURE__ */ m("g", {
77
- ...l(v, e, r),
74
+ g.map((e, r) => {
75
+ let s = V + r * (X + Y), c = t(i(e.value), 0, G) / G * W, l = h.top + W - c, u = F === r, d = z[r], g = B[r], _ = g !== d, v = Q(e.value);
76
+ return /* @__PURE__ */ p("g", {
77
+ ...P.barProps(r),
78
78
  onMouseEnter: () => I(r),
79
79
  onMouseLeave: () => I(null),
80
80
  onPointerEnter: () => I(r),
@@ -82,49 +82,47 @@ function _({ data: _, onDatumActivate: v, height: y = 180, maxValue: b, valueFor
82
82
  onPointerLeave: () => I(null),
83
83
  onFocus: () => I(r),
84
84
  onBlur: () => I(null),
85
- tabIndex: 0,
86
- role: "button",
87
- "aria-label": `${f}: ${b}`,
85
+ "aria-label": `${d}: ${v}`,
88
86
  children: [
89
- /* @__PURE__ */ p("rect", {
87
+ /* @__PURE__ */ f("rect", {
90
88
  x: s,
91
- y: g.top,
89
+ y: h.top,
92
90
  width: X,
93
91
  height: W,
94
92
  fill: "transparent"
95
93
  }),
96
- /* @__PURE__ */ p("rect", {
94
+ /* @__PURE__ */ f("rect", {
97
95
  x: s,
98
- y: u,
96
+ y: l,
99
97
  width: X,
100
98
  height: c,
101
99
  fill: o(e.color),
102
100
  rx: 6,
103
- opacity: d ? 1 : h[r % h.length],
101
+ opacity: u ? 1 : m[r % m.length],
104
102
  style: { transition: "all 150ms" }
105
103
  }),
106
- U.has(r) && /* @__PURE__ */ m("text", {
104
+ U.has(r) && /* @__PURE__ */ p("text", {
107
105
  x: s + X / 2,
108
106
  y: R - 4,
109
107
  textAnchor: "middle",
110
108
  fill: "var(--text-tertiary)",
111
109
  fontSize: 10,
112
- children: [y && /* @__PURE__ */ p("title", { children: f }), _]
110
+ children: [_ && /* @__PURE__ */ f("title", { children: d }), g]
113
111
  }),
114
- d && (() => {
115
- let e = a(s + X / 2, u, {
112
+ u && (() => {
113
+ let e = a(s + X / 2, l, {
116
114
  boundsHeight: R,
117
- boundsWidth: P,
115
+ boundsWidth: N,
118
116
  height: 24,
119
117
  offset: 8,
120
- width: n([f, b], {
118
+ width: n([d, v], {
121
119
  maxWidth: 180,
122
120
  minWidth: 72
123
121
  })
124
122
  }), t = e.x + e.width / 2;
125
- return /* @__PURE__ */ m("g", {
123
+ return /* @__PURE__ */ p("g", {
126
124
  pointerEvents: "none",
127
- children: [/* @__PURE__ */ p("rect", {
125
+ children: [/* @__PURE__ */ f("rect", {
128
126
  x: e.x,
129
127
  y: e.y,
130
128
  width: e.width,
@@ -133,14 +131,14 @@ function _({ data: _, onDatumActivate: v, height: y = 180, maxValue: b, valueFor
133
131
  fill: "var(--bg-tooltip, var(--bg-tertiary))",
134
132
  stroke: "var(--border)",
135
133
  strokeWidth: 1
136
- }), /* @__PURE__ */ p("text", {
134
+ }), /* @__PURE__ */ f("text", {
137
135
  x: t,
138
136
  y: e.y + 15,
139
137
  textAnchor: "middle",
140
138
  fill: "var(--text-primary)",
141
139
  fontSize: 10,
142
140
  fontWeight: 600,
143
- children: b
141
+ children: v
144
142
  })]
145
143
  });
146
144
  })()
@@ -151,4 +149,4 @@ function _({ data: _, onDatumActivate: v, height: y = 180, maxValue: b, valueFor
151
149
  });
152
150
  }
153
151
  //#endregion
154
- export { _ as VerticalBarChart };
152
+ export { g as VerticalBarChart };
@@ -1,10 +1,9 @@
1
- import type { KeyboardEvent } from "react";
2
- export declare function getBarActivationProps<T>(activate: ((datum: T, index: number) => void) | undefined, datum: T, index: number): {
3
- onClick?: undefined;
4
- onKeyDown?: undefined;
5
- } | {
6
- onClick: () => void;
7
- onKeyDown(event: KeyboardEvent<SVGGElement>): void;
1
+ import { type SVGProps } from "react";
2
+ export declare function useBarNavigation<T>(data: T[], activate: ((datum: T, index: number) => void) | undefined, svgProps: SVGProps<SVGSVGElement>): {
3
+ hoverIndex: number | null;
4
+ setHoverIndex: import("react").Dispatch<import("react").SetStateAction<number | null>>;
5
+ chartProps: SVGProps<SVGSVGElement>;
6
+ barProps: (index: number) => SVGProps<SVGGElement>;
8
7
  };
9
8
  export declare function getBarAxisLayout(labels: string[], cap: number, measuredWidth: number | undefined, padding: {
10
9
  left: number;
@@ -1,24 +1,64 @@
1
- import { estimateTextWidth as e, getFittingLabelCount as t, getLabelIndices as n } from "./chartUtils.js";
1
+ import { clamp as e } from "../../lib/math.js";
2
+ import { estimateTextWidth as t, getFittingLabelCount as n, getLabelIndices as r } from "./chartUtils.js";
3
+ import { useId as i, useState as a } from "react";
2
4
  //#region src/components/charts/barChartUtils.ts
3
- function r(e, t, n) {
4
- return e ? {
5
+ function o(t, n, r) {
6
+ let o = i(), [c, l] = a(null), [u, d] = a(null), f = c ?? u;
7
+ function p() {
8
+ return n || !t.length ? { role: n ? "group" : "img" } : {
9
+ role: "listbox",
10
+ tabIndex: r.tabIndex ?? 0,
11
+ "aria-orientation": "horizontal",
12
+ "aria-activedescendant": u !== null && t[u] ? `${o}-${u}` : void 0,
13
+ onFocus(e) {
14
+ r.onFocus?.(e), l(null), d(c ?? 0);
15
+ },
16
+ onBlur(e) {
17
+ r.onBlur?.(e), d(null);
18
+ },
19
+ onKeyDown(n) {
20
+ if (r.onKeyDown?.(n), n.defaultPrevented || n.altKey || n.ctrlKey || n.metaKey || n.shiftKey || n.key !== "ArrowLeft" && n.key !== "ArrowRight") return;
21
+ n.preventDefault(), l(null);
22
+ let i = n.key === "ArrowRight" ? 1 : -1;
23
+ d(e((u ?? 0) + i, 0, t.length - 1));
24
+ }
25
+ };
26
+ }
27
+ function m(e) {
28
+ return n ? s(n, t[e], e) : {
29
+ id: `${o}-${e}`,
30
+ role: "option",
31
+ "aria-selected": e === u
32
+ };
33
+ }
34
+ return {
35
+ hoverIndex: f,
36
+ setHoverIndex: l,
37
+ chartProps: p(),
38
+ barProps: m
39
+ };
40
+ }
41
+ function s(e, t, n) {
42
+ return {
43
+ tabIndex: 0,
44
+ role: "button",
5
45
  onClick: () => e(t, n),
6
46
  onKeyDown(r) {
7
47
  r.key !== "Enter" && r.key !== " " || (r.preventDefault(), r.repeat || e(t, n));
8
48
  }
9
- } : {};
49
+ };
10
50
  }
11
- function i(r, i, a, o) {
12
- let s = a ?? 600, c = (t, n) => a && i > 0 && t ? Math.max(n, Math.min(s / 4, e(t) / 2 + 4)) : n, l = c(r[0], o.left), u = Math.max(0, s - l - c(r.at(-1), o.right)), d = i;
13
- if (a && r.length > 1 && i > 1) {
14
- let n = r.reduce((t, n) => Math.max(t, e(n)), 0), a = u * (1 - 1 / r.length);
15
- d = Math.min(i, t(r.length, a, n));
51
+ function c(e, i, a, o) {
52
+ let s = a ?? 600, c = (e, n) => a && i > 0 && e ? Math.max(n, Math.min(s / 4, t(e) / 2 + 4)) : n, l = c(e[0], o.left), u = Math.max(0, s - l - c(e.at(-1), o.right)), d = i;
53
+ if (a && e.length > 1 && i > 1) {
54
+ let r = e.reduce((e, n) => Math.max(e, t(n)), 0), a = u * (1 - 1 / e.length);
55
+ d = Math.min(i, n(e.length, a, r));
16
56
  }
17
57
  return {
18
58
  left: l,
19
59
  plotWidth: u,
20
- indices: new Set(n(r.length, d))
60
+ indices: new Set(r(e.length, d))
21
61
  };
22
62
  }
23
63
  //#endregion
24
- export { r as getBarActivationProps, i as getBarAxisLayout };
64
+ export { c as getBarAxisLayout, o as useBarNavigation };
@@ -82,6 +82,24 @@ var s = [
82
82
  fg: "#272d40"
83
83
  }
84
84
  },
85
+ {
86
+ value: "studioLight",
87
+ label: "Studio Light",
88
+ icon: n,
89
+ preview: {
90
+ bg: "#f6f8fa",
91
+ fg: "#d0d7de"
92
+ }
93
+ },
94
+ {
95
+ value: "studioDark",
96
+ label: "Studio Dark",
97
+ icon: n,
98
+ preview: {
99
+ bg: "#0d1117",
100
+ fg: "#30363d"
101
+ }
102
+ },
85
103
  {
86
104
  value: "glassLight",
87
105
  label: "Glass Light",
@@ -96,7 +114,8 @@ var s = [
96
114
  "lightInverted",
97
115
  "cyberBrutalLight",
98
116
  "hashiTheme",
99
- "glassLight"
117
+ "glassLight",
118
+ "studioLight"
100
119
  ]);
101
120
  function l(e) {
102
121
  return c.has(e);
@@ -148,8 +167,21 @@ var u = s.filter((e) => l(e.value)), d = s.filter((e) => !l(e.value)), f = {
148
167
  density: .25
149
168
  }, h = {
150
169
  ...f,
151
- borderRadius: 12
170
+ uiFont: "native",
171
+ headingFont: "native",
172
+ proseFont: "native",
173
+ controlFont: "native",
174
+ labelFont: "native",
175
+ navigationFont: "native",
176
+ dataFont: "native",
177
+ codeFont: "system-mono",
178
+ fontSize: 13,
179
+ tracking: 0,
180
+ borderRadius: 8
152
181
  }, g = {
182
+ ...f,
183
+ borderRadius: 12
184
+ }, _ = {
153
185
  dark: f,
154
186
  light: f,
155
187
  lightInverted: f,
@@ -158,9 +190,11 @@ var u = s.filter((e) => l(e.value)), d = s.filter((e) => !l(e.value)), f = {
158
190
  cyberBrutalDark: p,
159
191
  cyberBrutalLight: p,
160
192
  hashiTheme: m,
161
- glassDark: h,
162
- glassLight: h
163
- }, _ = [
193
+ studioDark: h,
194
+ glassDark: g,
195
+ studioLight: h,
196
+ glassLight: g
197
+ }, v = [
164
198
  {
165
199
  value: "archivo-expanded",
166
200
  label: "Archivo Expanded"
@@ -177,11 +211,19 @@ var u = s.filter((e) => l(e.value)), d = s.filter((e) => !l(e.value)), f = {
177
211
  value: "pt-serif",
178
212
  label: "PT Serif"
179
213
  },
214
+ {
215
+ value: "native",
216
+ label: "Native UI"
217
+ },
218
+ {
219
+ value: "system-mono",
220
+ label: "System Mono"
221
+ },
180
222
  {
181
223
  value: "system",
182
224
  label: "System"
183
225
  }
184
- ], v = [
226
+ ], y = [
185
227
  {
186
228
  value: "purple",
187
229
  color: "#7a59fc"
@@ -216,4 +258,4 @@ var u = s.filter((e) => l(e.value)), d = s.filter((e) => !l(e.value)), f = {
216
258
  }
217
259
  ];
218
260
  //#endregion
219
- export { v as accentItems, d as darkThemes, _ as fontOptions, l as isLightTheme, u as lightThemes, g as themeDefaults, s as themeItems };
261
+ export { y as accentItems, d as darkThemes, v as fontOptions, l as isLightTheme, u as lightThemes, _ as themeDefaults, s as themeItems };
package/dist/core.css CHANGED
@@ -198,6 +198,8 @@
198
198
  .theme-solarized,
199
199
  .theme-cyber-brutal-dark,
200
200
  .theme-cyber-brutal-light,
201
+ .theme-studio-light,
202
+ .theme-studio-dark,
201
203
  .theme-glass-dark,
202
204
  .theme-glass-light,
203
205
  .theme-glass {
@@ -215,6 +217,107 @@
215
217
  --info-fg: var(--blue-fg);
216
218
  }
217
219
 
220
+ /* Studio: palette based on GitHub Primer (MIT) */
221
+ .theme-studio-light,
222
+ .theme-studio-dark {
223
+ --bg-content: var(--bg-primary);
224
+ --bg-table: var(--bg-secondary);
225
+ --bg-table-header: var(--bg-primary);
226
+ --text-table-header: var(--text-secondary);
227
+ --text-table-header-hover: var(--text-primary);
228
+ --bg-pinned: var(--bg-secondary);
229
+ --bg-tooltip: var(--bg-tertiary);
230
+ --bg-media-badge: rgba(0, 0, 0, 0.2);
231
+ --control-knob: #ffffff;
232
+ --qr-foreground: #000000;
233
+ --qr-background: #ffffff;
234
+ --text-on-avatar: #ffffff;
235
+ --text-on-media: #ffffff;
236
+ --text-on-media-muted: rgba(255, 255, 255, 0.8);
237
+ --shadow-knob: 0 0 1px rgba(0, 0, 0, 0.1), 2px 0 4px rgba(0, 0, 0, 0.35);
238
+ --transition-fast: 100ms ease;
239
+ --transition-base: 150ms ease;
240
+ --transition-slow: 250ms ease;
241
+ --sidebar-width: 220px;
242
+ --sidebar-collapsed: 48px;
243
+ --topbar-height: 36px;
244
+ --bottomnav-height: 56px;
245
+
246
+ /* Rebind generated utility tokens when Studio is scoped to a subtree. */
247
+ --font-sans: var(--font-ui);
248
+ --font-mono: var(--font-code);
249
+ --spacing: var(--ui-density);
250
+ --tracking-wider: var(--ui-tracking);
251
+ --radius-sm: var(--ui-radius);
252
+ --radius-md: var(--ui-radius-md);
253
+ --radius-lg: var(--ui-radius-lg);
254
+ --radius-xl: var(--ui-radius-xl);
255
+ --radius: var(--ui-radius);
256
+ --color-bg-primary: var(--bg-primary);
257
+ --color-bg-secondary: var(--bg-secondary);
258
+ --color-bg-tertiary: var(--bg-tertiary);
259
+ --color-bg-hover: var(--bg-hover);
260
+ --color-bg-active: var(--bg-active);
261
+ --color-bg-overlay: var(--bg-overlay);
262
+ --color-bg-sidebar: var(--bg-sidebar);
263
+ --color-bg-media-badge: var(--bg-media-badge);
264
+ --color-control-knob: var(--control-knob);
265
+ --color-text-primary: var(--text-primary);
266
+ --color-text-secondary: var(--text-secondary);
267
+ --color-text-tertiary: var(--text-tertiary);
268
+ --color-text-disabled: var(--text-disabled);
269
+ --color-text-on-accent: var(--text-on-accent);
270
+ --color-text-on-avatar: var(--text-on-avatar);
271
+ --color-text-on-media: var(--text-on-media);
272
+ --color-text-on-media-muted: var(--text-on-media-muted);
273
+ --color-border: var(--border);
274
+ --color-border-strong: var(--border-strong);
275
+ --color-accent: var(--accent);
276
+ --color-accent-hover: var(--accent-hover);
277
+ --color-accent-active: var(--accent-active);
278
+ --color-accent-muted: var(--accent-muted);
279
+ --color-accent-subtle: var(--accent-subtle);
280
+ --color-green: var(--green);
281
+ --color-green-muted: var(--green-muted);
282
+ --color-success: var(--success);
283
+ --color-success-muted: var(--success-muted);
284
+ --color-yellow: var(--yellow);
285
+ --color-yellow-muted: var(--yellow-muted);
286
+ --color-warning: var(--warning);
287
+ --color-warning-muted: var(--warning-muted);
288
+ --color-red: var(--red);
289
+ --color-red-muted: var(--red-muted);
290
+ --color-danger: var(--danger);
291
+ --color-danger-muted: var(--danger-muted);
292
+ --color-blue: var(--blue);
293
+ --color-blue-muted: var(--blue-muted);
294
+ --color-info: var(--info);
295
+ --color-info-muted: var(--info-muted);
296
+ --color-purple: var(--purple);
297
+ --color-purple-muted: var(--purple-muted);
298
+ --ui-radius: 6px;
299
+ --ui-radius-md: 8px;
300
+ --ui-radius-lg: 10px;
301
+ --ui-radius-xl: 16px;
302
+ --ui-border-width: 1px;
303
+ --ui-tracking: 0em;
304
+ --ui-line-height: 1.45;
305
+ --ui-density: 0.25rem;
306
+ --font-ui:
307
+ -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
308
+ --font-code: "SF Mono", ui-monospace, Menlo, monospace;
309
+ --font-heading: var(--font-ui);
310
+ --font-control: var(--font-ui);
311
+ --font-data: var(--font-ui);
312
+ --font-label: var(--font-ui);
313
+ --font-navigation: var(--font-ui);
314
+ --font-prose: var(--font-ui);
315
+ --border-focus: var(--accent);
316
+ --text-placeholder: var(--text-tertiary);
317
+ --shadow-sm: var(--shadow-md);
318
+ --shadow-lg: var(--shadow-md);
319
+ }
320
+
218
321
  /* ─── Light Theme ─── */
219
322
 
220
323
  .theme-light,
@@ -485,6 +588,8 @@ pre.shiki span {
485
588
  .theme-light-inverted pre.shiki span,
486
589
  .theme-cyber-brutal-light pre.shiki,
487
590
  .theme-cyber-brutal-light pre.shiki span,
591
+ .theme-studio-light pre.shiki,
592
+ .theme-studio-light pre.shiki span,
488
593
  .theme-glass-light pre.shiki,
489
594
  .theme-glass-light pre.shiki span,
490
595
  .theme-hashi pre.shiki,
@@ -536,6 +641,16 @@ pre.shiki span {
536
641
  background-color: var(--bg-secondary);
537
642
  }
538
643
 
644
+ :is(.theme-studio-light, .theme-studio-dark) .bg-bg-card {
645
+ background-color: var(--bg-card);
646
+ background-image:
647
+ linear-gradient(var(--pane-tint), var(--pane-tint)),
648
+ linear-gradient(var(--pane-backdrop), var(--pane-backdrop));
649
+ box-shadow:
650
+ 0 0 0 1px var(--pane-stroke),
651
+ var(--shadow-md);
652
+ }
653
+
539
654
  .theme-glass .bg-bg-card {
540
655
  background-color: var(--glass-card-bg);
541
656
  }
@@ -552,6 +667,10 @@ pre.shiki span {
552
667
  /* Clear only the shell's default fill. cn removes that default utility when a
553
668
  caller supplies another background; hover/focus utilities also still win. */
554
669
  @layer utilities {
670
+ :is(.theme-studio-light, .theme-studio-dark) .bg-bg-card.rounded-md {
671
+ border-radius: var(--ui-radius-lg);
672
+ }
673
+
555
674
  .theme-glass :where(.ui-glass-shell.bg-bg-primary) {
556
675
  background-color: transparent;
557
676
  }}
@@ -2486,7 +2605,7 @@ select:disabled + .ui-select-placeholder {
2486
2605
  }
2487
2606
  .ui-table-header-band > thead > tr > th {
2488
2607
  color: var(--text-primary);
2489
- background-color: var(--bg-hover);
2608
+ background-color: var(--bg-table-band, var(--bg-hover));
2490
2609
  font-size: inherit;
2491
2610
  letter-spacing: normal;
2492
2611
  text-transform: none;
package/dist/index.d.ts CHANGED
@@ -112,6 +112,7 @@ export * from "./lib/passwordRequirements";
112
112
  export * from "./lib/qrCode";
113
113
  export * from "./lib/tones";
114
114
  export * from "./config/theme";
115
+ export { usesThemeAccent } from "./providers/accentColors";
115
116
  export * from "./providers/SettingsContext";
116
117
  export * from "./providers/SettingsProvider";
117
118
  export * from "./providers/ThemeContext";