@directus/themes 0.0.3 → 0.2.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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Definitions, ThemeSchema, TypeId, type Theme } from './schema.js';
2
- export { useThemeStore } from './store.js';
1
+ export * from './schema.js';
2
+ export * from './store.js';
3
+ export * from './use-theme.js';
3
4
  export { default as ThemeProvider } from './theme-provider.vue';
4
- export { useTheme } from './use-theme.js';
package/dist/index.js CHANGED
@@ -1,119 +1,166 @@
1
- import { Type as r } from "@sinclair/typebox";
2
- import { defineStore as F, storeToRefs as j } from "pinia";
3
- import { reactive as H, computed as v, unref as d, defineComponent as O, toRefs as w, openBlock as B, createBlock as T, Teleport as $, createTextVNode as D, toDisplayString as L } from "vue";
4
- import { useHead as M } from "@unhead/vue";
5
- import _ from "decamelize";
6
- import { flatten as C } from "flat";
7
- import { get as R, merge as y, mapKeys as I } from "lodash-es";
8
- const k = {
9
- Color: "Color",
10
- FontFamily: "FontFamily"
11
- }, e = r.Ref(r.String({ $id: k.Color })), b = r.Ref(r.String({ $id: k.FontFamily })), W = r.Object({
12
- foreground: e,
13
- foregroundSubdued: e,
14
- foregroundAccent: e,
15
- background: e,
16
- primary: e,
17
- primaryBackground: e,
18
- primarySubdued: e,
19
- primaryAccent: e,
20
- secondary: e,
21
- secondaryBackground: e,
22
- secondarySubdued: e,
23
- secondaryAccent: e,
24
- success: e,
25
- successBackground: e,
26
- successSubdued: e,
27
- successAccent: e,
28
- warning: e,
29
- warningBackground: e,
30
- warningSubdued: e,
31
- warningAccent: e,
32
- danger: e,
33
- dangerBackground: e,
34
- dangerSubdued: e,
35
- dangerAccent: e,
36
- fontFamilyDisplay: b,
37
- fontFamilySansSerif: b,
38
- fontFamilySerif: b,
39
- fontFamilyMonospace: b,
40
- navigation: r.Object({
41
- background: e,
42
- project: r.Object({
43
- background: e,
44
- foreground: e
1
+ import { Type as e } from "@sinclair/typebox";
2
+ import { defineStore as C, storeToRefs as j } from "pinia";
3
+ import { reactive as H, computed as h, unref as c, defineComponent as W, toRefs as O, openBlock as B, createBlock as $, Teleport as L, createTextVNode as T, toDisplayString as D } from "vue";
4
+ import { merge as R, get as M, mapKeys as _ } from "lodash-es";
5
+ import { useHead as N } from "@unhead/vue";
6
+ import I from "decamelize";
7
+ import { flatten as P } from "flat";
8
+ const r = e.String({ $id: "Color" }), d = e.String({ $id: "FamilyName" }), F = e.String({ $id: "Length" }), A = e.String({ $id: "Percentage" }), y = e.String({ $id: "BoxShadow" }), g = e.Union([e.String(), e.Literal("thin"), e.Literal("medium"), e.Literal("thick")], {
9
+ $id: "LineWidth"
10
+ }), U = e.Object({
11
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////
12
+ // Base color palette
13
+ foreground: e.Ref(r),
14
+ foregroundSubdued: e.Ref(r),
15
+ foregroundAccent: e.Ref(r),
16
+ background: e.Ref(r),
17
+ primary: e.Ref(r),
18
+ primaryBackground: e.Ref(r),
19
+ primarySubdued: e.Ref(r),
20
+ primaryAccent: e.Ref(r),
21
+ secondary: e.Ref(r),
22
+ secondaryBackground: e.Ref(r),
23
+ secondarySubdued: e.Ref(r),
24
+ secondaryAccent: e.Ref(r),
25
+ success: e.Ref(r),
26
+ successBackground: e.Ref(r),
27
+ successSubdued: e.Ref(r),
28
+ successAccent: e.Ref(r),
29
+ warning: e.Ref(r),
30
+ warningBackground: e.Ref(r),
31
+ warningSubdued: e.Ref(r),
32
+ warningAccent: e.Ref(r),
33
+ danger: e.Ref(r),
34
+ dangerBackground: e.Ref(r),
35
+ dangerSubdued: e.Ref(r),
36
+ dangerAccent: e.Ref(r),
37
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////
38
+ // Base fonts
39
+ fontFamilyDisplay: e.Ref(d),
40
+ fontFamilySansSerif: e.Ref(d),
41
+ fontFamilySerif: e.Ref(d),
42
+ fontFamilyMonospace: e.Ref(d),
43
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////
44
+ // Base border styles
45
+ borderRadius: e.Union([e.Ref(F), e.Ref(A)]),
46
+ borderWidth: e.Ref(g),
47
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////
48
+ // Scopes
49
+ navigation: e.Object({
50
+ background: e.Ref(r),
51
+ borderWidth: e.Ref(g),
52
+ borderColor: e.Ref(r),
53
+ project: e.Object({
54
+ background: e.Ref(r),
55
+ foreground: e.Ref(r),
56
+ fontFamily: e.Ref(d),
57
+ borderWidth: e.Ref(g),
58
+ borderColor: e.Ref(r)
45
59
  }),
46
- modules: r.Object({
47
- background: e,
48
- button: r.Object({
49
- foreground: e,
50
- foregroundHover: e,
51
- foregroundActive: e,
52
- background: e,
53
- backgroundHover: e,
54
- backgroundActive: e
60
+ modules: e.Object({
61
+ background: e.Ref(r),
62
+ borderWidth: e.Ref(g),
63
+ borderColor: e.Ref(r),
64
+ button: e.Object({
65
+ foreground: e.Ref(r),
66
+ foregroundHover: e.Ref(r),
67
+ foregroundActive: e.Ref(r),
68
+ background: e.Ref(r),
69
+ backgroundHover: e.Ref(r),
70
+ backgroundActive: e.Ref(r)
55
71
  })
56
72
  }),
57
- list: r.Object({
58
- icon: r.Object({
59
- foreground: e,
60
- foregroundHover: e,
61
- foregroundActive: e
73
+ list: e.Object({
74
+ icon: e.Object({
75
+ foreground: e.Ref(r),
76
+ foregroundHover: e.Ref(r),
77
+ foregroundActive: e.Ref(r)
62
78
  }),
63
- foreground: e,
64
- foregroundHover: e,
65
- foregroundActive: e,
66
- background: e,
67
- backgroundHover: e,
68
- backgroundActive: e
79
+ foreground: e.Ref(r),
80
+ foregroundHover: e.Ref(r),
81
+ foregroundActive: e.Ref(r),
82
+ background: e.Ref(r),
83
+ backgroundHover: e.Ref(r),
84
+ backgroundActive: e.Ref(r),
85
+ fontFamily: e.Ref(d),
86
+ divider: e.Object({
87
+ borderColor: e.Ref(r),
88
+ borderWidth: e.Ref(g)
89
+ })
69
90
  })
70
91
  }),
71
- header: r.Object({
72
- background: e,
73
- headline: r.Object({
74
- foreground: e
92
+ header: e.Object({
93
+ background: e.Ref(r),
94
+ borderWidth: e.Ref(g),
95
+ borderColor: e.Ref(r),
96
+ boxShadow: e.Ref(y),
97
+ headline: e.Object({
98
+ foreground: e.Ref(r),
99
+ fontFamily: e.Ref(d)
75
100
  }),
76
- title: r.Object({
77
- foreground: e,
78
- fontFamily: b
101
+ title: e.Object({
102
+ foreground: e.Ref(r),
103
+ fontFamily: e.Ref(d)
79
104
  })
80
105
  }),
81
- form: r.Object({
82
- field: r.Object({
83
- label: r.Object({
84
- foreground: e
106
+ form: e.Object({
107
+ field: e.Object({
108
+ label: e.Object({
109
+ foreground: e.Ref(r),
110
+ fontFamily: e.Ref(d)
85
111
  }),
86
- input: r.Object({
87
- background: e,
88
- foreground: e,
89
- foregroundSubdued: e
112
+ input: e.Object({
113
+ background: e.Ref(r),
114
+ foreground: e.Ref(r),
115
+ foregroundSubdued: e.Ref(r),
116
+ borderColor: e.Ref(r),
117
+ borderColorHover: e.Ref(r),
118
+ borderColorFocus: e.Ref(r),
119
+ boxShadow: e.Ref(y),
120
+ boxShadowHover: e.Ref(y),
121
+ boxShadowFocus: e.Ref(y)
90
122
  })
91
123
  })
92
124
  }),
93
- sidebar: r.Object({
94
- background: e,
95
- foreground: e,
96
- section: r.Object({
97
- toggle: r.Object({
98
- icon: r.Object({
99
- foreground: e,
100
- foregroundHover: e,
101
- foregroundActive: e
125
+ sidebar: e.Object({
126
+ background: e.Ref(r),
127
+ foreground: e.Ref(r),
128
+ fontFamily: e.Ref(d),
129
+ borderWidth: e.Ref(g),
130
+ borderColor: e.Ref(r),
131
+ section: e.Object({
132
+ toggle: e.Object({
133
+ icon: e.Object({
134
+ foreground: e.Ref(r),
135
+ foregroundHover: e.Ref(r),
136
+ foregroundActive: e.Ref(r)
102
137
  }),
103
- foreground: e,
104
- foregroundHover: e,
105
- foregroundActive: e,
106
- background: e,
107
- backgroundHover: e,
108
- backgroundActive: e
138
+ foreground: e.Ref(r),
139
+ foregroundHover: e.Ref(r),
140
+ foregroundActive: e.Ref(r),
141
+ background: e.Ref(r),
142
+ backgroundHover: e.Ref(r),
143
+ backgroundActive: e.Ref(r),
144
+ fontFamily: e.Ref(d),
145
+ borderWidth: e.Ref(g),
146
+ borderColor: e.Ref(r)
109
147
  })
110
148
  })
111
149
  })
112
- }), N = r.Object({
113
- name: r.String(),
114
- appearance: r.Union([r.Literal("light"), r.Literal("dark")]),
115
- rules: W
116
- }), Z = { $defs: { [k.Color]: e, [k.FontFamily]: b } }, A = {
150
+ }), V = e.Object({
151
+ name: e.String(),
152
+ appearance: e.Union([e.Literal("light"), e.Literal("dark")]),
153
+ rules: U
154
+ }), oe = {
155
+ $defs: {
156
+ Color: r,
157
+ FamilyName: d,
158
+ Length: F,
159
+ Percentage: A,
160
+ LineWidth: g,
161
+ BoxShadow: y
162
+ }
163
+ }, x = {
117
164
  name: "Dark (Directus)",
118
165
  appearance: "dark",
119
166
  rules: {
@@ -145,14 +192,23 @@ const k = {
145
192
  fontFamilySansSerif: '"Inter", system-ui',
146
193
  fontFamilySerif: '"Merriweather", serif',
147
194
  fontFamilyMonospace: '"Fira Mono", monospace',
195
+ borderRadius: "6px",
196
+ borderWidth: "2px",
148
197
  navigation: {
149
198
  background: "#21262e",
199
+ borderColor: "transparent",
200
+ borderWidth: "0px",
150
201
  project: {
202
+ borderColor: "transparent",
203
+ borderWidth: "0px",
151
204
  background: "#30363d",
152
- foreground: "var(--theme--foreground-accent)"
205
+ foreground: "var(--theme--foreground-accent)",
206
+ fontFamily: "var(--theme--font-family-sans-serif)"
153
207
  },
154
208
  modules: {
155
209
  background: "var(--theme--background)",
210
+ borderColor: "transparent",
211
+ borderWidth: "0px",
156
212
  button: {
157
213
  foreground: "var(--theme--foreground-subdued)",
158
214
  foregroundHover: "#fff",
@@ -173,13 +229,22 @@ const k = {
173
229
  foregroundActive: "var(--theme--navigation--list--foreground)",
174
230
  background: "transparent",
175
231
  backgroundHover: "#30363d",
176
- backgroundActive: "#30363d"
232
+ backgroundActive: "#30363d",
233
+ fontFamily: "var(--theme--font-family-sans-serif)",
234
+ divider: {
235
+ borderColor: "#30363d",
236
+ borderWidth: "var(--theme--border-width)"
237
+ }
177
238
  }
178
239
  },
179
240
  header: {
180
241
  background: "var(--theme--background)",
242
+ borderColor: "transparent",
243
+ borderWidth: "0px",
244
+ boxShadow: "0 4px 7px -4px rgb(var(--black) / 0.2)",
181
245
  headline: {
182
- foreground: "var(--theme--foreground-subdued)"
246
+ foreground: "var(--theme--foreground-subdued)",
247
+ fontFamily: "var(--theme--font-family-sans-serif)"
183
248
  },
184
249
  title: {
185
250
  foreground: "var(--theme--foreground-accent)",
@@ -189,18 +254,28 @@ const k = {
189
254
  form: {
190
255
  field: {
191
256
  label: {
192
- foreground: "var(--theme--foreground-accent)"
257
+ foreground: "var(--theme--foreground-accent)",
258
+ fontFamily: "var(--theme--font-family-sans-serif)"
193
259
  },
194
260
  input: {
195
261
  background: "var(--theme--background)",
196
262
  foreground: "var(--theme--foreground)",
197
- foregroundSubdued: "var(--theme--foreground-subdued)"
263
+ foregroundSubdued: "var(--theme--foreground-subdued)",
264
+ borderColor: "#21262e",
265
+ borderColorHover: "#30363d",
266
+ borderColorFocus: "var(--theme--primary)",
267
+ boxShadow: "none",
268
+ boxShadowHover: "none",
269
+ boxShadowFocus: "0 0 16px -8px var(--theme--primary)"
198
270
  }
199
271
  }
200
272
  },
201
273
  sidebar: {
202
274
  background: "#21262e",
203
275
  foreground: "var(--theme--foreground-subdued)",
276
+ fontFamily: "var(--theme--font-family-sans-serif)",
277
+ borderColor: "transparent",
278
+ borderWidth: "0px",
204
279
  section: {
205
280
  toggle: {
206
281
  icon: {
@@ -213,7 +288,10 @@ const k = {
213
288
  foregroundActive: "var(--theme--sidebar--section--toggle--foreground)",
214
289
  background: "#30363d",
215
290
  backgroundHover: "var(--theme--sidebar--section--toggle--background)",
216
- backgroundActive: "var(--theme--sidebar--section--toggle--background)"
291
+ backgroundActive: "var(--theme--sidebar--section--toggle--background)",
292
+ fontFamily: "var(--theme--font-family-sans-serif)",
293
+ borderColor: "transparent",
294
+ borderWidth: "0px"
217
295
  }
218
296
  }
219
297
  }
@@ -250,14 +328,23 @@ const k = {
250
328
  fontFamilySansSerif: '"Inter", system-ui',
251
329
  fontFamilySerif: '"Merriweather", serif',
252
330
  fontFamilyMonospace: '"Fira Mono", monospace',
331
+ borderRadius: "6px",
332
+ borderWidth: "2px",
253
333
  navigation: {
254
334
  background: "#f0f4f9",
335
+ borderColor: "transparent",
336
+ borderWidth: "0px",
255
337
  project: {
338
+ borderColor: "transparent",
339
+ borderWidth: "0px",
256
340
  background: "#e4eaf1",
257
- foreground: "var(--theme--foreground-accent)"
341
+ foreground: "var(--theme--foreground-accent)",
342
+ fontFamily: "var(--theme--font-family-sans-serif)"
258
343
  },
259
344
  modules: {
260
345
  background: "#18222f",
346
+ borderColor: "transparent",
347
+ borderWidth: "0px",
261
348
  button: {
262
349
  foreground: "#8196b1",
263
350
  foregroundHover: "#fff",
@@ -278,13 +365,22 @@ const k = {
278
365
  foregroundActive: "var(--theme--navigation--list--foreground)",
279
366
  background: "transparent",
280
367
  backgroundHover: "#e4eaf1",
281
- backgroundActive: "#e4eaf1"
368
+ backgroundActive: "#e4eaf1",
369
+ fontFamily: "var(--theme--font-family-sans-serif)",
370
+ divider: {
371
+ borderColor: "#d3dae4",
372
+ borderWidth: "var(--theme--border-width)"
373
+ }
282
374
  }
283
375
  },
284
376
  header: {
285
377
  background: "var(--theme--background)",
378
+ borderColor: "transparent",
379
+ borderWidth: "0px",
380
+ boxShadow: "0 4px 7px -4px rgb(0 0 0 / 0.2)",
286
381
  headline: {
287
- foreground: "var(--theme--foreground-subdued)"
382
+ foreground: "var(--theme--foreground-subdued)",
383
+ fontFamily: "var(--theme--font-family-sans-serif)"
288
384
  },
289
385
  title: {
290
386
  foreground: "var(--theme--foreground-accent)",
@@ -294,18 +390,28 @@ const k = {
294
390
  form: {
295
391
  field: {
296
392
  label: {
297
- foreground: "var(--theme--foreground-accent)"
393
+ foreground: "var(--theme--foreground-accent)",
394
+ fontFamily: "var(--theme--font-family-sans-serif)"
298
395
  },
299
396
  input: {
300
397
  background: "var(--theme--background)",
301
398
  foreground: "var(--theme--foreground)",
302
- foregroundSubdued: "var(--theme--foreground-subdued)"
399
+ foregroundSubdued: "var(--theme--foreground-subdued)",
400
+ borderColor: "#e4eaf1",
401
+ borderColorHover: "#d3dae4",
402
+ borderColorFocus: "var(--theme--primary)",
403
+ boxShadow: "none",
404
+ boxShadowHover: "none",
405
+ boxShadowFocus: "0 0 16px -8px var(--theme--primary)"
303
406
  }
304
407
  }
305
408
  },
306
409
  sidebar: {
307
410
  background: "#f0f4f9",
308
411
  foreground: "var(--theme--foreground-subdued)",
412
+ fontFamily: "var(--theme--font-family-sans-serif)",
413
+ borderColor: "transparent",
414
+ borderWidth: "0px",
309
415
  section: {
310
416
  toggle: {
311
417
  icon: {
@@ -318,88 +424,90 @@ const k = {
318
424
  foregroundActive: "var(--theme--sidebar--section--toggle--foreground)",
319
425
  background: "#e4eaf1",
320
426
  backgroundHover: "var(--theme--sidebar--section--toggle--background)",
321
- backgroundActive: "var(--theme--sidebar--section--toggle--background)"
427
+ backgroundActive: "var(--theme--sidebar--section--toggle--background)",
428
+ fontFamily: "var(--theme--font-family-sans-serif)",
429
+ borderColor: "transparent",
430
+ borderWidth: "0px"
322
431
  }
323
432
  }
324
433
  }
325
434
  }
326
- }, V = [S], z = [A], E = F("🎨 Themes", () => {
435
+ }, z = [S], E = [x], K = C("🎨 Themes", () => {
327
436
  const t = H({
328
- light: V,
329
- dark: z
437
+ light: z,
438
+ dark: E
330
439
  });
331
- return { themes: t, registerTheme: (i) => {
332
- i.appearance === "light" ? t.light.push(i) : t.dark.push(i);
440
+ return { themes: t, registerTheme: (f) => {
441
+ f.appearance === "light" ? t.light.push(f) : t.dark.push(f);
333
442
  } };
334
- }), K = (t) => {
335
- const s = [], i = (o, c = []) => {
443
+ }), q = (t, m, f, b, v) => {
444
+ const { themes: o } = j(K());
445
+ return { theme: h(() => {
446
+ const a = c(t) ? c(f) : c(m), n = c(t) ? x : S, u = c(t) ? c(v) : c(b), p = c(o)[t ? "dark" : "light"].find((s) => s.name === a);
447
+ return p ? u ? R({}, n, p, { rules: u }) : R(n, p) : (a && a !== n.name && console.warn(`Theme "${a}" doesn't exist.`), u ? R({}, n, { rules: u }) : n);
448
+ }) };
449
+ }, G = (t) => {
450
+ const m = [], f = (o, i = []) => {
336
451
  for (const [a, n] of Object.entries(o))
337
- typeof n == "object" && n !== null && ("type" in n && n.type === "object" && "properties" in n && i(n.properties, [...c, a]), "$ref" in n && n.$ref === k.FontFamily && s.push([...c, a]));
452
+ typeof n == "object" && n !== null && ("type" in n && n.type === "object" && "properties" in n && f(n.properties, [...i, a]), "$ref" in n && n.$ref === "FamilyName" && m.push([...i, a]));
338
453
  };
339
- i(N.properties.rules.properties);
340
- const m = v(() => {
454
+ f(V.properties.rules.properties);
455
+ const b = h(() => {
341
456
  const o = [];
342
- for (const a of s)
343
- o.push(R(d(t).rules, a).trim());
344
- const c = /* @__PURE__ */ new Set();
457
+ for (const a of m)
458
+ o.push(M(c(t).rules, a).trim());
459
+ const i = /* @__PURE__ */ new Set();
345
460
  for (const a of o)
346
- a.split(",").forEach((g) => c.add(g));
347
- return Array.from(c);
348
- }), l = v(() => m.value.filter((o) => {
461
+ a.split(",").forEach((u) => i.add(u));
462
+ return Array.from(i);
463
+ }), v = h(() => b.value.filter((o) => {
349
464
  if (o.startsWith('"') && o.endsWith('"') && o.includes("var(") === !1) {
350
- const c = ["Inter", "Merriweather", "Fira Mono"];
351
- return !(c.includes(o) || c.map((a) => `"${a}"`).includes(o));
465
+ const i = ["Inter", "Merriweather", "Fira Mono"];
466
+ return !(i.includes(o) || i.map((a) => `"${a}"`).includes(o));
352
467
  }
353
468
  return !1;
354
469
  }).map((o) => (o.startsWith('"') && o.endsWith('"') && (o = o.slice(1, -1)), o.replace(" ", "+"))));
355
- return { fonts: m, googleFonts: l };
356
- }, P = (t, s, i, m, l) => {
357
- const { themes: o } = j(E());
358
- return { theme: v(() => {
359
- const a = d(t) ? d(i) : d(s), n = d(t) ? A : S, g = d(t) ? d(l) : d(m), h = d(o)[t ? "dark" : "light"].find((u) => u.name === a);
360
- return h ? g ? y({}, n, h, { rules: g }) : y(n, h) : (a && a !== n.name && console.warn(`Theme "${a}" doesn't exist.`), g ? y({}, n, { rules: g }) : n);
361
- }) };
362
- }, ee = /* @__PURE__ */ O({
470
+ return { fonts: b, googleFonts: v };
471
+ }, ne = /* @__PURE__ */ W({
363
472
  __name: "theme-provider",
364
473
  props: {
365
474
  darkMode: { type: Boolean },
366
475
  themeLight: { default: S.name },
367
476
  themeLightOverrides: { default: () => ({}) },
368
- themeDark: { default: A.name },
477
+ themeDark: { default: x.name },
369
478
  themeDarkOverrides: { default: () => ({}) }
370
479
  },
371
480
  setup(t) {
372
- const s = t, { darkMode: i, themeLight: m, themeDark: l, themeLightOverrides: o, themeDarkOverrides: c } = w(s), { theme: a } = P(i, m, l, o, c), n = v(() => {
373
- const u = C(d(a).rules, { delimiter: "--" }), f = (p) => `--theme--${_(p, { separator: "-" })}`;
374
- return I(u, (p, x) => f(x));
375
- }), { googleFonts: g } = K(a);
376
- M({
377
- link: v(() => {
378
- let u = "";
379
- if (g.value.length > 0) {
380
- const f = g.value.join("&family=");
381
- u += `https://fonts.googleapis.com/css2?family=${f}`, u += `
481
+ const m = t, { darkMode: f, themeLight: b, themeDark: v, themeLightOverrides: o, themeDarkOverrides: i } = O(m), { theme: a } = q(f, b, v, o, i), n = h(() => {
482
+ const s = P(c(a).rules, { delimiter: "--" }), l = (k) => `--theme--${I(k, { separator: "-" })}`;
483
+ return _(s, (k, w) => l(w));
484
+ }), { googleFonts: u } = G(a);
485
+ N({
486
+ link: h(() => {
487
+ let s = "";
488
+ if (u.value.length > 0) {
489
+ const l = u.value.join("&family=");
490
+ s += `https://fonts.googleapis.com/css2?family=${l}`, s += `
382
491
  `;
383
492
  }
384
- return u ? [
493
+ return s ? [
385
494
  {
386
495
  rel: "stylesheet",
387
- href: u
496
+ href: s
388
497
  }
389
498
  ] : [];
390
499
  })
391
500
  });
392
- const h = v(() => `:root {${Object.entries(d(n)).map(([f, p]) => `${f}: ${p};`).join(" ")}}`);
393
- return (u, f) => (B(), T($, { to: "#theme" }, [
394
- D(L(h.value), 1)
501
+ const p = h(() => `:root {${Object.entries(c(n)).map(([l, k]) => `${l}: ${k};`).join(" ")}}`);
502
+ return (s, l) => (B(), $(L, { to: "#theme" }, [
503
+ T(D(p.value), 1)
395
504
  ]));
396
505
  }
397
506
  });
398
507
  export {
399
- Z as Definitions,
400
- ee as ThemeProvider,
401
- N as ThemeSchema,
402
- k as TypeId,
403
- P as useTheme,
404
- E as useThemeStore
508
+ oe as Definitions,
509
+ ne as ThemeProvider,
510
+ V as ThemeSchema,
511
+ q as useTheme,
512
+ K as useThemeStore
405
513
  };