@osmova/quasar-design-system 0.8.0-rc.3 → 0.8.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 (37) hide show
  1. package/CHANGELOG.md +64 -16
  2. package/README.md +5 -4
  3. package/dist/themes/index.d.ts +1 -1
  4. package/dist/themes/index.d.ts.map +1 -1
  5. package/dist/themes/index.js +8 -1
  6. package/dist/themes/index.js.map +1 -1
  7. package/package.json +13 -4
  8. package/src/css/components/_actions.scss +7 -0
  9. package/src/css/components/_badge.scss +5 -0
  10. package/src/css/components/_button.scss +11 -1
  11. package/src/css/components/_card.scss +23 -0
  12. package/src/css/components/_chip.scss +5 -0
  13. package/src/css/components/_complex-media.scss +10 -0
  14. package/src/css/components/_compositions.scss +8 -0
  15. package/src/css/components/_dialog.scss +16 -0
  16. package/src/css/components/_drawer.scss +21 -0
  17. package/src/css/components/_field.scss +17 -2
  18. package/src/css/components/_form-field.scss +8 -0
  19. package/src/css/components/_forms.scss +10 -0
  20. package/src/css/components/_list.scss +26 -0
  21. package/src/css/components/_loading-data.scss +4 -0
  22. package/src/css/components/_menu.scss +11 -1
  23. package/src/css/components/_notification.scss +4 -0
  24. package/src/css/components/_pagination.scss +4 -0
  25. package/src/css/components/_plugins.scss +10 -0
  26. package/src/css/components/_popup.scss +3 -0
  27. package/src/css/components/_rating.scss +4 -0
  28. package/src/css/components/_selection.scss +29 -0
  29. package/src/css/components/_table.scss +22 -0
  30. package/src/css/components/_tabs.scss +12 -1
  31. package/src/css/components/_toolbar.scss +23 -0
  32. package/src/css/components/variants/_atrium.scss +123 -0
  33. package/src/css/components/variants/_mechanics.scss +22 -0
  34. package/src/css/components/variants/_zen.scss +147 -0
  35. package/src/themes/default.scss +141 -0
  36. package/src/themes/index.ts +9 -2
  37. package/src/tokens/_default.scss +24 -1
@@ -5,6 +5,7 @@ $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
7
  $shadcn: ':is(.qds-ui.qds-variant-shadcn, .qds-ui .qds-variant-shadcn)';
8
+ $zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
8
9
 
9
10
  @mixin styles {
10
11
  .qds-ui :is(.q-ajax-bar, .q-loading-bar) { background: var(--qds-color-primary); box-shadow: none; }
@@ -125,4 +126,7 @@ $shadcn: ':is(.qds-ui.qds-variant-shadcn, .qds-ui .qds-variant-shadcn)';
125
126
  .q-skeleton--anim { animation: none; }
126
127
  }
127
128
  }
129
+
130
+ #{$zen} .q-skeleton { border-radius: var(--qds-radius-control); background: var(--qds-bg-surface-1); }
131
+ #{$zen} .q-linear-progress__track { background: var(--qds-bg-surface-2); }
128
132
  }
@@ -1,10 +1,20 @@
1
1
  @use '../materials';
2
+ @use 'variants/mechanics';
3
+ @use 'variants/zen';
4
+ @use 'variants/atrium';
2
5
 
3
6
  $one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
4
7
  $term: ':is(.qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
5
8
  $shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
6
9
 
7
- @mixin styles {
10
+ // Native Quasar owns portal positioning; compatibility still owns acrylic/rows.
11
+ @mixin styles($grammar: compatibility) {
12
+ @if $grammar == compatibility { @include compatibility-styles; @include zen.menu; @include atrium.menu; }
13
+ @else if $grammar == independent { @include mechanics.menu; @content; }
14
+ @else { @error 'Unknown menu grammar: #{$grammar}'; }
15
+ }
16
+
17
+ @mixin compatibility-styles {
8
18
  // QMenu `fit` pins min-width to the anchor inline; the anchor gap is Quasar's `offset` prop.
9
19
  .qds-ui .q-menu {
10
20
  min-width: 8rem;
@@ -5,6 +5,7 @@ $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
7
  $shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
8
+ $zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
8
9
 
9
10
  @mixin styles {
10
11
  .qds-ui .q-notification {
@@ -71,4 +72,7 @@ $shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
71
72
  #{$shadcn} .q-notification:has(.q-btn--dense) { min-height: var(--qds-control-size-lg); }
72
73
  @media (prefers-reduced-motion: reduce) { #{$shadcn} .q-notification { transition: none; } #{$shadcn} .q-notification__badge { animation: none; } #{$shadcn} .q-notification__progress { display: none; } }
73
74
  @media (forced-colors: active) { #{$shadcn} .q-notification { --qds-notify-bg: Canvas; --qds-fg-default: CanvasText; border-color: CanvasText; box-shadow: none; } #{$shadcn} :is(.q-notification__icon, .q-notification__spinner) { color: CanvasText; } #{$shadcn} .q-notification__badge { background: Highlight; color: HighlightText; } #{$shadcn} .q-notification__progress { background: Highlight; } }
75
+
76
+ #{$zen} .q-notification { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: var(--qds-bg-flyout); color: var(--qds-fg-default); box-shadow: var(--qds-shadow-md); backdrop-filter: none; }
77
+ #{$zen} .q-notification__message { color: var(--qds-fg-default); }
74
78
  }
@@ -1,5 +1,6 @@
1
1
  @use '../importance';
2
2
  $shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
3
+ $zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
3
4
 
4
5
  @mixin styles {
5
6
  .qds-ui .q-pagination {
@@ -58,4 +59,7 @@ $shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
58
59
  @media (forced-colors: active) {
59
60
  #{$shadcn} .q-pagination .q-btn:focus-visible::before { outline: var(--qds-focus-ring-width) solid Highlight; outline-offset: calc(-1 * var(--qds-focus-ring-width)); }
60
61
  }
62
+
63
+ #{$zen} .q-pagination .q-btn { border-radius: var(--qds-radius-control); box-shadow: none; }
64
+ #{$zen} .q-pagination .q-btn:is(.q-btn--active, [aria-current='true']) { border-color: transparent; background: var(--qds-color-primary); color: var(--qds-text-on-solid); }
61
65
  }
@@ -4,6 +4,7 @@ $ink: ':is(.qds-ui.qds-variant-ink, .qds-ui .qds-variant-ink)';
4
4
  $one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
5
5
  $term: ':is(.qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
6
6
  $shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
7
+ $zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
7
8
 
8
9
  @mixin styles {
9
10
  .qds-ui .q-dialog__inner > .q-bottom-sheet {
@@ -69,4 +70,13 @@ $shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
69
70
  @media (max-width: 599.98px) { #{$shadcn} .q-bottom-sheet--grid .q-bottom-sheet__item { flex-basis: calc(33.333% - 2 * var(--qds-space-xs)); } }
70
71
  @media (prefers-reduced-motion: reduce) { #{$shadcn} .q-loading { transition: none; } #{$shadcn} .q-loading__spinner, #{$shadcn} .q-loading__spinner * { animation: none; } }
71
72
  @media (forced-colors: active) { #{$shadcn} .q-dialog__inner > .q-bottom-sheet, #{$shadcn} .q-loading .q-loading__box { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; } #{$shadcn} .q-bottom-sheet__item:focus-visible { outline-color: Highlight; } }
73
+
74
+ // Zen sheets and the loading box are opaque blocks with a real edge, never acrylic.
75
+ #{$zen} .q-dialog__inner > .q-bottom-sheet { border: 1px solid var(--qds-stroke-strong); border-start-start-radius: var(--qds-radius-lg); border-start-end-radius: var(--qds-radius-lg); box-shadow: var(--qds-shadow-lg); @include materials.solid(var(--qds-bg-flyout)); }
76
+ #{$zen} .q-bottom-sheet .q-separator { background: var(--qds-stroke-strong); }
77
+ #{$zen} .q-bottom-sheet__item { border: 1px solid transparent; border-radius: var(--qds-radius-control); color: var(--qds-fg-default); }
78
+ #{$zen} .q-bottom-sheet__item:not(.disabled):is(:hover, :focus-visible) { background: var(--qds-bg-surface-1); }
79
+ #{$zen} .q-bottom-sheet__item:not(.disabled):active { background: var(--qds-bg-surface-2); box-shadow: inset 0 1px 2px var(--qds-bg-overlay); }
80
+ #{$zen} .q-bottom-sheet__item > .q-focus-helper { opacity: 0; }
81
+ #{$zen} .q-loading .q-loading__box { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); color: var(--qds-fg-default); box-shadow: var(--qds-shadow-lg); @include materials.solid(var(--qds-bg-flyout)); }
72
82
  }
@@ -1,5 +1,6 @@
1
1
  @use '../materials';
2
2
  $shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
3
+ $zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
3
4
 
4
5
  @mixin styles {
5
6
  .qds-ui .q-tooltip {
@@ -27,4 +28,6 @@ $shadcn: '.qds-variant-shadcn:is(.qds-ui,.qds-ui *)';
27
28
  #{$shadcn} .q-popup-edit__buttons { gap: var(--qds-space-sm); margin-block-start: var(--qds-space-sm); }
28
29
  #{$shadcn} .q-popup-edit__buttons .q-btn + .q-btn { margin-inline-start: 0; }
29
30
  @media (forced-colors: active) { #{$shadcn} .q-tooltip { background: CanvasText; color: Canvas; border-color: CanvasText; box-shadow: none; } }
31
+
32
+ #{$zen} :is(.q-tooltip, .q-popup-edit) { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-control); background: var(--qds-bg-flyout); color: var(--qds-fg-default); box-shadow: var(--qds-shadow-md); backdrop-filter: none; }
30
33
  }
@@ -1,4 +1,5 @@
1
1
  $term: ':is(.qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
2
+ $zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
2
3
 
3
4
  @mixin styles {
4
5
  .qds-ui .q-rating { gap: 0.125rem; color: var(--qds-color-accent); line-height: 1; vertical-align: middle; }
@@ -39,4 +40,7 @@ $term: ':is(.qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
39
40
  @each $role in primary, positive, negative {
40
41
  .qds-ui .q-rating .q-rating__icon.text-#{$role} { color: var(--qds-color-#{$role}); }
41
42
  }
43
+
44
+ #{$zen} .q-rating__icon { color: var(--qds-fg-muted); text-shadow: none; }
45
+ #{$zen} .q-rating__icon--active { color: var(--qds-color-warning); }
42
46
  }
@@ -1,4 +1,6 @@
1
1
  @use '../importance';
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
  $shadcn-roles: ':is(.text-primary, .text-secondary, .text-accent, .text-positive, .text-negative, .text-warning, .text-info)';
4
6
 
@@ -330,6 +332,33 @@ $shadcn-roles: ':is(.text-primary, .text-secondary, .text-accent, .text-positive
330
332
  .qds-ui.qds-variant-term .q-slider:not(.disabled) .q-slider__selection,
331
333
  .qds-ui .qds-variant-term .q-slider:not(.disabled) .q-slider__selection { outline: var(--qds-border-width-control) solid var(--qds-selection-on, var(--qds-text-on-primary)); }
332
334
 
335
+ // A filled capsule; the knob stays light in both schemes.
336
+ #{$atrium} .q-toggle--dense { --qds-toggle-track-width: 2.5rem; --qds-toggle-track-height: 1.5rem; }
337
+ #{$atrium} .q-toggle .q-toggle__track { background: var(--qds-surface-3); border-color: transparent; }
338
+ #{$atrium} .q-toggle :is(.q-toggle__inner--truthy, .q-toggle__inner--indet) .q-toggle__track { background: currentColor; border-color: transparent; }
339
+ #{$atrium} .q-toggle.disabled .q-toggle__inner--falsy .q-toggle__track { background: var(--qds-surface-2); }
340
+ #{$atrium} .q-toggle .q-toggle__thumb::after,
341
+ #{$atrium} .q-toggle .q-toggle__inner--truthy .q-toggle__thumb::after,
342
+ #{$atrium} .q-toggle.disabled .q-toggle__thumb::after { background: var(--_qds-atrium-knob); box-shadow: var(--qds-shadow-sm); }
343
+ #{$atrium} .q-toggle:not(.disabled):hover .q-toggle__inner--falsy .q-toggle__track { background: var(--qds-stroke-strong); border-color: transparent; }
344
+ #{$atrium} :is(.q-checkbox, .q-radio) :is(.q-checkbox__inner--truthy, .q-checkbox__inner--indet, .q-radio__inner--truthy) :is(.q-checkbox__bg, .q-radio__bg) { border-color: transparent; }
345
+ #{$atrium} .q-radio .q-radio__inner--truthy .q-radio__bg { background: currentColor; }
346
+ #{$atrium} .q-radio .q-radio__inner--truthy .q-radio__check { fill: var(--qds-selection-on, var(--qds-text-on-primary)); }
347
+ #{$atrium} .q-slider .q-slider__thumb { background: var(--_qds-atrium-knob); border-color: transparent; box-shadow: var(--qds-shadow-sm); }
348
+ #{$atrium} .q-slider .q-slider__inner { background: var(--qds-surface-2); }
349
+
350
+ // Every selection control keeps a real boundary in every state.
351
+ #{$zen} :is(.q-checkbox, .q-radio, .q-toggle) .q-icon { color: var(--qds-text-on-solid); }
352
+ #{$zen} .q-checkbox__bg { border-color: var(--qds-stroke-strong); border-radius: var(--qds-radius-sm); background: var(--qds-control-fill-default); }
353
+ #{$zen} .q-radio__bg { color: var(--qds-stroke-strong); }
354
+ #{$zen} .q-toggle__track { border: 1px solid var(--qds-stroke-strong); background: var(--qds-bg-surface-1); opacity: 1; }
355
+ #{$zen} .q-toggle__inner--truthy .q-toggle__track { border-color: transparent; background: var(--qds-color-primary); }
356
+ #{$zen} .q-toggle__thumb { background: var(--qds-control-fill-default); box-shadow: var(--qds-shadow-sm); }
357
+ #{$zen} .q-slider__track-container { border-radius: var(--qds-radius-full); }
358
+ #{$zen} .q-slider .q-slider__inner { background: var(--qds-bg-surface-2); }
359
+ #{$zen} .q-slider__thumb { color: var(--qds-color-primary); }
360
+
361
+
333
362
  #{$shadcn} {
334
363
  :is(.q-checkbox, .q-radio) :is(.q-checkbox__inner--falsy, .q-radio__inner--falsy) { color: var(--qds-control-stroke-strong); }
335
364
  .q-checkbox .q-checkbox__bg { border-radius: var(--qds-radius-xs); }
@@ -1,6 +1,8 @@
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
3
  $term: ':is(.qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
4
+ $atrium: ':is(.qds-ui.qds-variant-atrium, .qds-ui .qds-variant-atrium)';
5
+ $zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
4
6
  $shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
5
7
 
6
8
  @mixin styles {
@@ -94,4 +96,24 @@ $shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
94
96
  #{$shadcn} .q-table__container.q-table--flat { box-shadow: none; }
95
97
  #{$shadcn} .q-table__container.q-table--square { border-radius: 0; }
96
98
  #{$shadcn} .q-card > .q-table__container { background: transparent; box-shadow: none; }
99
+
100
+ // A grouped block: hairline rules and no rule under the last row.
101
+ #{$atrium} .q-table__container { --qds-table-divider: var(--qds-border-subtle); overflow: hidden; }
102
+ #{$atrium} .q-table__card { box-shadow: var(--qds-shadow-md); }
103
+ #{$atrium} .q-table__container:is(.q-table--flat, .q-table--grid) { box-shadow: none; }
104
+ #{$atrium} .q-table th { color: var(--qds-fg-muted); font-size: var(--qds-font-size-caption); font-weight: var(--qds-font-weight-semibold); }
105
+ #{$atrium} .q-table tbody tr:last-child td { border-bottom-color: transparent; }
106
+ #{$atrium} .q-table__grid-item-card { border-radius: var(--qds-radius-control); border-color: var(--qds-border-subtle); }
107
+ #{$atrium} .q-table__container.q-table--square { border-radius: 0; }
108
+ #{$atrium} .q-card > .q-table__container { background: transparent; box-shadow: none; }
109
+
110
+ // Data reads as a quiet grouped block: caption-weight header, no rule under the last row.
111
+ #{$zen} .q-table__container { border: 1px solid var(--qds-stroke-strong); border-radius: var(--qds-radius-lg); background: var(--qds-bg-card); box-shadow: none; overflow: hidden; }
112
+ #{$zen} .q-table thead th { color: var(--qds-fg-muted); font-weight: var(--qds-font-weight-semibold); background: var(--qds-bg-surface-1); }
113
+ #{$zen} .q-table :is(th, td) { border-color: var(--qds-stroke-strong); }
114
+ #{$zen} .q-table tbody tr:last-child > td { border-bottom: 0; }
115
+ #{$zen} .q-table tbody tr:not(.disabled):hover > td { background: var(--qds-bg-surface-1); }
116
+ #{$zen} .q-table tbody tr.selected > td { background: var(--qds-surface-brand-soft); }
117
+ #{$zen} .q-card > .q-table__container { border: 0; border-radius: 0; background: transparent; }
118
+
97
119
  }
@@ -1,7 +1,18 @@
1
+ @use 'variants/mechanics';
2
+ @use 'variants/zen';
3
+ @use 'variants/atrium';
4
+
1
5
  $one: ':is(.qds-ui.qds-variant-one, .qds-ui .qds-variant-one)';
2
6
  $shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
3
7
 
4
- @mixin styles {
8
+ // Rails, segmented paint and density remain compatibility grammar, not mechanics.
9
+ @mixin styles($grammar: compatibility) {
10
+ @if $grammar == compatibility { @include compatibility-styles; @include zen.tabs; @include zen.reading; @include atrium.tabs; }
11
+ @else if $grammar == independent { @include mechanics.tabs; @content; }
12
+ @else { @error 'Unknown tabs grammar: #{$grammar}'; }
13
+ }
14
+
15
+ @mixin compatibility-styles {
5
16
  .qds-ui .q-tabs { color: var(--qds-fg-default); }
6
17
 
7
18
  .qds-ui .q-tab {
@@ -1,5 +1,7 @@
1
1
  $ink: ':is(.qds-ui.qds-variant-ink, .qds-ui .qds-variant-ink)';
2
2
  $term: ':is(.qds-ui.qds-variant-term, .qds-ui .qds-variant-term)';
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 {
@@ -45,6 +47,27 @@ $shadcn: '.qds-variant-shadcn:is(.qds-ui, .qds-ui *)';
45
47
  #{$ink} .q-header { border-bottom-color: var(--qds-separator-color); }
46
48
  #{$term} .q-bar:not(.q-bar--dark) { border: var(--qds-border-width-control) solid var(--qds-border-subtle); }
47
49
 
50
+ // A thin translucent sheet; the theme owns the opaque fallback.
51
+ #{$atrium} :is(.q-header, .q-footer) {
52
+ background: var(--qds-material-thin-bg);
53
+ backdrop-filter: var(--qds-material-thin-filter);
54
+ -webkit-backdrop-filter: var(--qds-material-thin-filter);
55
+ border-color: var(--qds-border-subtle);
56
+ box-shadow: none;
57
+ }
58
+ #{$atrium} .q-footer { border-top: var(--qds-border-width-control) solid var(--qds-border-subtle); }
59
+ #{$atrium} .q-toolbar { gap: var(--qds-space-xs); padding-inline: var(--qds-space-md); }
60
+ #{$atrium} .q-toolbar__title { padding-inline: 0; font-weight: var(--qds-font-weight-semibold); letter-spacing: -0.01em; }
61
+ #{$atrium} .q-bar:not(.q-bar--dark) { background: var(--qds-surface-1); border-radius: var(--qds-radius-control); }
62
+ #{$atrium} .q-separator { background: var(--qds-border-subtle); }
63
+
64
+ // Header and footer are calm sheets with an essential edge, no elevation.
65
+ #{$zen} :is(.q-header, .q-footer) { background: var(--qds-bg-card); color: var(--qds-fg-default); box-shadow: none; }
66
+ #{$zen} .q-header { border-bottom: 1px solid var(--qds-stroke-strong); }
67
+ #{$zen} .q-footer { border-top: 1px solid var(--qds-stroke-strong); }
68
+ #{$zen} .q-toolbar__title { font-weight: var(--qds-font-weight-semibold); letter-spacing: 0; }
69
+
70
+
48
71
  #{$shadcn} :is(.q-header, .q-footer) { border-color: var(--qds-stroke-divider); box-shadow: none; }
49
72
  #{$shadcn} .q-toolbar { gap: var(--qds-space-sm); padding-inline: var(--qds-space-md); }
50
73
  #{$shadcn} .q-toolbar__title { padding-inline: 0; font-size: var(--qds-font-size-body); font-weight: var(--qds-font-weight-body-strong); }
@@ -0,0 +1,123 @@
1
+ // Atrium profile grammar: one responsive system for large pointer-driven and
2
+ // touch surfaces. Quiet floating panels, grouped inset rows, capsule segments
3
+ // and a soft focus ring. It owns its own enclosure and overlay language — no
4
+ // Fluent bottom focus bar, rail or Mica, and no Zen paper depth. This partial
5
+ // imports nothing from the compatibility grammar, so it compiles and paints
6
+ // with that grammar removed.
7
+ $atrium: ':is(.qds-ui.qds-variant-atrium, .qds-ui .qds-variant-atrium)';
8
+
9
+ @mixin button {
10
+ #{$atrium} .q-btn {
11
+ --_qds-atrium-face: var(--qds-surface-0);
12
+ min-height: clamp(var(--qds-button-size-sm), calc(var(--qds-button-min-height) + (1em - 0.875rem) * 2), var(--qds-button-size-lg));
13
+ padding-inline: clamp(var(--qds-button-dense-padding-inline), calc(var(--qds-button-padding-inline) + 1em - 0.875rem), calc(var(--qds-button-padding-inline) + 0.25rem));
14
+ border: 1px solid transparent;
15
+ background: var(--_qds-atrium-face);
16
+ box-shadow: var(--qds-shadow-sm);
17
+ color: var(--qds-fg-brand);
18
+ font-weight: var(--qds-font-weight-semibold);
19
+ letter-spacing: -0.01em;
20
+ text-transform: none;
21
+ }
22
+ #{$atrium} .q-btn:not(.q-btn--round, .q-btn--fab, .q-btn--fab-mini) { border-radius: var(--qds-radius-control); }
23
+ #{$atrium} .q-btn:is(.q-btn--round, .q-btn--fab, .q-btn--fab-mini) { padding-inline: 0; }
24
+ #{$atrium} .q-btn:not(.disabled):hover { --_qds-atrium-face: var(--qds-surface-1); }
25
+ #{$atrium} .q-btn:not(.disabled):active { --_qds-atrium-face: var(--qds-surface-2); box-shadow: none; }
26
+ #{$atrium} .q-btn:is(.q-btn--flat, .q-btn--unelevated) { background: transparent; box-shadow: none; }
27
+ #{$atrium} .q-btn--outline { border-color: var(--qds-control-stroke-default); background: transparent; box-shadow: none; }
28
+ #{$atrium} .q-btn:is([class*='bg-']):not(.q-btn--flat, .q-btn--outline) { border-color: transparent; }
29
+ #{$atrium} .q-btn.disabled { box-shadow: none; }
30
+ #{$atrium} .q-btn:focus-visible { outline: var(--qds-focus-ring-width) solid var(--qds-stroke-focus); outline-offset: 2px; }
31
+ #{$atrium} .q-btn__content { gap: 0.4rem; }
32
+ // Capsule segments: the selected thumb floats over a recessed track.
33
+ #{$atrium} .q-btn-toggle { padding: 2px; border-radius: var(--qds-radius-lg); background: var(--qds-segmented-track-bg); }
34
+ #{$atrium} .q-btn-toggle > .q-btn-item { box-shadow: none; background: transparent; }
35
+ #{$atrium} .q-btn-toggle > .q-btn-item:is([aria-pressed='true'], .q-btn--active, .qds-active) {
36
+ background: var(--qds-segmented-thumb-bg);
37
+ box-shadow: var(--qds-shadow-sm);
38
+ }
39
+ }
40
+
41
+ @mixin field {
42
+ // The field is a soft filled well with no baseline rule; focus is a ring,
43
+ // never an underline that grows.
44
+ #{$atrium} .q-field__control {
45
+ min-height: var(--qds-field-height);
46
+ border: 1px solid var(--qds-control-stroke-default);
47
+ border-radius: var(--qds-radius-control);
48
+ background: var(--qds-surface-1);
49
+ box-shadow: none;
50
+ }
51
+ #{$atrium} .q-field__control::before,
52
+ #{$atrium} .q-field__control::after { display: none; }
53
+ #{$atrium} .q-field--focused .q-field__control {
54
+ border-color: var(--qds-stroke-focus);
55
+ outline: var(--qds-focus-ring-width) solid color-mix(in srgb, var(--qds-stroke-focus) 34%, transparent);
56
+ outline-offset: 0;
57
+ }
58
+ #{$atrium} .q-field--error .q-field__control { border-color: var(--qds-stroke-error); }
59
+ #{$atrium} .q-field--error .q-field__bottom { color: var(--qds-fg-negative); }
60
+ #{$atrium} .q-field--readonly .q-field__control { background: var(--qds-surface-2); }
61
+ #{$atrium} .q-field--disabled .q-field__control { border-color: var(--qds-border-subtle); background: var(--qds-surface-1); }
62
+ #{$atrium} .q-field__label { color: var(--qds-text-muted); font-weight: var(--qds-font-weight-medium); }
63
+ #{$atrium} textarea.q-field__native { padding-block: 0.4rem; }
64
+ }
65
+
66
+ @mixin tabs {
67
+ // Navigation reads as a floating capsule group, not an underlined rail.
68
+ #{$atrium} .q-tabs { border-radius: var(--qds-radius-lg); }
69
+ #{$atrium} .q-tab {
70
+ min-height: var(--qds-tab-min-height, 2.125rem);
71
+ padding-inline: 0.875rem;
72
+ border-radius: var(--qds-radius-control);
73
+ color: var(--qds-text-muted);
74
+ font-weight: var(--qds-font-weight-medium);
75
+ letter-spacing: -0.01em;
76
+ text-transform: none;
77
+ }
78
+ #{$atrium} .q-tab--active { background: var(--qds-segmented-thumb-bg); box-shadow: var(--qds-shadow-sm); color: var(--qds-fg-brand); }
79
+ #{$atrium} .q-tab__indicator { display: none; }
80
+ #{$atrium} .q-tab:focus-visible { outline: var(--qds-focus-ring-width) solid var(--qds-stroke-focus); outline-offset: -2px; }
81
+ #{$atrium} .q-tab.disabled { color: var(--qds-fg-disabled); }
82
+ }
83
+
84
+ @mixin menu {
85
+ // Overlays are translucent floating panels with inset rounded rows; the
86
+ // opaque fallback in the theme keeps them readable without backdrop support.
87
+ #{$atrium} .q-menu {
88
+ padding: 0.25rem;
89
+ border: 1px solid var(--qds-menu-border);
90
+ border-radius: var(--qds-radius-lg);
91
+ background: var(--qds-material-regular-bg);
92
+ backdrop-filter: var(--qds-material-regular-filter);
93
+ -webkit-backdrop-filter: var(--qds-material-regular-filter);
94
+ box-shadow: var(--qds-shadow-lg);
95
+ }
96
+ #{$atrium} .q-menu .q-item {
97
+ min-height: var(--qds-menu-item-min-height, 2.25rem);
98
+ border-radius: calc(var(--qds-radius-control) - 2px);
99
+ }
100
+ #{$atrium} .q-menu .q-item--active,
101
+ #{$atrium} .q-menu .q-item.q-manual-focusable--focused {
102
+ background: color-mix(in srgb, var(--qds-color-primary) 14%, transparent);
103
+ color: var(--qds-fg-brand);
104
+ }
105
+ #{$atrium} .q-separator { background: var(--qds-border-subtle); }
106
+ // Grouped inset rows: a list is one rounded block, separators stop short of
107
+ // the edge rather than cutting the whole panel.
108
+ #{$atrium} .q-list--bordered {
109
+ border: 1px solid var(--qds-border-subtle);
110
+ border-radius: var(--qds-radius-lg);
111
+ overflow: hidden;
112
+ }
113
+ }
114
+
115
+ // Density follows input capability, not viewport width alone.
116
+ @mixin capability {
117
+ @media (pointer: coarse) {
118
+ #{$atrium} .q-btn:not(.q-btn--dense),
119
+ #{$atrium} .q-tab,
120
+ #{$atrium} .q-field:not(.q-field--dense) .q-field__control { min-height: 2.75rem; }
121
+ #{$atrium} .q-menu .q-item { min-height: 2.75rem; }
122
+ }
123
+ }
@@ -0,0 +1,22 @@
1
+ // Internal hooks supplement native Quasar layout, not its behavior. No paint,
2
+ // density, label placement, focus treatment, rail or motion belongs here.
3
+ // Compatibility deliberately retains its original emission until migrated.
4
+ @mixin button {
5
+ .qds-ui .q-btn__content { min-width: 0; }
6
+ .qds-ui .q-btn__content > .q-spinner { flex-shrink: 0; }
7
+ }
8
+
9
+ @mixin field {
10
+ .qds-ui .q-field__control-container { min-width: 0; }
11
+ .qds-ui .q-field__messages { overflow-wrap: anywhere; }
12
+ }
13
+
14
+ @mixin tabs {
15
+ .qds-ui .q-tabs__content { min-width: 0; }
16
+ .qds-ui .q-tab-panels .q-panel--inactive { pointer-events: none; }
17
+ }
18
+
19
+ @mixin menu {
20
+ .qds-ui .q-menu { overflow: auto; overscroll-behavior: contain; }
21
+ .qds-ui .q-menu .q-item__section--main { min-width: 0; }
22
+ }
@@ -0,0 +1,147 @@
1
+ // Zen profile grammar: soft colored blocks, quiet reading rhythm, gently
2
+ // raised/recessed depth and an essential boundary on every control. It owns its
3
+ // own enclosure, segment and overlay language — no Fluent focus bar, rail or
4
+ // acrylic, and no Ink drawn rule. This partial imports nothing from the
5
+ // compatibility grammar, so it compiles and paints with that grammar removed.
6
+ $zen: ':is(.qds-ui.qds-variant-zen, .qds-ui .qds-variant-zen)';
7
+ // Reading presentation is an explicit opt-in class, never a device or
8
+ // user-agent heuristic, and makes no claim about physical e-paper hardware.
9
+ $reading: ':is(.qds-ui.qds-variant-zen.qds-reading, .qds-ui .qds-variant-zen.qds-reading)';
10
+
11
+ @mixin button {
12
+ #{$zen} .q-btn {
13
+ --_qds-zen-face: var(--qds-control-fill-default);
14
+ min-height: var(--qds-button-min-height);
15
+ padding-inline: 1rem;
16
+ border: 1px solid var(--qds-stroke-strong);
17
+ border-radius: var(--qds-radius-control);
18
+ background: var(--_qds-zen-face);
19
+ box-shadow: var(--qds-shadow-sm);
20
+ color: var(--qds-fg-default);
21
+ font-weight: var(--qds-font-weight-semibold);
22
+ letter-spacing: 0;
23
+ text-transform: none;
24
+ }
25
+ #{$zen} .q-btn:not(.disabled):hover { --_qds-zen-face: var(--qds-control-fill-hover); }
26
+ // Pressed recedes into the page instead of lifting further off it.
27
+ #{$zen} .q-btn:not(.disabled):active { --_qds-zen-face: var(--qds-control-fill-pressed); box-shadow: inset 0 1px 2px var(--qds-bg-overlay); }
28
+ #{$zen} .q-btn:is(.q-btn--flat, .q-btn--unelevated) { border-color: transparent; background: transparent; box-shadow: none; }
29
+ #{$zen} .q-btn--outline { border-color: currentColor; background: transparent; box-shadow: none; }
30
+ // Role fills already clear 3:1 against every Zen surface, so they carry
31
+ // their own boundary and drop the stroke rather than ringing it twice.
32
+ #{$zen} .q-btn:is([class*='bg-']):not(.q-btn--flat, .q-btn--outline) { border-color: transparent; }
33
+ #{$zen} .q-btn.disabled { box-shadow: none; }
34
+ #{$zen} .q-btn--dense { min-height: var(--qds-button-dense-min-height); }
35
+ #{$zen} .q-btn__content { gap: 0.5rem; }
36
+ }
37
+
38
+ @mixin field {
39
+ // The field is a recessed well: an inset edge plus a real boundary, never a
40
+ // bottom focus bar and never depth alone.
41
+ #{$zen} .q-field__control {
42
+ height: var(--qds-field-height);
43
+ min-height: var(--qds-field-height);
44
+ padding-inline: 0.875rem;
45
+ border: 1px solid var(--qds-stroke-strong);
46
+ border-radius: var(--qds-radius-control);
47
+ background: var(--qds-bg-surface-1);
48
+ box-shadow: inset 0 1px 2px var(--qds-bg-overlay);
49
+ color: var(--qds-fg-default);
50
+ }
51
+ #{$zen} .q-field__control::before,
52
+ #{$zen} .q-field__control::after { content: none; }
53
+ // Hover and focus keep the well; the compatibility grammar would otherwise
54
+ // repaint them from its own control-fill ladder at equal specificity.
55
+ #{$zen} .q-field__control:hover { background: var(--qds-bg-surface-1); }
56
+ #{$zen} .q-field--focused .q-field__control {
57
+ border-color: var(--qds-stroke-focus);
58
+ background: var(--qds-bg-surface-1);
59
+ outline: var(--qds-focus-ring-width) solid var(--qds-stroke-focus);
60
+ outline-offset: 1px;
61
+ }
62
+ #{$zen} .q-field__label { color: var(--qds-fg-muted); font-size: var(--qds-field-label-size); }
63
+ #{$zen} .q-field__native { color: var(--qds-fg-default); }
64
+ #{$zen} .q-field__marginal { height: auto; color: var(--qds-fg-muted); }
65
+ #{$zen} .q-field__bottom { padding-top: 0.375rem; color: var(--qds-fg-muted); }
66
+ #{$zen} .q-field__counter { font-variant-numeric: tabular-nums; }
67
+ // Quasar's native #c10015 validation paint never reaches a Zen field.
68
+ #{$zen} .q-field--error .q-field__control { border-color: var(--qds-stroke-error); }
69
+ #{$zen} .q-field--error :is(.q-field__bottom, .q-field__marginal) { color: var(--qds-fg-negative); }
70
+ #{$zen} .q-field--readonly .q-field__control { background: var(--qds-control-fill-default); box-shadow: none; border-style: dashed; }
71
+ #{$zen} .q-field--disabled .q-field__control { background: var(--qds-bg-surface-2); box-shadow: none; }
72
+ }
73
+
74
+ @mixin tabs {
75
+ // Enclosed segments, not a rail: the track recedes and the active segment is
76
+ // raised, bounded and heavier, so it reads without shadow or colour alone.
77
+ #{$zen} .q-tabs {
78
+ // The enclosure adds padding and a border, so it must shrink inside a narrow cell.
79
+ max-width: 100%;
80
+ min-width: 0;
81
+ padding: 0.25rem;
82
+ border: 1px solid var(--qds-stroke-strong);
83
+ border-radius: var(--qds-radius-control);
84
+ background: var(--qds-bg-surface-2);
85
+ box-shadow: inset 0 1px 2px var(--qds-bg-overlay);
86
+ color: var(--qds-fg-default);
87
+ }
88
+ #{$zen} .q-tab {
89
+ min-height: var(--qds-tab-min-height);
90
+ padding: 0 var(--qds-space-sm);
91
+ border: 1px solid transparent;
92
+ border-radius: calc(var(--qds-radius-control) - 0.25rem);
93
+ opacity: 1;
94
+ color: var(--qds-fg-muted);
95
+ }
96
+ #{$zen} .q-tab__label { font-size: 0.875rem; font-weight: var(--qds-font-weight-medium); text-transform: none; letter-spacing: 0; }
97
+ #{$zen} .q-tab--active {
98
+ border-color: var(--qds-stroke-strong);
99
+ background: var(--qds-control-fill-default);
100
+ box-shadow: var(--qds-shadow-sm);
101
+ color: var(--qds-fg-default);
102
+ }
103
+ #{$zen} .q-tab--active .q-tab__label { font-weight: var(--qds-font-weight-semibold); }
104
+ #{$zen} .q-tab__indicator { display: none; }
105
+ #{$zen} .q-tab.disabled { opacity: var(--qds-disabled-opacity); }
106
+ #{$zen} .q-tabs__arrow { color: var(--qds-fg-muted); text-shadow: none; }
107
+ }
108
+
109
+ @mixin menu {
110
+ // Quasar teleports overlays to the body, which the runtime variant class also
111
+ // carries, so the Zen scope reaches them without a per-overlay opt-in.
112
+ #{$zen} .q-menu {
113
+ padding: var(--qds-space-xs);
114
+ border: 1px solid var(--qds-stroke-strong);
115
+ border-radius: var(--qds-radius-lg);
116
+ background: var(--qds-menu-bg);
117
+ box-shadow: var(--qds-shadow-md);
118
+ color: var(--qds-fg-default);
119
+ }
120
+ #{$zen} .q-menu .q-item {
121
+ min-height: var(--qds-menu-item-min-height);
122
+ border: 1px solid transparent;
123
+ border-radius: var(--qds-radius-control);
124
+ color: var(--qds-fg-default);
125
+ }
126
+ #{$zen} .q-menu .q-item:not(.disabled):is(:hover, :focus-visible) { background: var(--qds-bg-surface-1); }
127
+ #{$zen} .q-menu .q-item--active { border-color: var(--qds-stroke-strong); background: var(--qds-surface-brand-soft); }
128
+ #{$zen} .q-menu .q-separator { background: var(--qds-stroke-strong); }
129
+ }
130
+
131
+ // Reading presentation keeps every boundary and removes decorative depth and
132
+ // motion. It adds no hardware detection and no continuous or simulated refresh.
133
+ @mixin reading {
134
+ #{$reading} :is(.q-btn, .q-field__control, .q-tabs, .q-tab, .q-menu, .q-item) { box-shadow: none; }
135
+ // Decorative depth goes; the boundary each family carries is what survives.
136
+ #{$reading} :is(.q-card, .qds-card, .qds-tile, .qds-settings-card, .q-table__container, .q-stepper, .q-uploader, .q-editor, .q-splitter, .q-notification, .q-tooltip, .q-dialog__inner > .q-card, .q-dialog__inner > .q-bottom-sheet, .q-loading .q-loading__box, .q-drawer, .q-header, .q-footer) { box-shadow: none; }
137
+ #{$reading} .q-field__control { background: var(--qds-control-fill-default); }
138
+ #{$reading} .q-tab--active { background: var(--qds-control-fill-default); }
139
+ #{$reading} :is(.q-btn, .q-field, .q-field__control, .q-tab, .q-menu, .q-item),
140
+ #{$reading} :is(.q-btn, .q-field, .q-field__control, .q-tab, .q-menu, .q-item)::before,
141
+ #{$reading} :is(.q-btn, .q-field, .q-field__control, .q-tab, .q-menu, .q-item)::after {
142
+ transition: none;
143
+ animation: none;
144
+ backdrop-filter: none;
145
+ background-image: none;
146
+ }
147
+ }