@leonardaustin/ui 0.31.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.
- package/README.md +2 -0
- package/dist/components/app-shell/Sidebar.js +125 -123
- package/dist/components/app-shell/ThemeMenu.js +44 -42
- package/dist/config/theme.js +49 -7
- package/dist/core.css +120 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +117 -116
- package/dist/providers/SettingsContext.d.ts +1 -1
- package/dist/providers/SettingsProvider.js +4 -2
- package/dist/providers/ThemeContext.d.ts +2 -2
- package/dist/providers/accentColors.d.ts +3 -1
- package/dist/providers/accentColors.js +20 -6
- package/dist/providers/themeClasses.js +2 -0
- package/dist/styles.css +254 -1
- package/dist/themes/studio-dark.css +68 -0
- package/dist/themes/studio-light.css +68 -0
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/cn.js";
|
|
2
2
|
import { mergeRefs as t } from "../../lib/mergeRefs.js";
|
|
3
3
|
import { usePortalContainer as n } from "../../hooks/usePortalContainer.js";
|
|
4
|
-
import { accentItems as r, darkThemes as i, fontOptions as a, lightThemes as
|
|
5
|
-
import { useAnchoredPopup as
|
|
6
|
-
import { useDismiss as
|
|
7
|
-
import { useSettings as
|
|
4
|
+
import { accentItems as r, darkThemes as i, fontOptions as a, lightThemes as ee, themeItems as te } from "../../config/theme.js";
|
|
5
|
+
import { useAnchoredPopup as ne } from "../../hooks/useAnchoredPopup.js";
|
|
6
|
+
import { useDismiss as o } from "../../hooks/useDismiss.js";
|
|
7
|
+
import { useSettings as s } from "../../hooks/useSettings.js";
|
|
8
|
+
import { usesThemeAccent as c } from "../../providers/accentColors.js";
|
|
8
9
|
import { useToast as l } from "../ui/Toast.js";
|
|
9
10
|
import { useApplyTheme as u } from "../../hooks/useApplyTheme.js";
|
|
10
11
|
import { Button as d } from "../ui/Button.js";
|
|
@@ -16,8 +17,8 @@ import { Toggle as g } from "../ui/Toggle.js";
|
|
|
16
17
|
import { THEME_MENU_EVENT as _ } from "./themeMenuEvents.js";
|
|
17
18
|
import { useCallback as v, useEffect as y, useMemo as b, useRef as x, useState as S } from "react";
|
|
18
19
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
19
|
-
import { Monitor as E, Moon as D, Palette as
|
|
20
|
-
import { createPortal as
|
|
20
|
+
import { Monitor as E, Moon as D, Palette as re, Sun as O } from "lucide-react";
|
|
21
|
+
import { createPortal as ie } from "react-dom";
|
|
21
22
|
//#region src/components/app-shell/ThemeMenu.tsx
|
|
22
23
|
var k = [
|
|
23
24
|
{
|
|
@@ -37,10 +38,10 @@ var k = [
|
|
|
37
38
|
}
|
|
38
39
|
];
|
|
39
40
|
function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j }) {
|
|
40
|
-
let [M, N] = S(!1), P = n(), [F, I] = S(!1), L = x(null), R = b(() => t(L, A), [A]), z = x(null), B =
|
|
41
|
+
let [M, N] = S(!1), P = n(), [F, I] = S(!1), L = x(null), R = b(() => t(L, A), [A]), z = x(null), B = s(), V = u(), { toast: H } = l(), U = v(() => {
|
|
41
42
|
N(!1), I(!1);
|
|
42
43
|
}, []);
|
|
43
|
-
|
|
44
|
+
o(M, U, [z], [L], { outsideClick: !F }), ne(M, L, z, {
|
|
44
45
|
side: "bottom",
|
|
45
46
|
align: "end",
|
|
46
47
|
gap: 6,
|
|
@@ -60,7 +61,7 @@ function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j
|
|
|
60
61
|
};
|
|
61
62
|
return document.addEventListener(_, e), () => document.removeEventListener(_, e);
|
|
62
63
|
}, [D]);
|
|
63
|
-
let { colorMode: G, setColorMode: K, preferredDarkTheme: q, preferredLightTheme: J, accentColor: Y, setAccentColor:
|
|
64
|
+
let { colorMode: G, setColorMode: K, preferredDarkTheme: q, preferredLightTheme: J, accentColor: Y, setAccentColor: ae, fontSize: oe, setFontSize: se, uiFont: ce, setUiFont: le, headingFont: ue, setHeadingFont: de, proseFont: fe, setProseFont: pe, codeFont: me, setCodeFont: he, borderRadius: ge, setBorderRadius: _e, borderWidth: ve, setBorderWidth: ye, tracking: be, setTracking: xe, lineHeight: Se, setLineHeight: Ce, density: X, setDensity: we, reducedMotion: Te, setReducedMotion: Ee, saveThemeCustomization: De, resetThemeCustomization: Oe, hasThemeOverrides: ke, isCustomized: Z, resolvedTheme: Q } = B, $ = c(Q);
|
|
64
65
|
return /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("button", {
|
|
65
66
|
type: "button",
|
|
66
67
|
...j,
|
|
@@ -73,8 +74,8 @@ function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j
|
|
|
73
74
|
"aria-expanded": M,
|
|
74
75
|
title: "Theme",
|
|
75
76
|
className: e("flex h-7 w-7 cursor-pointer items-center justify-center rounded transition-colors duration-[100ms]", M ? "text-accent-fg bg-accent-muted" : "text-text-tertiary hover:text-text-primary hover:bg-bg-hover", E),
|
|
76
|
-
children: /* @__PURE__ */ w(
|
|
77
|
-
}), M &&
|
|
77
|
+
children: /* @__PURE__ */ w(re, { className: "h-4 w-4" })
|
|
78
|
+
}), M && ie(/* @__PURE__ */ w("div", {
|
|
78
79
|
ref: z,
|
|
79
80
|
role: "dialog",
|
|
80
81
|
"aria-label": "Theme settings",
|
|
@@ -119,7 +120,7 @@ function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j
|
|
|
119
120
|
children: "Light themes"
|
|
120
121
|
}), /* @__PURE__ */ w("div", {
|
|
121
122
|
className: "grid grid-cols-2 gap-2",
|
|
122
|
-
children:
|
|
123
|
+
children: ee.map((e) => /* @__PURE__ */ w(h, {
|
|
123
124
|
label: e.label,
|
|
124
125
|
icon: e.icon,
|
|
125
126
|
preview: e.preview,
|
|
@@ -131,16 +132,17 @@ function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j
|
|
|
131
132
|
as: "h3",
|
|
132
133
|
border: !1,
|
|
133
134
|
className: "mb-2",
|
|
134
|
-
children: "Accent"
|
|
135
|
+
children: $ ? "Studio uses its own accent" : "Accent"
|
|
135
136
|
}), /* @__PURE__ */ w("div", {
|
|
136
137
|
className: "flex flex-wrap gap-1.5",
|
|
137
138
|
children: r.map((t) => /* @__PURE__ */ w("button", {
|
|
138
139
|
type: "button",
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
disabled: $,
|
|
141
|
+
onClick: () => ae(t.value),
|
|
142
|
+
className: e("h-6 w-6 cursor-pointer rounded-full transition-transform duration-[100ms] hover:scale-110 disabled:cursor-not-allowed disabled:opacity-40", !$ && Y === t.value && "ring-offset-bg-tertiary scale-110 ring-2 ring-offset-1"),
|
|
141
143
|
style: {
|
|
142
144
|
backgroundColor: t.color,
|
|
143
|
-
|
|
145
|
+
...!$ && Y === t.value ? { "--utility-ring-color": t.color } : {}
|
|
144
146
|
},
|
|
145
147
|
title: t.value.charAt(0).toUpperCase() + t.value.slice(1),
|
|
146
148
|
"aria-label": t.value
|
|
@@ -158,29 +160,29 @@ function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j
|
|
|
158
160
|
label: "UI / Body",
|
|
159
161
|
size: "sm",
|
|
160
162
|
options: a,
|
|
161
|
-
value:
|
|
162
|
-
onValueChange: (e) =>
|
|
163
|
+
value: ce,
|
|
164
|
+
onValueChange: (e) => le(e)
|
|
163
165
|
}),
|
|
164
166
|
/* @__PURE__ */ w(p, {
|
|
165
167
|
label: "Headings",
|
|
166
168
|
size: "sm",
|
|
167
169
|
options: a,
|
|
168
|
-
value:
|
|
169
|
-
onValueChange: (e) =>
|
|
170
|
+
value: ue,
|
|
171
|
+
onValueChange: (e) => de(e)
|
|
170
172
|
}),
|
|
171
173
|
/* @__PURE__ */ w(p, {
|
|
172
174
|
label: "Prose",
|
|
173
175
|
size: "sm",
|
|
174
176
|
options: a,
|
|
175
|
-
value:
|
|
176
|
-
onValueChange: (e) =>
|
|
177
|
+
value: fe,
|
|
178
|
+
onValueChange: (e) => pe(e)
|
|
177
179
|
}),
|
|
178
180
|
/* @__PURE__ */ w(p, {
|
|
179
181
|
label: "Code",
|
|
180
182
|
size: "sm",
|
|
181
183
|
options: a,
|
|
182
|
-
value:
|
|
183
|
-
onValueChange: (e) =>
|
|
184
|
+
value: me,
|
|
185
|
+
onValueChange: (e) => he(e)
|
|
184
186
|
})
|
|
185
187
|
]
|
|
186
188
|
})] }),
|
|
@@ -191,24 +193,24 @@ function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j
|
|
|
191
193
|
label: "Font size",
|
|
192
194
|
min: 11,
|
|
193
195
|
max: 18,
|
|
194
|
-
value:
|
|
195
|
-
onValueChange:
|
|
196
|
+
value: oe,
|
|
197
|
+
onValueChange: se,
|
|
196
198
|
showValue: !0
|
|
197
199
|
}),
|
|
198
200
|
/* @__PURE__ */ w(m, {
|
|
199
201
|
label: "Corner radius",
|
|
200
202
|
min: 0,
|
|
201
203
|
max: 16,
|
|
202
|
-
value:
|
|
203
|
-
onValueChange:
|
|
204
|
+
value: ge,
|
|
205
|
+
onValueChange: _e,
|
|
204
206
|
showValue: !0
|
|
205
207
|
}),
|
|
206
208
|
/* @__PURE__ */ w(m, {
|
|
207
209
|
label: "Border width",
|
|
208
210
|
min: 1,
|
|
209
211
|
max: 3,
|
|
210
|
-
value:
|
|
211
|
-
onValueChange:
|
|
212
|
+
value: ve,
|
|
213
|
+
onValueChange: ye,
|
|
212
214
|
showValue: !0
|
|
213
215
|
}),
|
|
214
216
|
/* @__PURE__ */ w(m, {
|
|
@@ -216,8 +218,8 @@ function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j
|
|
|
216
218
|
min: 0,
|
|
217
219
|
max: .3,
|
|
218
220
|
step: .01,
|
|
219
|
-
value:
|
|
220
|
-
onValueChange:
|
|
221
|
+
value: be,
|
|
222
|
+
onValueChange: xe,
|
|
221
223
|
showValue: !0
|
|
222
224
|
}),
|
|
223
225
|
/* @__PURE__ */ w(m, {
|
|
@@ -225,8 +227,8 @@ function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j
|
|
|
225
227
|
min: 1.2,
|
|
226
228
|
max: 2,
|
|
227
229
|
step: .05,
|
|
228
|
-
value:
|
|
229
|
-
onValueChange:
|
|
230
|
+
value: Se,
|
|
231
|
+
onValueChange: Ce,
|
|
230
232
|
showValue: !0
|
|
231
233
|
}),
|
|
232
234
|
/* @__PURE__ */ w(m, {
|
|
@@ -234,33 +236,33 @@ function A({ className: E, respondToOpenEvent: D = !0, onClick: O, ref: A, ...j
|
|
|
234
236
|
min: .18,
|
|
235
237
|
max: .32,
|
|
236
238
|
step: .01,
|
|
237
|
-
value:
|
|
238
|
-
onValueChange:
|
|
239
|
+
value: X,
|
|
240
|
+
onValueChange: we,
|
|
239
241
|
showValue: !0
|
|
240
242
|
})
|
|
241
243
|
]
|
|
242
244
|
}),
|
|
243
245
|
/* @__PURE__ */ w(g, {
|
|
244
246
|
label: "Reduced motion",
|
|
245
|
-
checked:
|
|
246
|
-
onCheckedChange:
|
|
247
|
+
checked: Te,
|
|
248
|
+
onCheckedChange: Ee
|
|
247
249
|
}),
|
|
248
250
|
/* @__PURE__ */ T("div", {
|
|
249
251
|
className: "border-border flex items-center gap-2 border-t pt-3",
|
|
250
252
|
children: [/* @__PURE__ */ w(d, {
|
|
251
253
|
variant: "primary",
|
|
252
254
|
size: "sm",
|
|
253
|
-
disabled: !
|
|
255
|
+
disabled: !Z,
|
|
254
256
|
onClick: () => {
|
|
255
|
-
|
|
257
|
+
De(), H("success", `Saved customization for ${te.find((e) => e.value === Q)?.label ?? Q}`);
|
|
256
258
|
},
|
|
257
259
|
children: "Save for theme"
|
|
258
260
|
}), /* @__PURE__ */ w(d, {
|
|
259
261
|
variant: "secondary",
|
|
260
262
|
size: "sm",
|
|
261
|
-
disabled: !
|
|
263
|
+
disabled: !ke && !Z,
|
|
262
264
|
onClick: () => {
|
|
263
|
-
|
|
265
|
+
Oe(), H("info", "Reset to theme defaults");
|
|
264
266
|
},
|
|
265
267
|
children: "Reset"
|
|
266
268
|
})]
|
package/dist/config/theme.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
162
|
-
|
|
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
|
-
],
|
|
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 {
|
|
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";
|