@osmova/quasar-design-system 0.9.1 → 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 +122 -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 +14 -3
  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
package/CHANGELOG.md CHANGED
@@ -4,6 +4,128 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/).
6
6
 
7
+ ## [0.10.0] — 2026-11-19
8
+
9
+ ### Changed
10
+
11
+ - **Opt-in variant bundles (breaking)** — `@osmova/quasar-design-system/css` (and `css/layered`) now ships the
12
+ shared grammar plus the default `win` variant, built to `dist/css` (about 25 KB gzipped, against about 70 KB for every variant together).
13
+ Every other variant is its own complete stylesheet, `css/variants/<name>` and `css/layered/variants/<name>`
14
+ (`ink`, `one`, `term`, `shadcn`, `zen`, `glass`; 26–43 KB gzipped), imported **instead of** `./css`. Each file keeps
15
+ the original rule order minus the other variants' rules, so rendering is identical to the single bundle.
16
+ Apps that used a non-default variant must switch to that variant's file; `css/all` and `css/all/layered`
17
+ keep the previous everything-in-one SCSS entries. The CSS budget now applies to the core and to each variant.
18
+ - **`fluent` is now `win`** — the default variant follows Windows 11 / WinUI 3 rather than Fluent 2. The
19
+ body class is `qds-variant-win`; `fluent` (like `air` and `studio`) stays accepted as a legacy input
20
+ and normalizes to `win`, so stored preferences and `?variant=fluent` links keep working. Selectors that
21
+ targeted `.qds-variant-fluent` must move to `.qds-variant-win`.
22
+ - **`glass` no longer aliases `fluent` (breaking).** A configured or persisted `variant: 'glass'` now
23
+ selects the new glass variant instead of resolving to the default; import `css/variants/glass` for it. To keep
24
+ the previous look, use `variant: 'win'`; a stored `glass` record is not migrated. `air` and `studio` still
25
+ resolve to `win`.
26
+ - **Win WinUI 3 fidelity** (win variant only; every other variant keeps its paint). Values follow WinUI's
27
+ `Common_themeresources_any.xaml` and are emitted on `.qds-variant-win`, so they apply wherever the runtime sets
28
+ the win variant:
29
+ - Role-filled buttons (`color` standard/unelevated) draw a softer bottom edge: light
30
+ `--qds-control-stroke-on-accent-bottom` `rgba(0,0,0,.4)` -> `rgba(0,0,0,.2)` (dark unchanged at `.14`).
31
+ - Button glyphs render at full opacity (`--qds-control-icon-opacity` / `-active` `.72`/`.88` -> `1`; chip icons
32
+ follow, while the dropdown chevron stays a `.72` secondary hint), and dense buttons keep a 16px glyph
33
+ (`--qds-button-dense-icon-size` 14px -> 16px).
34
+ - Button labels use Regular 400 instead of Semibold 600.
35
+ - Checkbox and radio are 20px (was 16px) with a 12px check glyph; the radio dot is 12px at rest, 14px on hover
36
+ and 10px pressed. Dense controls stay 16px.
37
+ - The slider thumb's accent dot is 12px at rest (was 10.8px), 14px on hover and 10px pressed.
38
+ - Light `--qds-fg-disabled` `#bdbdbd` -> `rgba(0,0,0,.361)` (TextFillColorDisabled). Disabled role-filled
39
+ standard/unelevated buttons (not QBtnToggle segments) use AccentFillColorDisabled with
40
+ TextOnAccentFillColorDisabled and no edge, instead of the neutral disabled fill.
41
+ - Subtle hover/pressed fills follow SubtleFillColorSecondary/Tertiary, so pressed is lighter than hover:
42
+ light `.04`/`.08` -> `.035`/`.024`, dark `.06`/`.10` -> `.059`/`.039`.
43
+ - Dialogs follow ContentDialog instead of thick acrylic: a LayerFillColorAlt top layer (light `#fff`, dark
44
+ `rgba(255,255,255,.051)`) over the `--qds-surface-1` base, a SurfaceStrokeColorDefault border
45
+ (`rgba(0,0,0,.06)` / `rgba(255,255,255,.12)` -> `rgba(117,117,117,.4)`), and a last `QCardActions` row drawn as a
46
+ base-coloured footer band with a `--qds-card-stroke` top divider and 24px padding (was 16/24/24px); the body
47
+ section above it pads 24px (was 8px). Menus, tooltips and QBottomSheet keep acrylic. Dialogs open from a 105%
48
+ scale (was 96%), like ContentDialog; reduced motion still collapses it.
49
+ - `--qds-bg-overlay` follows SmokeFillColorDefault: light `rgba(0,0,0,.4)` / dark `.5` -> `rgba(0,0,0,.302)`.
50
+ - Tabs follow SelectorBar/NavigationView: the active indicator is a centred 16 x 3px pill (was the label width)
51
+ and the vertical indicator 3 x 16px (was 8px inset); idle labels use `--qds-fg-default` (was `--qds-fg-muted`),
52
+ hover dims to `--qds-fg-muted`, and hover no longer previews a grey indicator.
53
+ - QBtnToggle follows the Toolkit Segmented: idle labels use `--qds-fg-default` (was `--qds-fg-muted`) and the
54
+ selected segment carries a centred 16 x 3px accent pill.
55
+ - The toggle knob is 12px at rest (was 14px), 14px on hover and 17 x 14px pressed. Dense toggles are unchanged.
56
+ - `--qds-stroke-divider` follows DividerStrokeColorDefault: light `#e0e0e0` -> `rgba(0,0,0,.058)`, dark `#525252`
57
+ -> `rgba(255,255,255,.082)`; table rules use it too (was `--qds-stroke-subtle`).
58
+ - Dark `--qds-text-muted` follows TextFillColorSecondary: `#adadad` -> `#cccccc`.
59
+ - Keyboard focus follows the WinUI focus visual: a 2px FocusStrokeColorOuter ring (light `rgba(0,0,0,.894)`, dark
60
+ `#fff`; was the `--qds-stroke-focus` accent) with a 1px gap (`--qds-focus-ring-offset` 2px -> 1px) that reads as
61
+ the inner ring. Inset rings on filled joined-group segments keep the on-fill ink; forced colours keep `Highlight`.
62
+ - Flyouts sit at WinUI elevation 32: `--qds-menu-shadow`, `--qds-notification-shadow` and `--qds-elevation-flyout`
63
+ `--qds-shadow-16` -> `--qds-shadow-28`. The flyout stroke follows SurfaceStrokeColorFlyout
64
+ (`--qds-material-stroke` light `rgba(0,0,0,.06)` -> `.058`, dark `rgba(255,255,255,.12)` -> `rgba(0,0,0,.2)`).
65
+ - The Mica backdrop tints with the brand only: the accent top-right wash becomes a bottom-right brand wash.
66
+ Opaque and reduced-transparency fallbacks stay flat `--qds-surface-1`.
67
+ - `--qds-font-family` / `--qds-font-family-display` lead with Segoe UI Variable Text / Display, then Segoe UI, then
68
+ the existing stack; nothing is bundled, so other platforms render as before.
69
+ - **Win uses the Windows 11 accent and status palette** (win variant only). Primary follows the default accent ramp:
70
+ light `#005FB8` with `#003E92` link text, dark `#60CDFF` with black labels and `#99EBFF` link text. Positive,
71
+ negative and warning follow Success `#0F7B0F`/`#6CCB5F`, Critical `#C42B1C`/`#FF99A4` and Caution (light
72
+ `#925600`, one step darker than `#9D5D00` so the pressed fill keeps 4.5:1; dark `#FCE100`), with InfoBar tonal
73
+ washes. Info follows the Attention accent instead of grey. Secondary and accent are unchanged. The dark Mica wash
74
+ is fainter (0.18 → 0.07). Because these values live on `.qds-variant-win`, apps that rebrand win override
75
+ `--qds-color-*` on the body (or `.qds-variant-win`), as for zen and glass.
76
+ - **Ink redesigned as a single-ink e-ink interface (breaking for ink).** One ink on flat paper: charcoal by default,
77
+ or black or navy through the new `inkColor` option (`setInkColor()`, `INK_COLORS`, `InkColor`) or `data-qds-ink`.
78
+ Dark is the same ink inverted. Colour roles render as solid ink, outline, double stroke or fill patterns (hatching,
79
+ dots, ruled lines), selection and active states invert, depth is a hard offset sheet, and motion is near-instant.
80
+ One red per scheme marks negative, error and destructive states (negative fills keep their cross-hatch). Media
81
+ renders greyscale; `qds-media-color`, `qds-media-color-hover` and `qds-media-color-reveal` opt back into colour.
82
+ Type is Atkinson Hyperlegible Next, with handwriting (Caveat) only on display titles, `<em>`/`<i>` and the opt-in
83
+ `.qds-hand` / `.text-hand` classes; load them with `@osmova/quasar-design-system/fonts/ink.css`. Same `ink` id;
84
+ `feather` still maps to `ink`. Apps that relied on ink's pastel role colours should move to `zen`.
85
+ - **Zen rebuilt as a soft tactile grammar** (zen only): warm depth model, sage palette, Figtree UI and Fraunces
86
+ display faces (load them with `@osmova/quasar-design-system/fonts/zen.css`), and all zen rules in one partial.
87
+ - **Zen follows component props** (zen only): `unelevated`, `push`, `square`, `outline`, `standout`, fab, group,
88
+ pagination and skeleton props render as zen variants of themselves; ghost and borderless fields drop the well and keep
89
+ a thin line; italic display type is limited to h1–h3 and display titles; QWindow gets a zen sheet.
90
+
91
+ ### Fixed
92
+
93
+ - Toolbars and segmented controls inside a dark card now flip with the card.
94
+ - The runtime now also removes a stale `qds-variant-fluent` class (server-rendered or hand-written) from its target.
95
+
96
+ ### Added
97
+
98
+ - **Missing-stylesheet warning** — in development, the runtime warns once per variant when the active
99
+ variant's stylesheet is not loaded (for example `variant: 'zen'` with only `./css` imported). It reads a
100
+ `--_qds-variant` sentinel each variant scope defines, and stays silent in production, SSR and on errors.
101
+ - **`glass` variant** — inspired by Apple's design language, and the seventh canonical variant.
102
+ Controls and navigation float on a translucent functional layer above opaque content: the header
103
+ and footer carry no fill or rule of their own, and a uniform glass bar with a hairline divider appears once
104
+ content scrolls under them, related bar buttons share one glass capsule (toolbars inside content stay plain, or opt in with
105
+ `.qds-glass-bar`), a docked sidebar runs edge to edge on glass while an overlay sidebar floats inset, dialogs and
106
+ bottom sheets float inset with a large radius, alerts and partial sheets are regular glass, content tabs are a
107
+ recessed segmented control while bar tabs float on glass, and menus open with a short spring.
108
+ Prominent controls (buttons, tab bars, segmented controls, switches) are capsules, as are switch and slider knobs; dense controls and
109
+ fields are rounded rectangles; nested shapes are concentric — a nested block, menu row, sidebar row or
110
+ dialog field takes its container's radius minus the padding between them. Tint is reserved for role
111
+ fills and selection, titles are bolder, and safe-area insets reach the header, footer, sidebar and
112
+ bottom sheets. It uses the native system font stack and ships no Apple font, symbol or artwork.
113
+ Translucency is decoration only: `@supports not (backdrop-filter)`, `prefers-reduced-transparency`,
114
+ forced colours and `prefers-contrast: more` all resolve to opaque surfaces, and increased contrast
115
+ also deepens the accent and restores a 3:1 edge on every control. Every role fill clears WCAG AA
116
+ against its label in both modes. Fields, checkboxes, radios, switch and slider tracks, outline buttons
117
+ and the selected tab or segment keep a 3:1 boundary; labelled buttons, chips and bars use a hairline,
118
+ and disabled buttons drop to the plain border. Under forced colours the selected tab and segment
119
+ take a system outline.
120
+
121
+ ## [0.9.2] — 2026-11-18
122
+
123
+ ### Fixed
124
+
125
+ - **Bare heading styles no longer override app heading classes** — `body.qds-ui :where(h3)` had specificity
126
+ (0,1,1), so an app's `.card__title` on an `h3` rendered at the h3 type step. Headings now use
127
+ `:where(body.qds-ui) h3` (element specificity): they still replace Quasar's bare `h1`–`h6` sizes and lose to any class.
128
+
7
129
  ## [0.9.1] — 2026-11-05
8
130
 
9
131
  ### Changed
package/README.md CHANGED
@@ -48,6 +48,41 @@ import 'quasar/src/css/index.sass'
48
48
  import '@osmova/quasar-design-system/css'
49
49
  ```
50
50
 
51
+ `./css` is the shared grammar plus the default `win` variant. To use another variant, import its bundle **instead of** `./css` (each one already contains the shared grammar), so an app only ships the variant it uses:
52
+
53
+ ```ts
54
+ import '@osmova/quasar-design-system/css/variants/zen' // instead of './css'
55
+ ```
56
+
57
+ Variants: `ink`, `one`, `term`, `shadcn`, `zen`, `glass` (`win` is `./css` itself). Gzipped, `./css` is about 25 KB and a variant bundle is 26–43 KB, against about 70 KB for everything. A variant file **replaces** `./css`: importing both applies the default rules twice and lets them override the variant.
58
+
59
+ An app that switches variants at runtime either imports every variant at once:
60
+
61
+ ```ts
62
+ import '@osmova/quasar-design-system/css/all' // SCSS source, every variant; instead of './css'
63
+ ```
64
+
65
+ or keeps exactly one variant stylesheet loaded and swaps it before calling `setVariant` (Vite `?url` imports shown):
66
+
67
+ ```ts
68
+ import winUrl from '@osmova/quasar-design-system/css?url'
69
+ import zenUrl from '@osmova/quasar-design-system/css/variants/zen?url'
70
+
71
+ const urls = { win: winUrl, zen: zenUrl } // one entry per variant the app offers
72
+
73
+ async function switchVariant(name: keyof typeof urls) {
74
+ const previous = document.getElementById('qds-css')! // <link id="qds-css" rel="stylesheet" href="…">
75
+ const next = Object.assign(document.createElement('link'), { rel: 'stylesheet', href: urls[name] })
76
+ previous.after(next)
77
+ await new Promise((resolve, reject) => { next.onload = resolve; next.onerror = reject })
78
+ previous.remove()
79
+ next.id = 'qds-css'
80
+ designSystem.setVariant(name)
81
+ }
82
+ ```
83
+
84
+ The initial `<link id="qds-css">` must come after Quasar's CSS. In development the runtime warns once when the active variant's stylesheet is not loaded.
85
+
51
86
  The default `./css` bundle is **unlayered** and must be imported **after** Quasar's CSS — Quasar ships unlayered CSS, so the overrides win on cascade order plus specificity, not on `@layer`. If your app deliberately places Quasar's CSS in a lower `@layer`, use the advanced `@osmova/quasar-design-system/css/layered` bundle instead. Mixing the layered bundle with unlayered Quasar CSS is unsupported (a layer cannot beat unlayered rules).
52
87
 
53
88
  For the layered path, declare the order **before** importing either framework or skin. Normal rules prefer the later `qds` layer; important rules reverse that order, so the same QDS important declarations live in the earliest `qds-important` layer:
@@ -61,6 +96,7 @@ For the layered path, declare the order **before** importing either framework or
61
96
  ```ts
62
97
  import './quasar-layered.css'
63
98
  import '@osmova/quasar-design-system/css/layered'
99
+ // or, for another variant instead of the layered core: '@osmova/quasar-design-system/css/layered/variants/zen'
64
100
  ```
65
101
 
66
102
  Choose one adoption path; do not combine the default and layered exports in the same Sass compilation. Inline author important declarations still win over stylesheet declarations.
@@ -80,7 +116,7 @@ import { configureDesignSystem } from '@osmova/quasar-design-system'
80
116
 
81
117
  configureDesignSystem(app, {
82
118
  mode: 'system',
83
- variant: 'fluent',
119
+ variant: 'win',
84
120
  persist: true,
85
121
  })
86
122
  ```
@@ -191,11 +227,12 @@ Tokens: `--qds-material-{thin,regular,thick}-{bg,blur,filter}`, `--qds-material-
191
227
 
192
228
  The package is structured around `src/themes/`. For now there is one real theme, `default`, plus small runtime variants layered over it:
193
229
 
194
- - `fluent`: default Fluent 2-inspired direction with a Mica app backdrop, acrylic overlays, solid reading surfaces, and low-border content. Absorbs the legacy Air translucency behavior.
195
- - `ink`: paper-neutral editorial surfaces with charcoal type and coordinated pastel role washes.
230
+ - `win`: default Windows 11 (WinUI 3) direction, formerly named `fluent`, with a Mica app backdrop, acrylic overlays, solid reading surfaces, and low-border content. Absorbs the legacy Air translucency behavior.
231
+ - `ink`: a single-ink e-ink interface. One ink on flat paper (charcoal by default, or black or navy), dark is the same ink inverted, roles read as solid ink, outline, double stroke or fill patterns, selection inverts, one red marks errors and destructive actions, and media renders greyscale.
196
232
  - `one`: Samsung One UI-inspired neutral grey or true-black pages, rounded blocks, pill controls, a calm blue accent, and touch-friendly rhythm.
197
233
  - `term`: opaque amber developer UI on warm cream or near-black panes, with crisp hairline rules, amber fills carrying dark ink, and a monospace-forward feel.
198
234
  - `zen`: linen paper with sage controls and a quiet reading rhythm — warm linen surfaces, a muted sage primary, 12px control and 20px block radii, gentle diffuse depth, and an essential 1px edge on every control so nothing depends on a shadow alone. The opt-in `.qds-reading` class strips decorative depth and motion while every boundary survives.
235
+ - `glass`: inspired by Apple's design language. Controls and bars float on a translucent functional layer above opaque content: bars carry no fill of their own and gain a soft scroll edge once content scrolls under them, the sidebar and sheets float inset, and menus open with a short spring. Prominent controls are capsules, dense ones rounded rectangles, and nested shapes are concentric with their container. Tint is reserved for role fills and selection. It uses the native system font stack and ships no Apple font, symbol or artwork. Translucency is decoration only: without `backdrop-filter`, under reduced transparency, forced colours or increased contrast it resolves to opaque surfaces, and increased contrast restores a 3:1 edge on every control. Fields, selection controls, slider tracks, outline buttons and the selected tab or segment keep a 3:1 boundary; labelled buttons, chips and bars use a hairline. Toolbars inside content stay plain; add `qds-glass-bar` to a `QToolbar` to float its buttons on glass.
199
236
  - `shadcn`: opaque New York-inspired native Quasar controls with Neutral (default), Gray, Zinc, Stone, and Slate base palettes, compact 36px regular controls, 8px control radii, and 14px card radii. No Tailwind or Reka dependency is required by the package.
200
237
 
201
238
  They are not separate brands — deliberate overlays over the same token system.
@@ -205,11 +242,11 @@ Choose the variant once at app startup and let the runtime keep the matching bod
205
242
  ```ts
206
243
  configureDesignSystem(app, {
207
244
  mode: 'system',
208
- variant: 'ink', // fluent | ink | one | term | shadcn | zen
245
+ variant: 'ink', // win | ink | one | term | shadcn | zen | glass
209
246
  })
210
247
  ```
211
248
 
212
- Legacy inputs `air`, `glass`, and `studio` resolve to `fluent`; `feather` resolves to `ink`; `mobile` resolves to `one`; `terminal` resolves to `term`. The runtime accepts these legacy names for options, `setVariant` and persisted state, but writes only the canonical body classes; new apps should use the canonical names above.
249
+ Legacy inputs `fluent`, `air` and `studio` resolve to `win` (`glass` did too before 0.10.0 and is now its own variant); `feather` resolves to `ink`; `mobile` resolves to `one`; `terminal` resolves to `term`. The runtime accepts these legacy names for options, `setVariant` and persisted state, but writes only the canonical body classes; new apps should use the canonical names above.
213
250
 
214
251
  ### Shadcn adoption and compatibility
215
252
 
@@ -232,6 +269,17 @@ theme.setShadcnBaseColor(nextPalette)
232
269
 
233
270
  Mode, variant, and `shadcnBaseColor` persist together under the existing storage key (`bastvi.quasar-design-system.theme` by default). A valid stored palette wins over configuration; an older stored record without that field keeps the configured palette, or Neutral. Invalid JavaScript/storage palette values normalize to Neutral. Switching to another variant retains the palette selection but removes `data-qds-shadcn-base-color`; returning to shadcn restores it. `destroy()` removes owned attributes/classes and the system-theme listener. The controller can be created without a DOM for SSR; select deterministic server markup and initialize on the client to apply system preference and persistence.
234
271
 
272
+ The ink variant has its own ink colour (`charcoal`, `black` or `navy`; charcoal by default), with the same model:
273
+
274
+ ```ts
275
+ import { configureDesignSystem, INK_COLORS, type InkColor } from '@osmova/quasar-design-system'
276
+
277
+ const theme = configureDesignSystem(app, { variant: 'ink', inkColor: 'navy' })
278
+ theme.setInkColor('black')
279
+ ```
280
+
281
+ It persists with the mode and variant, and the runtime writes `data-qds-ink` only while ink is active (CSS-only: put `data-qds-ink="navy"` next to `qds-variant-ink`; missing or invalid values use charcoal). Ink renders media greyscale; add `qds-media-color` (always in colour), `qds-media-color-hover` (colour on hover or focus) or `qds-media-color-reveal` (fades to colour once it appears, static under reduced motion) to the media or any ancestor. Handwriting is opt-in through `.qds-hand` / `.text-hand`, display titles and `<em>`/`<i>`; load the faces with `@osmova/quasar-design-system/fonts/ink.css`.
282
+
235
283
  Use the default **body target** for Quasar's teleported dialogs, menus, tooltips, notifications, and loading plugins. A custom `target` scopes descendant controls only: portals mounted elsewhere do not inherit it, and body typography/backdrop rules are not relocated to that subtree. Supported visual scoping is a single body root or an isolated custom root; sibling roots can be themed independently when their scopes do not overlap. Put the variant, palette, and mode on the **same element**.
236
284
 
237
285
  **Known limitation — nested theme roots:** arbitrary independently themed roots nested inside another theme root are not supported as nearest-palette boundaries for component grammar or local-dark paint. For example, a native local-dark card inside an inner Neutral root can still take the outer Slate palette. Use non-overlapping isolated render roots or separate documents/iframes when independently themed component trees need isolation; do not rely on a nested palette attribute to reset all component styling.
@@ -249,6 +297,8 @@ Use `qds-theme-dark` for dark mode, or a consistent `data-qds-resolved="light|da
249
297
 
250
298
  Keep QDS after Quasar for the default export. For the layered export, layer Quasar deliberately; **important declarations reverse layer order**, so audit consumer important overrides separately from normal declarations. The theme already bridges the seven Quasar role variables (`--q-primary`, `--q-secondary`, `--q-accent`, `--q-positive`, `--q-negative`, `--q-warning`, `--q-info`) within shadcn and local scheme boundaries; it does not mutate global Quasar colors or `--q-dark`. Unlayered consumer overrides after QDS are supported. Primitive overrides inside a component must also rebind the semantic aliases that consume them, because inherited custom properties can already be resolved at their parent scope.
251
299
 
300
+ To rebrand, override `--qds-color-*` on the body (or the variant class, e.g. `.qds-variant-win`), not only on `:root`: `win`, `zen` and `glass` set their palettes on the variant class, which wins over `:root`.
301
+
252
302
  Unlike Fluent, an ordinary uncolored filled shadcn button is a primary action; contextual picker, pagination, toggle, and editor controls retain their native grammar. Flat, outline, push, dense, rounded/square, loading, literal palette colors, and explicit sizes remain distinct. Semantic solid fills own their on-fill foreground even with `text-color="white"` or normal inline text color; inline **important** author color wins. Literal combinations such as `color="red-7" text-color="white"` stay native. Use `.qds-tonal` for a soft button/badge and `.qds-solid` for a solid chip. `.qds-button--link` supplies a link-like visual treatment but does not change button semantics. Shadcn fields use perimeter strokes/focus halos rather than Fluent's focus bar, and surfaces remain opaque rather than acrylic.
253
303
 
254
304
  ### Reference provenance