@osmova/quasar-design-system 0.8.0-rc.3 → 0.8.1
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/CHANGELOG.md +73 -16
- package/README.md +5 -4
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/index.d.ts.map +1 -1
- package/dist/themes/index.js +8 -1
- package/dist/themes/index.js.map +1 -1
- package/package.json +13 -4
- package/src/css/components/_actions.scss +7 -0
- package/src/css/components/_badge.scss +5 -0
- package/src/css/components/_button.scss +11 -1
- package/src/css/components/_card.scss +23 -0
- package/src/css/components/_chip.scss +5 -0
- package/src/css/components/_complex-media.scss +10 -0
- package/src/css/components/_compositions.scss +8 -0
- package/src/css/components/_dialog.scss +16 -0
- package/src/css/components/_drawer.scss +21 -0
- package/src/css/components/_field.scss +17 -2
- package/src/css/components/_form-field.scss +8 -0
- package/src/css/components/_forms.scss +10 -0
- package/src/css/components/_list.scss +26 -0
- package/src/css/components/_loading-data.scss +4 -0
- package/src/css/components/_menu.scss +11 -1
- package/src/css/components/_notification.scss +4 -0
- package/src/css/components/_pagination.scss +4 -0
- package/src/css/components/_plugins.scss +10 -0
- package/src/css/components/_popup.scss +3 -0
- package/src/css/components/_rating.scss +4 -0
- package/src/css/components/_selection.scss +29 -0
- package/src/css/components/_table.scss +22 -0
- package/src/css/components/_tabs.scss +12 -1
- package/src/css/components/_toolbar.scss +23 -0
- package/src/css/components/variants/_atrium.scss +123 -0
- package/src/css/components/variants/_mechanics.scss +22 -0
- package/src/css/components/variants/_zen.scss +147 -0
- package/src/css/extensions/_qwindow-styles.scss +3 -1
- package/src/themes/default.scss +141 -0
- package/src/themes/index.ts +9 -2
- package/src/tokens/_default.scss +24 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,51 @@ 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
|
-
## [
|
|
7
|
+
## [0.8.1] — 2026-11-03
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **QWindow body scrolling**: `.qds-window__body` used `min-height: 100%` inside QWindow's wrapping
|
|
12
|
+
`.row` body, so content taller than the window grew its flex line past it and was clipped with no
|
|
13
|
+
scroll. It now takes `height: 100%` of the definite-height native body, so it scrolls. Found in
|
|
14
|
+
Osmolab V2's quote window.
|
|
15
|
+
|
|
16
|
+
## [0.8.0] — 2026-10-20
|
|
17
|
+
|
|
18
|
+
Stable release of the 0.8.0 line: everything from `0.8.0-rc.1` (the reference-driven Fluent 2
|
|
19
|
+
rebuild), `0.8.0-rc.2` (materials) and `0.8.0-rc.3` (the shadcn variant), plus the Windows 11
|
|
20
|
+
control layer, the form and app compositions and the Ink / Term / One variant reworks below.
|
|
21
|
+
|
|
22
|
+
### Breaking changes
|
|
23
|
+
|
|
24
|
+
- **Variant IDs**: `mobile` is now `one` and `terminal` is now `term` (labels **One** and **Term**).
|
|
25
|
+
The runtime writes `qds-variant-one` / `qds-variant-term` and `data-qds-variant="one|term"`. `mobile` and
|
|
26
|
+
`terminal` are still accepted as legacy aliases (options, `setVariant`, persisted state), but the
|
|
27
|
+
`.qds-variant-mobile` / `.qds-variant-terminal` classes are no longer emitted or styled; update any consumer
|
|
28
|
+
selectors that target them. The `$variants` map in `./tokens/default` is keyed `one` / `term` as well.
|
|
29
|
+
- **Pressed primary**: `--qds-color-primary-pressed` is now derived from the fill-state tokens (a lighter
|
|
30
|
+
Fluent press) instead of the fixed dark `#0c3b5e`, and the `primary-pressed` key is removed from the `$palette` /
|
|
31
|
+
`$dark-palette` maps in `./tokens/default`. Consumers that read either should use `--qds-color-primary-dark` for
|
|
32
|
+
a darker primary.
|
|
33
|
+
- **One (One UI 8 neutral)**: One palette, surface, text, border, role-wash, focus-block and shadow token
|
|
34
|
+
values changed. Light page `#f2f2f2` with white blocks, dark true-black page with `#1a1a1a` blocks; the lavender
|
|
35
|
+
focus-block cast, Mica tint and card tints are gone. Calm blue accent (`#1b5fcf`, dark fill `#2f6fdc` with
|
|
36
|
+
light-blue `--qds-fg-brand`) and desaturated role fills with white text, ≥ 4.5:1 at rest and hover in both modes
|
|
37
|
+
(hover and press darken). Muted text, placeholders (including hovered fields), brand text and the focus ring meet
|
|
38
|
+
contrast on every One surface (fixes the 4.05 dark placeholder and 4.18 muted-on-focus-block gaps).
|
|
8
39
|
|
|
9
40
|
### Added
|
|
10
41
|
|
|
42
|
+
- **`zen` variant** — a soft reading surface and the sixth canonical variant. Warm linen paper
|
|
43
|
+
(`#faf8f3` through `#ddd4c4`) with a muted sage primary (`#4f6245`), Figtree for UI and Literata
|
|
44
|
+
for reading, 12px control
|
|
45
|
+
and 20px block radii, and gentle diffuse depth. Its governing rule is that **boundary is essential
|
|
46
|
+
and depth is decorative**: every control and block carries a real 1px edge, so nothing is legible
|
|
47
|
+
by shadow alone. Hover steps the face up a surface and pressed steps it down into an inset, so
|
|
48
|
+
depth never grows on press; nested blocks step by tone rather than stacking a second drop. Role
|
|
49
|
+
fills drop the stroke and carry their own on-fill foreground. The opt-in `.qds-reading` class
|
|
50
|
+
removes decorative depth and motion while every boundary survives.
|
|
51
|
+
|
|
11
52
|
- **Fields**: a Windows 11 (WinUI 3) finish, with a layer fill, an elevation border and a strong bottom stroke.
|
|
12
53
|
On focus the field switches to the input-active fill and shows the accent bar. Fields have no halo by default.
|
|
13
54
|
Quasar `color`, forced colours and reduced motion are respected.
|
|
@@ -50,6 +91,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
50
91
|
|
|
51
92
|
### Changed
|
|
52
93
|
|
|
94
|
+
- **Fluent**: filled-role labels no longer dissolve into their own fill on hover and press.
|
|
95
|
+
`--qds-text-on-fill-pressed-mix` moves from `90%` to `100%`, matching Windows 11 / Fluent 2, where the
|
|
96
|
+
on-brand foreground is constant across rest, hover and pressed and only the fill moves along the
|
|
97
|
+
brand ramp. Worst measured label contrast rises from 3.766 to 4.298 in light and 3.844 to 4.233 in
|
|
98
|
+
dark. No other variant is affected: each already re-declared `100%`.
|
|
99
|
+
- **Fluent**: the field clear/password action now has a visible focus ring. It carries Quasar's
|
|
100
|
+
`no-outline` utility (`outline: 0 !important`), which silently defeated the previous rule, so the ring
|
|
101
|
+
is routed through the same importance channel QBtn already uses.
|
|
102
|
+
|
|
103
|
+
|
|
53
104
|
- **Windows 11 control layer**: new tokens `--qds-control-fill-input-active`,
|
|
54
105
|
`--qds-control-stroke-default|secondary|strong|top|bottom|on-accent-top|on-accent-bottom`, `--qds-card-fill`,
|
|
55
106
|
`--qds-card-stroke` and `--qds-control-halo`. `--qds-control-fill-*` are now translucent layer values instead of
|
|
@@ -63,11 +114,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
63
114
|
Nested cards stay strokeless; maximized dialog cards stay opaque.
|
|
64
115
|
- **Lists**: the active item is a subtle pill with an accent indicator bar.
|
|
65
116
|
- `.qds-field--required` is visual only; pair it with `required` or `aria-required` for assistive technology.
|
|
66
|
-
- **Breaking — variant IDs**: `mobile` is now `one` and `terminal` is now `term` (labels **One** and **Term**).
|
|
67
|
-
The runtime writes `qds-variant-one` / `qds-variant-term` and `data-qds-variant="one|term"`. `mobile` and
|
|
68
|
-
`terminal` are still accepted as legacy aliases (options, `setVariant`, persisted state), but the
|
|
69
|
-
`.qds-variant-mobile` / `.qds-variant-terminal` classes are no longer emitted or styled; update any consumer
|
|
70
|
-
selectors that target them. The `$variants` map in `./tokens/default` is keyed `one` / `term` as well.
|
|
71
117
|
- **Fluent geometry (Windows 11)**: `--qds-radius-control` is 4px and `--qds-radius-lg` (cards, dialogs, tables,
|
|
72
118
|
bordered lists) is 8px; list and navigation rows (`--qds-row-radius`) use the 4px control radius at 36px. Ink,
|
|
73
119
|
One and Term keep their own radii. Quasar's compile-time Sass radii (`$generic-border-radius` and friends) come
|
|
@@ -80,10 +126,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
80
126
|
light and dark. New tokens `--qds-color-primary-hover`, `--qds-fill-hover-mix`, `--qds-fill-pressed-mix`,
|
|
81
127
|
`--qds-fill-state-base` and `--qds-text-on-fill-pressed-mix`. Checked checkbox, radio and toggle hovers use
|
|
82
128
|
`--qds-color-primary-hover` too. Ink, One and Term keep their darker states.
|
|
83
|
-
- **Breaking — pressed primary**: `--qds-color-primary-pressed` is now derived from the fill-state tokens (a lighter
|
|
84
|
-
Fluent press) instead of the fixed dark `#0c3b5e`, and the `primary-pressed` key is removed from the `$palette` /
|
|
85
|
-
`$dark-palette` maps in `./tokens/default`. Consumers that read either should use `--qds-color-primary-dark` for
|
|
86
|
-
a darker primary.
|
|
87
129
|
- **Touch**: coarse pointers use a 32 / 40 / 48px control ramp (`--qds-control-size-lg` is now 48px) so dense,
|
|
88
130
|
default and large controls stay distinct; toggles, which size from it, grow to 48 × 24px. Dense toolbars read
|
|
89
131
|
the new `--qds-toolbar-dense-min-height` (40px; One 48px).
|
|
@@ -127,12 +169,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
127
169
|
≥ 3:1. Neutral buttons drop the amber tint; the active `QBtnToggle` segment takes the control hairline.
|
|
128
170
|
- **Term rows**: the 38 / 32px list and menu rows and 38px expansion headers apply to fine pointers only, so coarse
|
|
129
171
|
pointers get the 44px touch rows.
|
|
130
|
-
- **Breaking — One (One UI 8 neutral)**: One palette, surface, text, border, role-wash, focus-block and shadow token
|
|
131
|
-
values changed. Light page `#f2f2f2` with white blocks, dark true-black page with `#1a1a1a` blocks; the lavender
|
|
132
|
-
focus-block cast, Mica tint and card tints are gone. Calm blue accent (`#1b5fcf`, dark fill `#2f6fdc` with
|
|
133
|
-
light-blue `--qds-fg-brand`) and desaturated role fills with white text, ≥ 4.5:1 at rest and hover in both modes
|
|
134
|
-
(hover and press darken). Muted text, placeholders (including hovered fields), brand text and the focus ring meet
|
|
135
|
-
contrast on every One surface (fixes the 4.05 dark placeholder and 4.18 muted-on-focus-block gaps).
|
|
136
172
|
- **One surfaces**: cards and blocks separate by tone and roundness (24px radius, no stroke); nested cards, tiles,
|
|
137
173
|
carousels and settings cards take the grey `--qds-surface-focus-block`; dialogs (28px), floating bottom sheets
|
|
138
174
|
(all corners rounded, inset from the edges) and windows sit on `--qds-surface-transient`, and controls, cards and
|
|
@@ -170,6 +206,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
170
206
|
- Joined QBtnGroup / split-button segments draw their focus ring inside their own edge (in the on-fill ink on role
|
|
171
207
|
fills), so it no longer squares off against the next segment or overlaps nearby rows.
|
|
172
208
|
|
|
209
|
+
### Migration notes
|
|
210
|
+
|
|
211
|
+
- Replace `mobile` with `one` and `terminal` with `term` in `configureDesignSystem` options,
|
|
212
|
+
`setVariant` calls and any CSS that targets `.qds-variant-mobile` / `.qds-variant-terminal`.
|
|
213
|
+
The old IDs still resolve, but those two classes are no longer emitted or styled.
|
|
214
|
+
- Stop reading `--qds-color-primary-pressed` as a fixed dark value, and stop reading the
|
|
215
|
+
`primary-pressed` key from the `$palette` / `$dark-palette` maps in `./tokens/default`; use
|
|
216
|
+
`--qds-color-primary-dark` where you need a darker primary.
|
|
217
|
+
- Re-check any layout tuned against the previous One palette and surfaces: blocks, focus blocks
|
|
218
|
+
and role fills all moved, and the lavender cast and card tints are gone.
|
|
219
|
+
|
|
220
|
+
### Verification
|
|
221
|
+
|
|
222
|
+
- `pnpm verify:publish` (`css:budget`, `build`, `typecheck`, `test:runtime`, `pack:dry`) green;
|
|
223
|
+
`test:runtime` 40/40; `typecheck` 0 errors.
|
|
224
|
+
- CSS budgets under their reviewed caps on both the default and layered entries.
|
|
225
|
+
- Playwright gallery gate 804/804, and the pinned screenshot job 84/84 on two consecutive
|
|
226
|
+
non-update runs; shared catalog contracts and the Storybook proof green.
|
|
227
|
+
- The packed tarball was installed into a scratch consumer: all four Sass entries compile and the
|
|
228
|
+
runtime loads under SSR with no DOM.
|
|
229
|
+
|
|
173
230
|
## [@osmova/quasar-design-system 0.8.0-rc.3] — 2026-10-14
|
|
174
231
|
|
|
175
232
|
### Changed
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ The default language is Microsoft Fluent 2-inspired and neutral-first: colour ma
|
|
|
30
30
|
## Install
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
pnpm add @osmova/quasar-design-system
|
|
33
|
+
pnpm add @osmova/quasar-design-system
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
> **Built TS + source SCSS.** TypeScript runtime entrypoints ship pre-compiled as ESM
|
|
@@ -96,7 +96,7 @@ Optional modules stay out of the default runtime and CSS bundle. Install their n
|
|
|
96
96
|
`QdsWindow` wraps `@quasar/quasar-ui-qwindow` with QDS BEM chrome (`.qds-window`, `.qds-window__*`, `.qds-window--*`) while passing QWindow props, slots, methods, and events through to the native component.
|
|
97
97
|
|
|
98
98
|
```bash
|
|
99
|
-
pnpm add @quasar/quasar-ui-qwindow @osmova/quasar-design-system
|
|
99
|
+
pnpm add @quasar/quasar-ui-qwindow @osmova/quasar-design-system
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
```ts
|
|
@@ -195,6 +195,7 @@ The package is structured around `src/themes/`. For now there is one real theme,
|
|
|
195
195
|
- `ink`: paper-neutral editorial surfaces with charcoal type and coordinated pastel role washes.
|
|
196
196
|
- `one`: Samsung One UI-inspired neutral grey or true-black pages, rounded blocks, pill controls, a calm blue accent, and touch-friendly rhythm.
|
|
197
197
|
- `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
|
+
- `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.
|
|
198
199
|
- `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.
|
|
199
200
|
|
|
200
201
|
They are not separate brands — deliberate overlays over the same token system.
|
|
@@ -204,7 +205,7 @@ Choose the variant once at app startup and let the runtime keep the matching bod
|
|
|
204
205
|
```ts
|
|
205
206
|
configureDesignSystem(app, {
|
|
206
207
|
mode: 'system',
|
|
207
|
-
variant: 'ink', // fluent | ink | one | term | shadcn
|
|
208
|
+
variant: 'ink', // fluent | ink | one | term | shadcn | zen
|
|
208
209
|
})
|
|
209
210
|
```
|
|
210
211
|
|
|
@@ -212,7 +213,7 @@ Legacy inputs `air`, `glass`, and `studio` resolve to `fluent`; `feather` resolv
|
|
|
212
213
|
|
|
213
214
|
### Shadcn adoption and compatibility
|
|
214
215
|
|
|
215
|
-
The new `shadcn` styling requires **Quasar 2.35 or newer**. The package's existing `quasar: ^2.0.0` peer range is unchanged for existing variants; this is not a claim that shadcn is tested on every Quasar 2 release. These changes
|
|
216
|
+
The new `shadcn` styling requires **Quasar 2.35 or newer**. The package's existing `quasar: ^2.0.0` peer range is unchanged for existing variants; this is not a claim that shadcn is tested on every Quasar 2 release. These changes ship in `@osmova/quasar-design-system` `0.8.0` on the stable `latest` channel; the legacy `@bastvi/quasar-design-system` package remains on `0.7.0` and receives no further releases.
|
|
216
217
|
|
|
217
218
|
```ts
|
|
218
219
|
import {
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type CanonicalDesignSystemVariantName = 'fluent' | 'ink' | 'one' | 'term' | 'shadcn';
|
|
1
|
+
export type CanonicalDesignSystemVariantName = 'fluent' | 'ink' | 'one' | 'term' | 'shadcn' | 'zen';
|
|
2
2
|
export type LegacyDesignSystemVariantName = 'studio' | 'air' | 'glass' | 'feather' | 'mobile' | 'terminal';
|
|
3
3
|
export type BuiltInDesignSystemVariantName = CanonicalDesignSystemVariantName | LegacyDesignSystemVariantName;
|
|
4
4
|
export type DesignSystemVariantName = BuiltInDesignSystemVariantName | (string & {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gCAAgC,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gCAAgC,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAA;AACnG,MAAM,MAAM,6BAA6B,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;AAC1G,MAAM,MAAM,8BAA8B,GAAG,gCAAgC,GAAG,6BAA6B,CAAA;AAI7G,MAAM,MAAM,uBAAuB,GAAG,8BAA8B,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEpF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,uBAAuB,CAAA;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;CAC9C;AAED,eAAO,MAAM,kBAAkB,YAAY,CAAA;AAE3C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAMrB,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E;AAED,eAAO,MAAM,sBAAsB,EAqC9B,MAAM,CAAC,gCAAgC,EAAE,mBAAmB,CAAC,GAAG;IACnE,MAAM,EAAE,mBAAmB,CAAA;IAC3B,GAAG,EAAE,mBAAmB,CAAA;IACxB,KAAK,EAAE,mBAAmB,CAAA;IAC1B,OAAO,EAAE,mBAAmB,CAAA;IAC5B,MAAM,EAAE,mBAAmB,CAAA;IAC3B,QAAQ,EAAE,mBAAmB,CAAA;CAC9B,CAAA;AAiDD,eAAO,MAAM,aAAa,EAAE,iBAK3B,CAAA;AAED,eAAO,MAAM,oBAAoB;IAC/B,SAAA,CAAC,aAAa,CAAC,IAAI,CAAC,oBAAe;CAC3B,CAAA;AAEV,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,8BAA8B,CAKxG;AAID,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,uBAAuB,CAE1F"}
|
package/dist/themes/index.js
CHANGED
|
@@ -40,6 +40,12 @@ export const DESIGN_SYSTEM_VARIANTS = {
|
|
|
40
40
|
description: 'Opaque New York-inspired surfaces with five neutral base palettes.',
|
|
41
41
|
cssClass: 'qds-variant-shadcn',
|
|
42
42
|
},
|
|
43
|
+
zen: {
|
|
44
|
+
name: 'zen',
|
|
45
|
+
label: 'Zen',
|
|
46
|
+
description: 'Soft tinted paper blocks with a quiet reading rhythm, gentle depth and an essential boundary on every control.',
|
|
47
|
+
cssClass: 'qds-variant-zen',
|
|
48
|
+
},
|
|
43
49
|
};
|
|
44
50
|
const LEGACY_VARIANT_ALIASES = {
|
|
45
51
|
studio: {
|
|
@@ -89,7 +95,7 @@ for (const [name, variant] of Object.entries(LEGACY_VARIANT_ALIASES)) {
|
|
|
89
95
|
export const DEFAULT_THEME = {
|
|
90
96
|
name: DEFAULT_THEME_NAME,
|
|
91
97
|
label: 'Default',
|
|
92
|
-
description: 'Fluent 2 focused Quasar 2 design language with Ink, One, and
|
|
98
|
+
description: 'Fluent 2 focused Quasar 2 design language with Ink, One, Term, Shadcn, and Zen variants.',
|
|
93
99
|
variants: DESIGN_SYSTEM_VARIANTS,
|
|
94
100
|
};
|
|
95
101
|
export const DESIGN_SYSTEM_THEMES = {
|
|
@@ -97,6 +103,7 @@ export const DESIGN_SYSTEM_THEMES = {
|
|
|
97
103
|
};
|
|
98
104
|
export function isBuiltInDesignSystemVariantName(value) {
|
|
99
105
|
return value === 'fluent' || value === 'ink' || value === 'one' || value === 'term' || value === 'shadcn'
|
|
106
|
+
|| value === 'zen'
|
|
100
107
|
|| value === 'studio' || value === 'air' || value === 'glass' || value === 'feather'
|
|
101
108
|
|| value === 'mobile' || value === 'terminal';
|
|
102
109
|
}
|
package/dist/themes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAA;AAE3C,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACrC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAC/B,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IACjC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CACzB,CAAA;AAIV,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,CAAA;AACjE,CAAC;AAED,MAAM,CAAC,M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;AAC3E,sEAAsE;AACtE,MAAM,UAAU,yBAAyB,CAAC,KAAc;IACtD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;AACtD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osmova/quasar-design-system",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Opinionated Quasar 2 design system inspired by Fluent 2, Apple, and One UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -59,8 +59,16 @@
|
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsc -p tsconfig.build.json",
|
|
61
61
|
"typecheck": "vue-tsc --noEmit -p tsconfig.json",
|
|
62
|
-
"stories": "histoire dev",
|
|
63
|
-
"stories:build": "histoire build",
|
|
62
|
+
"stories": "pnpm build && histoire dev",
|
|
63
|
+
"stories:build": "pnpm build && histoire build",
|
|
64
|
+
"catalog:generate": "node scripts/catalog-generate.mjs",
|
|
65
|
+
"catalog:check": "node scripts/catalog-check.mjs",
|
|
66
|
+
"catalog:check:complete": "node scripts/catalog-check.mjs --complete",
|
|
67
|
+
"catalog:test": "node --test tests/catalog/*.test.mjs",
|
|
68
|
+
"catalog:storybook": "pnpm -C examples/storybook storybook",
|
|
69
|
+
"catalog:storybook:build": "pnpm -C examples/storybook build-storybook",
|
|
70
|
+
"catalog:storybook:typecheck": "pnpm -C examples/storybook typecheck",
|
|
71
|
+
"catalog:browser:test": "pnpm -C examples/storybook exec playwright test --config playwright.proof.config.ts",
|
|
64
72
|
"gallery:dev": "pnpm -C examples/gallery dev",
|
|
65
73
|
"gallery:build": "pnpm -C examples/gallery build",
|
|
66
74
|
"gallery:test": "pnpm -C examples/gallery test:visual",
|
|
@@ -72,7 +80,8 @@
|
|
|
72
80
|
"test:runtime:ssr": "node --test tests/runtime/*.test.mjs",
|
|
73
81
|
"test:runtime:colorjs": "node scripts/test-runtime-colorjs.mjs",
|
|
74
82
|
"test:runtime:fill-contrast": "node scripts/test-runtime-fill-contrast.mjs",
|
|
75
|
-
"test:runtime": "
|
|
83
|
+
"test:runtime:grammar:browser": "node tests/runtime/grammar-fixture-browser.mjs",
|
|
84
|
+
"test:runtime": "pnpm test:runtime:ssr && pnpm test:runtime:colorjs && pnpm test:runtime:fill-contrast && pnpm test:runtime:grammar:browser",
|
|
76
85
|
"pack:dry": "npm pack --dry-run --json",
|
|
77
86
|
"css:budget": "node scripts/css-budget.mjs",
|
|
78
87
|
"verify:publish": "pnpm css:budget && pnpm build && pnpm typecheck && pnpm test:runtime && pnpm pack:dry",
|
|
@@ -3,6 +3,7 @@ $banner-roles: (positive: positive, negative: negative, warning: warning, info:
|
|
|
3
3
|
$ink-term: ':is(.qds-ui.qds-variant-ink, .qds-ui .qds-variant-ink, .qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
|
|
4
4
|
$term: ':is(.qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
|
|
5
5
|
$one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
|
|
6
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
6
7
|
|
|
7
8
|
@mixin styles {
|
|
8
9
|
.qds-ui .q-breadcrumbs { color: var(--qds-fg-muted); font-size: var(--qds-font-size-body1); }
|
|
@@ -171,4 +172,10 @@ $one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
|
|
|
171
172
|
.q-banner:is(.bg-#{$role}, .text-#{$role}) .q-banner__avatar { color: var(--qds-fg-#{$role}); }
|
|
172
173
|
}
|
|
173
174
|
}
|
|
175
|
+
|
|
176
|
+
#{$zen} .q-btn-group { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-control); overflow: hidden; box-shadow: none; }
|
|
177
|
+
#{$zen} .q-btn-group > .q-btn { border-radius: 0; box-shadow: none; }
|
|
178
|
+
#{$zen} .q-btn-toggle { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-full); background: var(--qds-bg-surface-1); padding: 0.125rem; }
|
|
179
|
+
#{$zen} .q-btn-toggle > .q-btn { border: 0; border-radius: var(--qds-radius-full); background: transparent; box-shadow: none; }
|
|
180
|
+
#{$zen} .q-btn-toggle > .q-btn.q-btn--active { background: var(--qds-control-fill-default); box-shadow: var(--qds-shadow-sm); }
|
|
174
181
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use 'button';
|
|
2
2
|
@use '../importance';
|
|
3
3
|
|
|
4
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
5
|
+
|
|
4
6
|
@mixin styles {
|
|
5
7
|
.qds-ui .q-badge {
|
|
6
8
|
display: inline-flex;
|
|
@@ -92,4 +94,7 @@
|
|
|
92
94
|
#{button.$shadcn} .q-badge:is(#{button.$accent-fills}).qds-tonal { --qds-badge-on-fill: var(--_qds-fg); }
|
|
93
95
|
#{button.$shadcn} .q-badge:is(#{button.$accent-fills}):not(.qds-tonal):is(a, [tabindex]):hover { --qds-badge-fill: var(--_qds-hover); }
|
|
94
96
|
#{button.$shadcn} .q-badge:is(#{button.$accent-fills}):not(.qds-tonal):is(a, [tabindex]):active { --qds-badge-fill: var(--_qds-pressed); }
|
|
97
|
+
|
|
98
|
+
#{$zen} .q-badge { border-radius: var(--qds-radius-full); font-weight: var(--qds-font-weight-semibold); }
|
|
99
|
+
#{$zen} .q-badge:not([class*='bg-']) { border: 1px solid var(--qds-stroke-strong); background: var(--qds-bg-surface-1); color: var(--qds-fg-default); }
|
|
95
100
|
}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use '../materials';
|
|
4
4
|
@use '../importance';
|
|
5
|
+
@use 'variants/mechanics';
|
|
6
|
+
@use 'variants/zen';
|
|
7
|
+
@use 'variants/atrium';
|
|
5
8
|
|
|
6
9
|
$roles: (
|
|
7
10
|
primary: (hover: var(--qds-color-primary-hover), pressed: var(--qds-color-primary-pressed)),
|
|
@@ -43,7 +46,14 @@ $role-texts: ();
|
|
|
43
46
|
$role-texts: list.append($role-texts, '.text-#{$role}', comma);
|
|
44
47
|
}
|
|
45
48
|
|
|
46
|
-
|
|
49
|
+
// Legacy profiles still share Fluent grammar. Only the independent hook omits it.
|
|
50
|
+
@mixin styles($grammar: compatibility) {
|
|
51
|
+
@if $grammar == compatibility { @include compatibility-styles; @include zen.button; @include atrium.button; @include atrium.capability; }
|
|
52
|
+
@else if $grammar == independent { @include mechanics.button; @content; }
|
|
53
|
+
@else { @error 'Unknown button grammar: #{$grammar}'; }
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@mixin compatibility-styles {
|
|
47
57
|
.qds-ui .q-btn {
|
|
48
58
|
border: var(--qds-border-width-control) solid transparent;
|
|
49
59
|
border-radius: var(--qds-button-radius);
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
$ink: ':is(.qds-ui.qds-variant-ink, .qds-ui .qds-variant-ink)';
|
|
5
5
|
$one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
|
|
6
6
|
$term: ':is(.qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
|
|
7
|
+
$atrium: ':is(.qds-ui.qds-variant-atrium, .qds-ui .qds-variant-atrium)';
|
|
8
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
7
9
|
$shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
|
|
8
10
|
$framed: '.q-card--bordered, .qds-card--readable, .qds-card--contrast, .qds-card--opaque, .qds-card--solid';
|
|
9
11
|
$explicit-dark: '.qds-ui.qds-theme-light :is(.q-card--dark, .q-table--dark, .q-tree--dark, .q-stepper--dark, .q-list--dark, .q-menu--dark, .q-uploader--dark, .q-date--dark, .q-time--dark)';
|
|
@@ -111,6 +113,27 @@ $explicit-dark: '.qds-ui.qds-theme-light :is(.q-card--dark, .q-table--dark, .q-t
|
|
|
111
113
|
#{$term} :is(.q-card, .qds-card) :is(.q-card, .qds-card, .qds-tile):where(:not(.qds-material, .qds-card--transient)) { background: var(--qds-bg-surface-1); }
|
|
112
114
|
#{$term} :is(.q-card, .qds-card) :is(.q-card, .qds-card, .qds-tile):where(:not(#{$framed})) { border: var(--qds-border-width-control) solid var(--qds-card-stroke); }
|
|
113
115
|
|
|
116
|
+
// Panels float: one hairline, a soft drop, no ruled header.
|
|
117
|
+
#{$atrium} :is(.q-card, .qds-card, .qds-tile) { border-color: var(--qds-border-subtle); box-shadow: var(--qds-shadow-md); }
|
|
118
|
+
#{$atrium} .q-card > .q-card__section--vert { padding: var(--qds-space-md) var(--qds-space-lg); }
|
|
119
|
+
#{$atrium} .q-card > .q-card__section:is(.qds-card__header, .qds-card-header) { padding: var(--qds-space-md) var(--qds-space-lg); border-block-end-color: transparent; }
|
|
120
|
+
#{$atrium} .q-card > .q-card__actions { justify-content: flex-end; gap: var(--qds-space-sm); padding: 0 var(--qds-space-lg) var(--qds-space-md); }
|
|
121
|
+
#{$atrium} .q-card > .q-card__actions .q-btn + .q-btn { margin-inline-start: 0; }
|
|
122
|
+
#{$atrium} :is(.q-card, .qds-card) :is(.q-card, .qds-card, .qds-tile) { background: var(--qds-bg-surface-1); border-radius: var(--qds-radius-control); box-shadow: none; }
|
|
123
|
+
#{$atrium} .q-card.q-card--flat { box-shadow: none; }
|
|
124
|
+
#{$atrium} .q-card.q-card--square { border-radius: 0; }
|
|
125
|
+
|
|
126
|
+
// Blocks nest by tone, never by a second drop.
|
|
127
|
+
#{$zen} :is(.q-card, .qds-card, .qds-tile) { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: var(--qds-bg-card); box-shadow: var(--qds-shadow-sm); }
|
|
128
|
+
#{$zen} .q-card > .q-card__section--vert { padding: var(--qds-space-md) var(--qds-space-lg); }
|
|
129
|
+
#{$zen} .q-card > .q-card__section:is(.qds-card__header, .qds-card-header) { padding: var(--qds-space-md) var(--qds-space-lg); border-block-end: 1px solid var(--qds-stroke-strong); background: none; }
|
|
130
|
+
#{$zen} .q-card > .q-card__actions { gap: var(--qds-space-sm); padding: var(--qds-space-sm) var(--qds-space-lg) var(--qds-space-md); }
|
|
131
|
+
#{$zen} .q-card > .q-card__actions .q-btn + .q-btn { margin-inline-start: 0; }
|
|
132
|
+
#{$zen} :is(.q-card, .qds-card) :is(.q-card, .qds-card, .qds-tile) { border-radius: var(--qds-radius-control); background: var(--qds-bg-surface-1); box-shadow: none; }
|
|
133
|
+
#{$zen} .q-card.q-card--flat { box-shadow: none; }
|
|
134
|
+
#{$zen} .q-card.q-card--square { border-radius: 0; }
|
|
135
|
+
#{$zen} .q-card:focus-visible { outline: var(--qds-focus-ring-width) solid var(--qds-stroke-focus); outline-offset: var(--qds-focus-ring-offset); }
|
|
136
|
+
|
|
114
137
|
#{$shadcn} :is(.q-card, .qds-card, .qds-tile) { color: var(--qds-shadcn-card-foreground); }
|
|
115
138
|
#{$shadcn} .q-card > .q-card__section--vert { padding: var(--qds-space-lg); }
|
|
116
139
|
#{$shadcn} .q-card > .q-card__section--vert:where(:not(.qds-card__header, .qds-card-header)) + .q-card__section--vert { padding-block-start: 0; }
|
|
@@ -11,6 +11,7 @@ $tonal-fills: ();
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
$tonal-fills: map.set($tonal-fills, 'grey', (fg: var(--qds-fg-default), bg: var(--qds-bg-layer)));
|
|
14
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
14
15
|
|
|
15
16
|
@mixin styles {
|
|
16
17
|
.qds-ui .q-chip {
|
|
@@ -154,4 +155,8 @@ $tonal-fills: map.set($tonal-fills, 'grey', (fg: var(--qds-fg-default), bg: var(
|
|
|
154
155
|
#{button.$shadcn} .q-chip:is(#{button.$accent-fills}).qds-solid.q-chip--clickable:not(.disabled):hover { --qds-chip-fill: var(--_qds-hover); }
|
|
155
156
|
#{button.$shadcn} .q-chip:is(#{button.$accent-fills}).qds-solid.q-chip--clickable:not(.disabled):active { --qds-chip-fill: var(--_qds-pressed); }
|
|
156
157
|
@media (forced-colors: active) { #{button.$shadcn} .q-chip { border-color: ButtonText; } }
|
|
158
|
+
|
|
159
|
+
#{$zen} .q-chip { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-full); background: var(--qds-bg-surface-1); }
|
|
160
|
+
#{$zen} .q-chip:is([class*='bg-']) { border-color: transparent; }
|
|
161
|
+
#{$zen} .q-chip.q-chip--clickable:not(.disabled):hover { background: var(--qds-bg-surface-2); }
|
|
157
162
|
}
|
|
@@ -4,6 +4,7 @@ $one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
|
|
|
4
4
|
$term: ':is(.qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
|
|
5
5
|
$shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
|
|
6
6
|
$role-fills: '.bg-primary, .bg-secondary, .bg-accent, .bg-positive, .bg-negative, .bg-warning, .bg-info';
|
|
7
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
7
8
|
|
|
8
9
|
@mixin styles {
|
|
9
10
|
.qds-ui :is(.q-stepper, .q-uploader) {
|
|
@@ -279,4 +280,13 @@ $role-fills: '.bg-primary, .bg-secondary, .bg-accent, .bg-positive, .bg-negative
|
|
|
279
280
|
.q-uploader__header:is(#{$role-fills}) .q-btn:hover { background: var(--_qds-uploader-hover); }
|
|
280
281
|
.q-uploader__header:is(#{$role-fills}) .q-btn:active { background: var(--_qds-uploader-pressed); }
|
|
281
282
|
}
|
|
283
|
+
|
|
284
|
+
#{$zen} :is(.q-stepper, .q-uploader, .q-editor, .q-splitter) { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: var(--qds-bg-card); box-shadow: var(--qds-shadow-sm); }
|
|
285
|
+
#{$zen} .q-stepper__tab--active .q-stepper__dot { background: var(--qds-color-primary); color: var(--qds-text-on-solid); }
|
|
286
|
+
#{$zen} .q-carousel { border-radius: var(--qds-radius-lg); background: var(--qds-bg-surface-1); }
|
|
287
|
+
// A tonal bubble must also rebind the on-fill foreground, or the content utility keeps the on-solid ink.
|
|
288
|
+
#{$zen} .q-message-sent .q-message-text { --qds-chat-bubble-bg: var(--qds-surface-brand-soft); --qds-chat-bubble-fg: var(--qds-fg-default); border-color: var(--qds-stroke-strong); }
|
|
289
|
+
#{$zen} .q-message-text--received { border: 1px solid var(--qds-stroke-strong); background: var(--qds-bg-card); }
|
|
290
|
+
#{$zen} .q-timeline__subtitle { color: var(--qds-fg-muted); }
|
|
291
|
+
#{$zen} .q-img { border-radius: var(--qds-radius-control); }
|
|
282
292
|
}
|
|
@@ -2,6 +2,7 @@ $one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
|
|
|
2
2
|
$shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
|
|
3
3
|
$subpage-tabs: ':is(.qds-subpage-tabs.q-tabs, .qds-subpage-tabs .q-tabs)';
|
|
4
4
|
$tile-roles: (alert: negative, warning: warning, positive: positive);
|
|
5
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
5
6
|
|
|
6
7
|
@mixin styles {
|
|
7
8
|
// Multi-line rows align to the title line; single-line rows stay centred.
|
|
@@ -158,4 +159,11 @@ $tile-roles: (alert: negative, warning: warning, positive: positive);
|
|
|
158
159
|
#{$shadcn} .qds-tile--#{$modifier} > :is(.qds-tile__meta, .qds-tile__spark) { color: var(--qds-fg-#{$role}); }
|
|
159
160
|
#{$shadcn} .qds-tile--#{$modifier} > .qds-tile__icon { color: var(--qds-fg-#{$role}); background: transparent; }
|
|
160
161
|
}
|
|
162
|
+
|
|
163
|
+
#{$zen} .qds-menu-row__title { font-weight: var(--qds-font-weight-semibold); }
|
|
164
|
+
#{$zen} .qds-menu-row__caption, #{$zen} .qds-menu-row__description { color: var(--qds-fg-muted); }
|
|
165
|
+
#{$zen} .qds-subpage-tabs .q-tab--active { color: var(--qds-fg-brand); }
|
|
166
|
+
#{$zen} .qds-table-segmented .q-btn-toggle { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-full); background: var(--qds-bg-surface-1); }
|
|
167
|
+
#{$zen} .qds-tile { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: var(--qds-bg-card); box-shadow: var(--qds-shadow-sm); }
|
|
168
|
+
#{$zen} .qds-tile__label { color: var(--qds-fg-muted); }
|
|
161
169
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
@use '../importance';
|
|
3
3
|
|
|
4
4
|
$one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
|
|
5
|
+
$atrium: ':is(.qds-ui.qds-variant-atrium, .qds-ui .qds-variant-atrium)';
|
|
6
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
5
7
|
$shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
|
|
6
8
|
|
|
7
9
|
@mixin styles {
|
|
@@ -66,4 +68,18 @@ $shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
|
|
|
66
68
|
#{$shadcn} .q-dialog__inner > .q-card > .q-card__actions { gap: var(--qds-space-sm); }
|
|
67
69
|
@media (prefers-reduced-motion: reduce) { #{$shadcn} .q-dialog__inner:is(.q-transition--scale-enter-active, .q-transition--scale-leave-active), #{$shadcn} .q-dialog__inner:is(.q-transition--scale-enter-active, .q-transition--scale-leave-active) > * { transition: none; } }
|
|
68
70
|
@media (forced-colors: active) { #{$shadcn} .q-dialog__inner > .q-card { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; } }
|
|
71
|
+
|
|
72
|
+
// A dialog is the same floating panel as a card, lifted further off the page.
|
|
73
|
+
#{$atrium} .q-dialog__inner--standard > .q-card { border-color: var(--qds-border-subtle); border-radius: calc(var(--qds-card-radius) + 0.25rem); box-shadow: var(--qds-shadow-lg); }
|
|
74
|
+
#{$atrium} .q-dialog__inner--maximized > .q-card { border: 0; box-shadow: none; }
|
|
75
|
+
#{$atrium} .q-dialog__title { font-weight: var(--qds-font-weight-semibold); letter-spacing: -0.01em; }
|
|
76
|
+
#{$atrium} .q-dialog__message { color: var(--qds-fg-muted); }
|
|
77
|
+
#{$atrium} .q-dialog__inner > .q-card > .q-card__actions { justify-content: flex-end; gap: var(--qds-space-sm); }
|
|
78
|
+
#{$atrium} .q-bottom-sheet { border-start-start-radius: var(--qds-radius-lg); border-start-end-radius: var(--qds-radius-lg); }
|
|
79
|
+
|
|
80
|
+
// The block language lifted off the page; zen overlays stay opaque.
|
|
81
|
+
#{$zen} .q-dialog__inner > .q-card { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: var(--qds-bg-flyout); box-shadow: var(--qds-shadow-lg); }
|
|
82
|
+
#{$zen} .q-dialog__inner--maximized > .q-card { border: 0; border-radius: 0; box-shadow: none; }
|
|
83
|
+
#{$zen} .q-bottom-sheet { border-start-start-radius: var(--qds-radius-lg); border-start-end-radius: var(--qds-radius-lg); background: var(--qds-bg-flyout); }
|
|
84
|
+
|
|
69
85
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
$ink: ':is(.qds-ui.qds-variant-ink, .qds-ui .qds-variant-ink)';
|
|
2
2
|
$one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
|
|
3
|
+
$atrium: ':is(.qds-ui.qds-variant-atrium, .qds-ui .qds-variant-atrium)';
|
|
4
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
3
5
|
$shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
|
|
4
6
|
|
|
5
7
|
@mixin styles {
|
|
@@ -24,6 +26,25 @@ $shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
|
|
|
24
26
|
#{$one} .q-drawer--mini { background: var(--qds-card-fill); }
|
|
25
27
|
#{$one} .q-drawer--mini .q-list { margin: 0; background: transparent; }
|
|
26
28
|
|
|
29
|
+
// The sidebar is the same translucent sheet as the header, with capsule rows.
|
|
30
|
+
#{$atrium} .q-drawer {
|
|
31
|
+
background: var(--qds-material-thin-bg);
|
|
32
|
+
backdrop-filter: var(--qds-material-thin-filter);
|
|
33
|
+
-webkit-backdrop-filter: var(--qds-material-thin-filter);
|
|
34
|
+
}
|
|
35
|
+
#{$atrium} .q-drawer.q-drawer--bordered { border-color: var(--qds-border-subtle); }
|
|
36
|
+
#{$atrium} .q-drawer .q-list { padding: var(--qds-space-sm); }
|
|
37
|
+
#{$atrium} .q-drawer .q-item { padding-inline: var(--qds-space-sm); border-radius: var(--qds-radius-control); }
|
|
38
|
+
#{$atrium} .q-drawer .q-layout__shadow::after { box-shadow: none; }
|
|
39
|
+
#{$atrium} .q-drawer--on-top .q-layout__shadow::after { box-shadow: var(--qds-shadow-lg); }
|
|
40
|
+
#{$atrium} .q-drawer__backdrop { background: var(--qds-bg-overlay); }
|
|
41
|
+
|
|
42
|
+
// A calm sheet beside the page, bounded by its edge rather than a shadow.
|
|
43
|
+
#{$zen} .q-drawer { border-color: var(--qds-stroke-strong); background: var(--qds-bg-card); box-shadow: none; }
|
|
44
|
+
#{$zen} .q-drawer .q-item { border-radius: var(--qds-radius-control); }
|
|
45
|
+
#{$zen} .q-drawer__backdrop { background: var(--qds-bg-overlay); }
|
|
46
|
+
|
|
47
|
+
|
|
27
48
|
#{$shadcn} .q-drawer { color: var(--qds-shadcn-sidebar-foreground); background: var(--qds-shadcn-sidebar); }
|
|
28
49
|
#{$shadcn} .q-drawer.q-drawer--bordered { border-color: var(--qds-shadcn-sidebar-border); }
|
|
29
50
|
#{$shadcn} .q-drawer .q-list { padding: var(--qds-space-sm); }
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
@use '../importance';
|
|
2
|
+
@use 'variants/mechanics';
|
|
3
|
+
@use 'variants/zen';
|
|
4
|
+
@use 'variants/atrium';
|
|
5
|
+
|
|
1
6
|
$one-field: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one) :is(.q-field--outlined, .q-field--filled)';
|
|
2
7
|
|
|
3
|
-
|
|
8
|
+
// Compatibility owns label bands, focus bars and every old-profile override.
|
|
9
|
+
@mixin styles($grammar: compatibility) {
|
|
10
|
+
@if $grammar == compatibility { @include compatibility-styles; @include zen.field; @include atrium.field; }
|
|
11
|
+
@else if $grammar == independent { @include mechanics.field; @content; }
|
|
12
|
+
@else { @error 'Unknown field grammar: #{$grammar}'; }
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin compatibility-styles {
|
|
4
16
|
.qds-ui .q-field {
|
|
5
17
|
--qds-field-height: var(--qds-field-size-md);
|
|
6
18
|
--qds-field-band: calc(var(--qds-line-height-body1) + var(--qds-field-label-gap));
|
|
@@ -394,7 +406,10 @@ $one-field: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one) :is(.q-field
|
|
|
394
406
|
.q-field .q-field__input { color: var(--qds-fg-default); font: inherit; }
|
|
395
407
|
.q-field :is(.q-field__native, .q-field__input)::selection { color: var(--qds-text-on-primary); background: var(--qds-color-primary); }
|
|
396
408
|
.q-field .q-field__focusable-action { opacity: 1; border-radius: var(--qds-radius-xs); }
|
|
397
|
-
.q-field .q-field__focusable-action:focus-visible {
|
|
409
|
+
.q-field .q-field__focusable-action:focus-visible {
|
|
410
|
+
@include importance.declarations { outline: var(--qds-focus-ring-width) solid var(--qds-stroke-focus) !important; }
|
|
411
|
+
outline-offset: var(--qds-focus-ring-offset);
|
|
412
|
+
}
|
|
398
413
|
.q-field .q-field__counter { color: var(--qds-fg-muted); font-variant-numeric: tabular-nums; }
|
|
399
414
|
.q-field--error .q-field__label { color: var(--qds-fg-negative); }
|
|
400
415
|
.q-field--error:is(.qds-field--positive, .qds-field--warning) .q-field__control::before { border-color: var(--qds-stroke-error); }
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// Groups of three or more unlabelled children wrap on narrow screens; pairs and labelled groups stay on one row.
|
|
4
4
|
$wrap: '.qds-ui .qds-field-group:where(:has(> :nth-child(3)):not(:has(> .q-field--labeled)))';
|
|
5
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
5
6
|
|
|
6
7
|
@mixin styles {
|
|
7
8
|
.qds-ui .qds-form-field {
|
|
@@ -267,4 +268,11 @@ $wrap: '.qds-ui .qds-field-group:where(:has(> :nth-child(3)):not(:has(> .q-field
|
|
|
267
268
|
.qds-settings-card:is(a, button, [role='button']):focus-visible { outline: var(--qds-focus-ring-width) solid var(--qds-stroke-focus); }
|
|
268
269
|
.qds-field--dropzone.q-field--disabled .q-field__control:has(.q-file__dnd) { background: var(--qds-control-fill-disabled); }
|
|
269
270
|
}
|
|
271
|
+
|
|
272
|
+
#{$zen} .qds-form-field__label { color: var(--qds-fg-default); font-weight: var(--qds-font-weight-semibold); }
|
|
273
|
+
#{$zen} :is(.qds-form-field__hint, .qds-form-field__description) { color: var(--qds-fg-muted); }
|
|
274
|
+
#{$zen} .qds-field-group > :is(.q-field, .q-btn) { border-radius: 0; }
|
|
275
|
+
#{$zen} .qds-field--dropzone .q-field__control { border-style: dashed; background: var(--qds-bg-surface-1); box-shadow: none; }
|
|
276
|
+
#{$zen} .qds-settings-card { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: var(--qds-bg-card); box-shadow: var(--qds-shadow-sm); }
|
|
277
|
+
#{$zen} .qds-settings-group > .qds-settings-card + .qds-settings-card { margin-block-start: var(--qds-space-sm); }
|
|
270
278
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
$one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
|
|
3
3
|
$shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
|
|
4
4
|
$shadcn-roles: ':is(.bg-primary, .bg-secondary, .bg-accent, .bg-positive, .bg-negative, .bg-warning, .bg-info)';
|
|
5
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
5
6
|
|
|
6
7
|
@mixin styles {
|
|
7
8
|
.qds-ui .q-option-group {
|
|
@@ -275,4 +276,13 @@ $shadcn-roles: ':is(.bg-primary, .bg-secondary, .bg-accent, .bg-positive, .bg-ne
|
|
|
275
276
|
:is(.q-date__header, .q-time__header)#{$shadcn-roles} :is(.q-date__header-link, .q-time__link):hover { background: var(--_qds-hover); }
|
|
276
277
|
:is(.q-date__header, .q-time__header)#{$shadcn-roles} :is(.q-date__header-link, .q-time__link):active { background: var(--_qds-pressed); }
|
|
277
278
|
}
|
|
279
|
+
|
|
280
|
+
#{$zen} .q-option-group--inline { gap: var(--qds-space-md); }
|
|
281
|
+
#{$zen} .qds-option-group--card .q-radio, #{$zen} .qds-option-group--card .q-checkbox { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: var(--qds-bg-card); box-shadow: var(--qds-shadow-sm); }
|
|
282
|
+
#{$zen} .qds-option-group--card :is(.q-radio, .q-checkbox).qds-active { border-color: var(--qds-color-primary); background: var(--qds-surface-brand-soft); box-shadow: none; }
|
|
283
|
+
#{$zen} .qds-pin .q-field__control { justify-content: center; }
|
|
284
|
+
#{$zen} :is(.q-date, .q-color-picker) { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); box-shadow: var(--qds-shadow-sm); }
|
|
285
|
+
// Zen's generous control sizing overruns the picker's fixed shell at narrow widths.
|
|
286
|
+
#{$zen} .q-date__content { width: 100%; min-width: 0; }
|
|
287
|
+
#{$zen} .q-date__arrow { width: auto; --qds-button-dense-min-height: 1.75rem; }
|
|
278
288
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
$one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
|
|
2
|
+
$atrium: ':is(.qds-ui.qds-variant-atrium, .qds-ui .qds-variant-atrium)';
|
|
3
|
+
$zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
|
|
2
4
|
$shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
|
|
3
5
|
$nav-parent: ':is(.q-drawer, nav) .q-expansion-item:is(.q-expansion-item--collapsed, .q-drawer--mini *):has(.q-item--active) > .q-expansion-item__container > .q-item';
|
|
4
6
|
$rail: ".qds-ui .q-item:is(.q-item--active, [aria-selected='true'])::before, .qds-ui #{$nav-parent}::before";
|
|
@@ -108,4 +110,28 @@ $rail: ".qds-ui .q-item:is(.q-item--active, [aria-selected='true'])::before, .qd
|
|
|
108
110
|
@media (forced-colors: active) {
|
|
109
111
|
#{$shadcn} .q-item:focus-visible::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; outline: var(--qds-focus-ring-width) solid Highlight; outline-offset: calc(-1 * var(--qds-focus-ring-width)); }
|
|
110
112
|
}
|
|
113
|
+
|
|
114
|
+
// A grouped list is one inset block, separators starting at the row text.
|
|
115
|
+
#{$atrium} .q-list--bordered { padding: 0; overflow: hidden; background: var(--qds-surface-0); border-color: var(--qds-border-subtle); }
|
|
116
|
+
#{$atrium} .q-list--separator > .q-item-type + .q-item-type { margin-inline-start: var(--qds-space-md); padding-inline-start: 0; }
|
|
117
|
+
#{$atrium} .q-item { padding-inline: var(--qds-space-md); border-radius: var(--qds-radius-control); }
|
|
118
|
+
#{$atrium} .q-list--bordered > .q-item { border-radius: 0; }
|
|
119
|
+
#{$atrium} .q-item:is(.q-item--active, [aria-selected='true']) { color: var(--qds-fg-brand); background-color: var(--qds-surface-brand-soft); }
|
|
120
|
+
#{$atrium} .q-item:is(.q-item--active, [aria-selected='true'])::before,
|
|
121
|
+
#{$atrium} #{$nav-parent}::before { display: none; }
|
|
122
|
+
#{$atrium} .q-list .q-item__label--header { padding: var(--qds-space-md) var(--qds-space-md) var(--qds-space-xs); color: var(--qds-fg-muted); font-size: var(--qds-font-size-caption); font-weight: var(--qds-font-weight-semibold); }
|
|
123
|
+
#{$atrium} .q-item .q-item__section--side > .q-icon { color: var(--qds-fg-muted); font-size: var(--qds-control-icon-size-md); }
|
|
124
|
+
#{$atrium} .q-expansion-item { border-radius: var(--qds-radius-lg); }
|
|
125
|
+
// A reading list is one bounded block; the active row is a tinted band, not a rail.
|
|
126
|
+
#{$zen} .q-list--bordered { padding: 0; overflow: hidden; border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: var(--qds-bg-card); }
|
|
127
|
+
#{$zen} .q-item { min-height: var(--qds-list-item-min-height); padding-inline: var(--qds-space-md); border-radius: var(--qds-radius-control); }
|
|
128
|
+
#{$zen} .q-list--bordered > .q-item { border-radius: 0; }
|
|
129
|
+
#{$zen} .q-list--separator > .q-item-type + .q-item-type { border-block-start: 1px solid var(--qds-stroke-strong); }
|
|
130
|
+
#{$zen} .q-item:not(.disabled):hover { background-color: var(--qds-bg-surface-1); }
|
|
131
|
+
#{$zen} .q-item:is(.q-item--active, [aria-selected='true']) { color: var(--qds-fg-brand); background-color: var(--qds-surface-brand-soft); }
|
|
132
|
+
#{$zen} .q-item:is(.q-item--active, [aria-selected='true'])::before,
|
|
133
|
+
#{$zen} #{$nav-parent}::before { display: none; }
|
|
134
|
+
#{$zen} .q-list .q-item__label--header { padding: var(--qds-space-md) var(--qds-space-md) var(--qds-space-xs); color: var(--qds-fg-muted); font-size: var(--qds-font-size-caption); font-weight: var(--qds-font-weight-semibold); }
|
|
135
|
+
#{$zen} .q-item .q-item__section--side > .q-icon { color: var(--qds-fg-muted); }
|
|
136
|
+
#{$zen} .q-expansion-item { border-radius: var(--qds-radius-lg); }
|
|
111
137
|
}
|