@osmova/quasar-design-system 0.9.2 → 0.10.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/README.md +55 -5
  3. package/dist/css/index.css +1 -0
  4. package/dist/css/layered/index.css +1 -0
  5. package/dist/css/layered/variants/glass.css +1 -0
  6. package/dist/css/layered/variants/ink.css +1 -0
  7. package/dist/css/layered/variants/one.css +1 -0
  8. package/dist/css/layered/variants/shadcn.css +1 -0
  9. package/dist/css/layered/variants/term.css +1 -0
  10. package/dist/css/layered/variants/zen.css +1 -0
  11. package/dist/css/variants/glass.css +1 -0
  12. package/dist/css/variants/ink.css +1 -0
  13. package/dist/css/variants/one.css +1 -0
  14. package/dist/css/variants/shadcn.css +1 -0
  15. package/dist/css/variants/term.css +1 -0
  16. package/dist/css/variants/zen.css +1 -0
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/runtime/theme.d.ts +5 -1
  22. package/dist/runtime/theme.d.ts.map +1 -1
  23. package/dist/runtime/theme.js +56 -6
  24. package/dist/runtime/theme.js.map +1 -1
  25. package/dist/themes/index.d.ts +15 -3
  26. package/dist/themes/index.d.ts.map +1 -1
  27. package/dist/themes/index.js +36 -22
  28. package/dist/themes/index.js.map +1 -1
  29. package/package.json +12 -6
  30. package/src/css/_base.scss +7 -0
  31. package/src/css/components/_actions.scss +20 -8
  32. package/src/css/components/_badge.scss +0 -4
  33. package/src/css/components/_button.scss +18 -3
  34. package/src/css/components/_card.scss +32 -24
  35. package/src/css/components/_chip.scss +4 -4
  36. package/src/css/components/_complex-media.scss +4 -12
  37. package/src/css/components/_compositions.scss +0 -8
  38. package/src/css/components/_dialog.scss +33 -14
  39. package/src/css/components/_drawer.scss +24 -21
  40. package/src/css/components/_field.scss +4 -3
  41. package/src/css/components/_footer.scss +0 -2
  42. package/src/css/components/_form-field.scss +0 -8
  43. package/src/css/components/_forms.scss +0 -10
  44. package/src/css/components/_list.scss +13 -23
  45. package/src/css/components/_loading-data.scss +3 -7
  46. package/src/css/components/_menu.scss +4 -3
  47. package/src/css/components/_notification.scss +5 -9
  48. package/src/css/components/_pagination.scss +0 -4
  49. package/src/css/components/_plugins.scss +0 -12
  50. package/src/css/components/_popup.scss +0 -3
  51. package/src/css/components/_rating.scss +0 -4
  52. package/src/css/components/_selection.scss +42 -26
  53. package/src/css/components/_table.scss +13 -21
  54. package/src/css/components/_tabs.scss +14 -3
  55. package/src/css/components/_toolbar.scss +27 -23
  56. package/src/css/components/variants/_glass.scss +124 -0
  57. package/src/css/components/variants/_ink.scss +549 -0
  58. package/src/css/components/variants/_zen.scss +385 -82
  59. package/src/css/extensions/_qwindow-styles.scss +14 -6
  60. package/src/css/extensions/qwindow.layered.scss +2 -0
  61. package/src/css/extensions/qwindow.scss +2 -0
  62. package/src/css/index.layered.scss +4 -0
  63. package/src/css/index.scss +4 -0
  64. package/src/fonts/THIRD_PARTY_NOTICES.md +10 -1
  65. package/src/fonts/files/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2 +0 -0
  66. package/src/fonts/files/atkinson-hyperlegible-next-latin-wght-normal.woff2 +0 -0
  67. package/src/fonts/files/caveat-latin-ext-wght-normal.woff2 +0 -0
  68. package/src/fonts/files/caveat-latin-wght-normal.woff2 +0 -0
  69. package/src/fonts/files/figtree-latin-ext-wght-normal.woff2 +0 -0
  70. package/src/fonts/files/figtree-latin-wght-normal.woff2 +0 -0
  71. package/src/fonts/files/fraunces-latin-ext-wght-italic.woff2 +0 -0
  72. package/src/fonts/files/fraunces-latin-wght-italic.woff2 +0 -0
  73. package/src/fonts/ink.css +36 -0
  74. package/src/fonts/zen.css +36 -0
  75. package/src/index.ts +3 -0
  76. package/src/runtime/theme.ts +64 -5
  77. package/src/themes/default.scss +354 -86
  78. package/src/themes/index.ts +43 -25
  79. package/src/tokens/_default.scss +85 -26
  80. package/src/css/components/variants/_atrium.scss +0 -123
@@ -33,6 +33,8 @@
33
33
  @use 'components/loading-data';
34
34
  @use 'components/complex-media';
35
35
  @use 'components/compositions';
36
+ @use 'components/variants/zen';
37
+ @use 'components/variants/ink';
36
38
 
37
39
  @layer qds.base {
38
40
  @include base.styles;
@@ -68,4 +70,6 @@
68
70
  @include loading-data.styles;
69
71
  @include complex-media.styles;
70
72
  @include compositions.styles;
73
+ @include zen.styles;
74
+ @include ink.styles;
71
75
  }
@@ -32,6 +32,8 @@
32
32
  @use 'components/loading-data';
33
33
  @use 'components/complex-media';
34
34
  @use 'components/compositions';
35
+ @use 'components/variants/zen';
36
+ @use 'components/variants/ink';
35
37
 
36
38
  @include base.styles;
37
39
  @include utilities.styles;
@@ -60,3 +62,5 @@
60
62
  @include loading-data.styles;
61
63
  @include complex-media.styles;
62
64
  @include compositions.styles;
65
+ @include zen.styles;
66
+ @include ink.styles;
@@ -2,7 +2,7 @@
2
2
 
3
3
  This package redistributes the following font files (`./files/*.woff2`). Each is licensed under the
4
4
  **SIL Open Font License, Version 1.1** (OFL-1.1). The full license text is included once below and
5
- applies to all three families.
5
+ applies to all five families.
6
6
 
7
7
  - **Inter** — Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter).
8
8
  Reserved Font Name "Inter". Files: `inter-latin-wght-normal.woff2`, `inter-latin-ext-wght-normal.woff2`.
@@ -11,6 +11,15 @@ applies to all three families.
11
11
  - **Selawik** — Copyright 2015 Microsoft Corporation (https://github.com/microsoft/Selawik),
12
12
  with Reserved Font Name "Selawik". Files: `selawik-regular.woff2`, `selawik-semibold.woff2`, `selawik-bold.woff2`
13
13
  (converted from the upstream TrueType to woff2; not subset, family name unchanged).
14
+ - **Figtree** — Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree).
15
+ Files: `figtree-latin-wght-normal.woff2`, `figtree-latin-ext-wght-normal.woff2` (Fontsource 5.3.0, upstream v9).
16
+ - **Fraunces** — Copyright 2020 The Fraunces Project Authors (https://github.com/undercasetype/Fraunces).
17
+ Files: `fraunces-latin-wght-italic.woff2`, `fraunces-latin-ext-wght-italic.woff2` (Fontsource 5.3.0, upstream v38).
18
+ - **Atkinson Hyperlegible Next** — Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors
19
+ (https://github.com/googlefonts/atkinson-hyperlegible-next). Files: `atkinson-hyperlegible-next-latin-wght-normal.woff2`,
20
+ `atkinson-hyperlegible-next-latin-ext-wght-normal.woff2` (Fontsource 5.3.0, upstream v7).
21
+ - **Caveat** — Copyright 2014 The Caveat Project Authors (https://github.com/googlefonts/caveat).
22
+ Files: `caveat-latin-wght-normal.woff2`, `caveat-latin-ext-wght-normal.woff2` (Fontsource 5.3.0, upstream v23).
14
23
 
15
24
  ---
16
25
 
@@ -0,0 +1,36 @@
1
+ /* Ink faces (OFL 1.1): Atkinson Hyperlegible Next Variable for reading and UI text, Caveat Variable for handwritten accents */
2
+ @font-face {
3
+ font-family: 'Atkinson Hyperlegible Next Variable';
4
+ font-style: normal;
5
+ font-display: swap;
6
+ font-weight: 200 800;
7
+ src: url('./files/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2') format('woff2-variations');
8
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
9
+ }
10
+
11
+ @font-face {
12
+ font-family: 'Atkinson Hyperlegible Next Variable';
13
+ font-style: normal;
14
+ font-display: swap;
15
+ font-weight: 200 800;
16
+ src: url('./files/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2-variations');
17
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
18
+ }
19
+
20
+ @font-face {
21
+ font-family: 'Caveat Variable';
22
+ font-style: normal;
23
+ font-display: swap;
24
+ font-weight: 400 700;
25
+ src: url('./files/caveat-latin-ext-wght-normal.woff2') format('woff2-variations');
26
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
27
+ }
28
+
29
+ @font-face {
30
+ font-family: 'Caveat Variable';
31
+ font-style: normal;
32
+ font-display: swap;
33
+ font-weight: 400 700;
34
+ src: url('./files/caveat-latin-wght-normal.woff2') format('woff2-variations');
35
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
36
+ }
@@ -0,0 +1,36 @@
1
+ /* Zen faces (OFL 1.1): Figtree Variable for UI text, Fraunces Variable italic for display */
2
+ @font-face {
3
+ font-family: 'Figtree Variable';
4
+ font-style: normal;
5
+ font-display: swap;
6
+ font-weight: 300 900;
7
+ src: url('./files/figtree-latin-ext-wght-normal.woff2') format('woff2-variations');
8
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
9
+ }
10
+
11
+ @font-face {
12
+ font-family: 'Figtree Variable';
13
+ font-style: normal;
14
+ font-display: swap;
15
+ font-weight: 300 900;
16
+ src: url('./files/figtree-latin-wght-normal.woff2') format('woff2-variations');
17
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
18
+ }
19
+
20
+ @font-face {
21
+ font-family: 'Fraunces Variable';
22
+ font-style: italic;
23
+ font-display: swap;
24
+ font-weight: 100 900;
25
+ src: url('./files/fraunces-latin-ext-wght-italic.woff2') format('woff2-variations');
26
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
27
+ }
28
+
29
+ @font-face {
30
+ font-family: 'Fraunces Variable';
31
+ font-style: italic;
32
+ font-display: swap;
33
+ font-weight: 100 900;
34
+ src: url('./files/fraunces-latin-wght-italic.woff2') format('woff2-variations');
35
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
36
+ }
package/src/index.ts CHANGED
@@ -17,8 +17,10 @@ export {
17
17
  DEFAULT_THEME_NAME,
18
18
  DESIGN_SYSTEM_THEMES,
19
19
  DESIGN_SYSTEM_VARIANTS,
20
+ INK_COLORS,
20
21
  SHADCN_ACCENT_COLORS,
21
22
  SHADCN_BASE_COLORS,
23
+ isInkColor,
22
24
  isShadcnAccentColor,
23
25
  isShadcnBaseColor,
24
26
  isBuiltInDesignSystemVariantName,
@@ -27,6 +29,7 @@ export {
27
29
  type CanonicalDesignSystemVariantName,
28
30
  type DesignSystemVariant,
29
31
  type DesignSystemVariantName,
32
+ type InkColor,
30
33
  type LegacyDesignSystemVariantName,
31
34
  type QuasarDesignTheme,
32
35
  type ShadcnAccentColor,
@@ -10,11 +10,14 @@ import {
10
10
 
11
11
  import {
12
12
  DESIGN_SYSTEM_VARIANTS,
13
+ isBuiltInDesignSystemVariantName,
13
14
  isDesignSystemVariantName,
15
+ isInkColor,
14
16
  isShadcnAccentColor,
15
17
  isShadcnBaseColor,
16
18
  type DesignSystemVariant,
17
19
  type DesignSystemVariantName,
20
+ type InkColor,
18
21
  type QuasarDesignTheme,
19
22
  type ShadcnAccentColor,
20
23
  type ShadcnBaseColor,
@@ -29,6 +32,7 @@ export interface DesignSystemOptions {
29
32
  variant?: DesignSystemVariantName
30
33
  shadcnBaseColor?: ShadcnBaseColor
31
34
  shadcnAccent?: ShadcnAccentColor
35
+ inkColor?: InkColor
32
36
  syncWithSystem?: boolean
33
37
  persist?: boolean
34
38
  storageKey?: string
@@ -68,6 +72,7 @@ export interface DesignSystemState {
68
72
  variant: DesignSystemVariantName
69
73
  shadcnBaseColor: ShadcnBaseColor
70
74
  shadcnAccent: ShadcnAccentColor
75
+ inkColor: InkColor
71
76
  syncWithSystem: boolean
72
77
  persist: boolean
73
78
  storageKey: string
@@ -82,6 +87,7 @@ export interface DesignSystemController {
82
87
  variant: ComputedRef<DesignSystemVariantName>
83
88
  shadcnBaseColor: ComputedRef<ShadcnBaseColor>
84
89
  shadcnAccent: ComputedRef<ShadcnAccentColor>
90
+ inkColor: ComputedRef<InkColor>
85
91
  initialize: () => void
86
92
  destroy: () => void
87
93
  setMode: (mode: DesignSystemMode) => DesignSystemMode
@@ -92,6 +98,7 @@ export interface DesignSystemController {
92
98
  setVariant: (variant: DesignSystemVariantName) => DesignSystemVariantName
93
99
  setShadcnBaseColor: (color: ShadcnBaseColor) => ShadcnBaseColor
94
100
  setShadcnAccent: (accent: ShadcnAccentColor) => ShadcnAccentColor
101
+ setInkColor: (color: InkColor) => InkColor
95
102
  }
96
103
 
97
104
  interface QuasarDarkLike {
@@ -114,9 +121,10 @@ export const DEFAULT_DESIGN_SYSTEM_OPTIONS: Required<
114
121
  > = {
115
122
  enabled: true,
116
123
  mode: 'system',
117
- variant: 'fluent',
124
+ variant: 'win',
118
125
  shadcnBaseColor: 'neutral',
119
126
  shadcnAccent: 'none',
127
+ inkColor: 'charcoal',
120
128
  syncWithSystem: true,
121
129
  persist: true,
122
130
  storageKey: 'bastvi.quasar-design-system.theme',
@@ -126,8 +134,8 @@ export const DEFAULT_DESIGN_SYSTEM_OPTIONS: Required<
126
134
  const THEME_MODES: DesignSystemMode[] = ['light', 'dark', 'system']
127
135
  const DESIGN_SYSTEM_SCOPE_CLASS = 'qds-ui'
128
136
  const LEGACY_VARIANT_CLASSES = [
137
+ 'qds-variant-fluent',
129
138
  'qds-variant-air',
130
- 'qds-variant-glass',
131
139
  'qds-variant-feather',
132
140
  'qds-variant-mobile',
133
141
  'qds-variant-terminal',
@@ -196,6 +204,7 @@ export function createDesignSystemController(
196
204
  variant: normalizeVariant(options.variant),
197
205
  shadcnBaseColor: normalizeShadcnBaseColor(options.shadcnBaseColor),
198
206
  shadcnAccent: normalizeShadcnAccent(options.shadcnAccent),
207
+ inkColor: normalizeInkColor(options.inkColor),
199
208
  syncWithSystem: options.syncWithSystem ?? DEFAULT_DESIGN_SYSTEM_OPTIONS.syncWithSystem,
200
209
  persist: options.persist ?? DEFAULT_DESIGN_SYSTEM_OPTIONS.persist,
201
210
  storageKey: options.storageKey ?? DEFAULT_DESIGN_SYSTEM_OPTIONS.storageKey,
@@ -204,6 +213,7 @@ export function createDesignSystemController(
204
213
 
205
214
  let mediaQuery: MediaQueryList | null = null
206
215
  let onMediaChange: ((event: MediaQueryListEvent) => void) | null = null
216
+ const checkedVariants = new Set<string>()
207
217
 
208
218
  const resolveMode = (): DesignSystemResolvedMode => {
209
219
  return state.mode === 'system' ? (state.prefersDark ? 'dark' : 'light') : state.mode
@@ -231,6 +241,11 @@ export function createDesignSystemController(
231
241
  } else {
232
242
  delete target.dataset.qdsShadcnAccent
233
243
  }
244
+ if (state.variant === 'ink') {
245
+ target.dataset.qdsInk = state.inkColor
246
+ } else {
247
+ delete target.dataset.qdsInk
248
+ }
234
249
  target.classList.toggle('qds-theme-light', !state.isDark)
235
250
  target.classList.toggle('qds-theme-dark', state.isDark)
236
251
  target.classList.toggle(DESIGN_SYSTEM_SCOPE_CLASS, state.enabled)
@@ -242,6 +257,11 @@ export function createDesignSystemController(
242
257
  Object.values(variantRegistry).forEach((variant) => {
243
258
  target.classList.toggle(variant.cssClass, variant.name === state.variant)
244
259
  })
260
+
261
+ if (state.enabled && !checkedVariants.has(state.variant)) {
262
+ checkedVariants.add(state.variant)
263
+ warnIfVariantCssMissing(target, state.variant)
264
+ }
245
265
  }
246
266
 
247
267
  const loadStoredState = () => {
@@ -259,6 +279,9 @@ export function createDesignSystemController(
259
279
  if (Object.prototype.hasOwnProperty.call(stored, 'shadcnAccent')) {
260
280
  state.shadcnAccent = normalizeShadcnAccent(stored.shadcnAccent)
261
281
  }
282
+ if (Object.prototype.hasOwnProperty.call(stored, 'inkColor')) {
283
+ state.inkColor = normalizeInkColor(stored.inkColor)
284
+ }
262
285
  } catch {
263
286
  try {
264
287
  window.localStorage.removeItem(state.storageKey)
@@ -276,7 +299,7 @@ export function createDesignSystemController(
276
299
  try {
277
300
  window.localStorage.setItem(state.storageKey, JSON.stringify({
278
301
  mode: state.mode, variant: state.variant, shadcnBaseColor: state.shadcnBaseColor,
279
- shadcnAccent: state.shadcnAccent,
302
+ shadcnAccent: state.shadcnAccent, inkColor: state.inkColor,
280
303
  }))
281
304
  } catch {
282
305
  // Persistence is best effort; theme switching must still work.
@@ -354,6 +377,7 @@ export function createDesignSystemController(
354
377
  delete target.dataset.qdsVariant
355
378
  delete target.dataset.qdsShadcnBaseColor
356
379
  delete target.dataset.qdsShadcnAccent
380
+ delete target.dataset.qdsInk
357
381
  }
358
382
  state.initialized = false
359
383
  }
@@ -366,6 +390,7 @@ export function createDesignSystemController(
366
390
  variant: computed(() => state.variant),
367
391
  shadcnBaseColor: computed(() => state.shadcnBaseColor),
368
392
  shadcnAccent: computed(() => state.shadcnAccent),
393
+ inkColor: computed(() => state.inkColor),
369
394
  initialize,
370
395
  destroy,
371
396
  setMode,
@@ -386,6 +411,12 @@ export function createDesignSystemController(
386
411
  applyState()
387
412
  return state.shadcnAccent
388
413
  },
414
+ setInkColor: (color) => {
415
+ state.inkColor = normalizeInkColor(color)
416
+ saveState()
417
+ applyState()
418
+ return state.inkColor
419
+ },
389
420
  }
390
421
  }
391
422
 
@@ -401,9 +432,13 @@ function normalizeShadcnAccent(value: unknown): ShadcnAccentColor {
401
432
  return isShadcnAccentColor(value) ? value : 'none'
402
433
  }
403
434
 
435
+ function normalizeInkColor(value: unknown): InkColor {
436
+ return isInkColor(value) ? value : 'charcoal'
437
+ }
438
+
404
439
  function normalizeVariant(value: unknown): DesignSystemVariantName {
405
- if (value === 'studio' || value === 'air' || value === 'glass') {
406
- return 'fluent'
440
+ if (value === 'fluent' || value === 'studio' || value === 'air') {
441
+ return 'win'
407
442
  }
408
443
 
409
444
  if (value === 'feather') {
@@ -421,6 +456,30 @@ function normalizeVariant(value: unknown): DesignSystemVariantName {
421
456
  return isDesignSystemVariantName(value) ? value : DEFAULT_DESIGN_SYSTEM_OPTIONS.variant
422
457
  }
423
458
 
459
+ function isProduction(): boolean {
460
+ try {
461
+ // Bundlers replace this exact expression; a browser without one throws and counts as development.
462
+ return process.env.NODE_ENV === 'production'
463
+ } catch {
464
+ return false
465
+ }
466
+ }
467
+
468
+ function warnIfVariantCssMissing(target: HTMLElement, variant: string): void {
469
+ if (isProduction() || !isBuiltInDesignSystemVariantName(variant) || typeof getComputedStyle !== 'function' || target.isConnected === false) {
470
+ return
471
+ }
472
+
473
+ try {
474
+ if (getComputedStyle(target).getPropertyValue('--_qds-variant').trim() !== variant) {
475
+ const file = variant === 'win' ? 'css' : `css/variants/${variant}`
476
+ console.warn(`[quasar-design-system] The "${variant}" variant is active but its stylesheet is not loaded. Import '@osmova/quasar-design-system/${file}' (or css/all) before applying it.`)
477
+ }
478
+ } catch {
479
+ // Diagnostics must never break theming.
480
+ }
481
+ }
482
+
424
483
  function getSystemPrefersDark(): boolean {
425
484
  return typeof window !== 'undefined' && Boolean(window.matchMedia?.('(prefers-color-scheme: dark)').matches)
426
485
  }