@filipgutica/design-system 1.0.8 → 1.0.9
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/README.md +1 -1
- package/dist/class/themes/mauve.css +133 -0
- package/dist/class/themes/pine.css +133 -0
- package/language/components.html +23 -3
- package/language/components.md +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ npm install @filipgutica/design-system
|
|
|
31
31
|
| Import | What it is |
|
|
32
32
|
| --- | --- |
|
|
33
33
|
| `@filipgutica/design-system/tokens.css` | The tokens with their standalone names. Dark mode follows `prefers-color-scheme`; set `data-theme="light"` or `"dark"` on `<html>` to override it. |
|
|
34
|
-
| `@filipgutica/design-system/class/base.css`, `class/themes/*.css` | The same values with `@filipgutica/ui`'s names, for apps that toggle a `.dark` class on `<html>`. Use one flavour per app.
|
|
34
|
+
| `@filipgutica/design-system/class/base.css`, `class/themes/*.css` | The same values with `@filipgutica/ui`'s names, for apps that toggle a `.dark` class on `<html>`. Use one flavour per app. Import `class/base.css`, then one theme's roles: `class/themes/graphite-indigo.css` (the default), `mauve.css`, or `pine.css`. |
|
|
35
35
|
| `@filipgutica/design-system/themes/*.css` | A theme's identity inputs (hue pair and fonts): `graphite-indigo` (the default, already in `tokens.css`), `mauve`, or `pine`. Load one after `tokens.css`, on `:root`. |
|
|
36
36
|
| `@filipgutica/design-system/fonts.css` | IBM Plex Sans and Mono. |
|
|
37
37
|
| `@filipgutica/design-system` | `tokens` (resolved values per theme and mode) and `cssVar(name)`, with types. |
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* Generated from tokens/core.json and tokens/themes/mauve.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* Opt-in Mauve roles for the class flavour. Import after class/base.css (theme.css in @filipgutica/ui).
|
|
3
|
+
* Dark mode uses the same .dark class as the base. Keep exactly one :root.dark block:
|
|
4
|
+
* sites copy it into a <noscript> prefers-color-scheme rule. */
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
color-scheme: light;
|
|
8
|
+
--color-project: #6c5267;
|
|
9
|
+
--color-project-dark: #d1b3c8;
|
|
10
|
+
--color-bg: #f4f5f6;
|
|
11
|
+
--color-surface: #e9ebed;
|
|
12
|
+
--color-surface-raised: #fbfbfc;
|
|
13
|
+
--color-surface-muted: #e2e5e8;
|
|
14
|
+
--color-text: #101315;
|
|
15
|
+
--color-muted: #50575e;
|
|
16
|
+
--color-link: #0b5f7c;
|
|
17
|
+
--color-accent: var(--color-project);
|
|
18
|
+
--color-accent-text: var(--color-bg);
|
|
19
|
+
--color-focus: var(--color-accent);
|
|
20
|
+
--color-border: #6d747b;
|
|
21
|
+
--color-border-subtle: #d3d8dd;
|
|
22
|
+
--color-button-bg: var(--color-accent);
|
|
23
|
+
--color-button-text: var(--color-accent-text);
|
|
24
|
+
--color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
|
|
25
|
+
--color-input-bg: var(--color-surface-raised);
|
|
26
|
+
--color-input-text: var(--color-text);
|
|
27
|
+
--color-input-border: var(--color-border);
|
|
28
|
+
--color-input-placeholder: var(--color-muted);
|
|
29
|
+
--color-row-hover: #e2e5e8;
|
|
30
|
+
--color-row-selected: var(--color-surface-raised);
|
|
31
|
+
--color-row-selected-text: var(--color-text);
|
|
32
|
+
--color-code: var(--color-surface);
|
|
33
|
+
--color-code-text: var(--color-text);
|
|
34
|
+
--color-syntax-comment: #626772;
|
|
35
|
+
--color-syntax-keyword: #715b42;
|
|
36
|
+
--color-syntax-string: #346347;
|
|
37
|
+
--color-syntax-number: #86532e;
|
|
38
|
+
--color-syntax-function: var(--color-syntax-keyword);
|
|
39
|
+
--color-syntax-type: var(--color-syntax-number);
|
|
40
|
+
--color-syntax-variable: var(--color-code-text);
|
|
41
|
+
--color-syntax-operator: var(--color-muted);
|
|
42
|
+
--color-syntax-punctuation: var(--color-muted);
|
|
43
|
+
--color-syntax-tag: var(--color-syntax-keyword);
|
|
44
|
+
--color-syntax-attribute: var(--color-syntax-number);
|
|
45
|
+
--color-error: #bd342b;
|
|
46
|
+
--color-warning: #86532e;
|
|
47
|
+
--color-success: #157249;
|
|
48
|
+
--color-info: #175cd3;
|
|
49
|
+
--color-progress: var(--color-accent);
|
|
50
|
+
--color-error-surface: #efe4e4;
|
|
51
|
+
--color-warning-surface: #e7e2de;
|
|
52
|
+
--color-success-surface: #d9e5e1;
|
|
53
|
+
--color-info-surface: #d9e3f2;
|
|
54
|
+
--shadow-dialog: 0 8px 24px rgb(16 16 24 / 12%), 0 0 0 1px var(--color-border-subtle);
|
|
55
|
+
--color-status-text: var(--color-text);
|
|
56
|
+
--color-terminal: #0a0c0e;
|
|
57
|
+
--color-terminal-text: #e6e9eb;
|
|
58
|
+
--color-terminal-border: #2a3036;
|
|
59
|
+
--color-terminal-caption: #13171a;
|
|
60
|
+
--color-terminal-caption-text: #c9d0d6;
|
|
61
|
+
--color-accent-hover: var(--color-text);
|
|
62
|
+
--color-command-bg: color-mix(in srgb, var(--color-project) 25%, #101010);
|
|
63
|
+
--color-command-border: transparent;
|
|
64
|
+
--text-3xl: 2.75rem;
|
|
65
|
+
--text-reading: 1rem;
|
|
66
|
+
--text-display: 3.5rem;
|
|
67
|
+
--text-display-sm: 2.125rem;
|
|
68
|
+
--tracking-tight: -0.03em;
|
|
69
|
+
--space-20: 5rem;
|
|
70
|
+
--space-24: 6rem;
|
|
71
|
+
--row: 2.25rem;
|
|
72
|
+
--page-wide: 1120px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:root.dark {
|
|
76
|
+
color-scheme: dark;
|
|
77
|
+
--color-project: var(--color-project-dark);
|
|
78
|
+
--color-project-dark: #d1b3c8;
|
|
79
|
+
--color-bg: #0d1012;
|
|
80
|
+
--color-surface: #13171a;
|
|
81
|
+
--color-surface-raised: #181d21;
|
|
82
|
+
--color-surface-muted: #20262b;
|
|
83
|
+
--color-text: #e6e9eb;
|
|
84
|
+
--color-muted: #9aa3ab;
|
|
85
|
+
--color-link: #67c1df;
|
|
86
|
+
--color-accent: var(--color-project);
|
|
87
|
+
--color-accent-text: var(--color-bg);
|
|
88
|
+
--color-focus: var(--color-accent);
|
|
89
|
+
--color-border: #78818a;
|
|
90
|
+
--color-border-subtle: #262d33;
|
|
91
|
+
--color-button-bg: var(--color-accent);
|
|
92
|
+
--color-button-text: var(--color-accent-text);
|
|
93
|
+
--color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
|
|
94
|
+
--color-input-bg: var(--color-surface-raised);
|
|
95
|
+
--color-input-text: var(--color-text);
|
|
96
|
+
--color-input-border: var(--color-border);
|
|
97
|
+
--color-input-placeholder: var(--color-muted);
|
|
98
|
+
--color-row-hover: #20262b;
|
|
99
|
+
--color-row-selected: var(--color-surface-raised);
|
|
100
|
+
--color-row-selected-text: var(--color-text);
|
|
101
|
+
--color-code: var(--color-surface);
|
|
102
|
+
--color-code-text: var(--color-text);
|
|
103
|
+
--color-syntax-comment: #a0a6b1;
|
|
104
|
+
--color-syntax-keyword: #d8c2a5;
|
|
105
|
+
--color-syntax-string: #a8bd9c;
|
|
106
|
+
--color-syntax-number: #d5b98c;
|
|
107
|
+
--color-syntax-function: var(--color-syntax-keyword);
|
|
108
|
+
--color-syntax-type: var(--color-syntax-number);
|
|
109
|
+
--color-syntax-variable: var(--color-code-text);
|
|
110
|
+
--color-syntax-operator: var(--color-muted);
|
|
111
|
+
--color-syntax-punctuation: var(--color-muted);
|
|
112
|
+
--color-syntax-tag: var(--color-syntax-keyword);
|
|
113
|
+
--color-syntax-attribute: var(--color-syntax-number);
|
|
114
|
+
--color-error: #f0776c;
|
|
115
|
+
--color-warning: #e2a54b;
|
|
116
|
+
--color-success: #4cc38a;
|
|
117
|
+
--color-info: #84adff;
|
|
118
|
+
--color-progress: var(--color-accent);
|
|
119
|
+
--color-error-surface: #312020;
|
|
120
|
+
--color-warning-surface: #2f281b;
|
|
121
|
+
--color-success-surface: #172d25;
|
|
122
|
+
--color-info-surface: #202938;
|
|
123
|
+
--shadow-dialog: 0 8px 24px rgb(0 0 0 / 45%), 0 0 0 1px var(--color-border-subtle);
|
|
124
|
+
--color-status-text: var(--color-text);
|
|
125
|
+
--color-terminal: #0a0c0e;
|
|
126
|
+
--color-terminal-text: #e6e9eb;
|
|
127
|
+
--color-terminal-border: #2a3036;
|
|
128
|
+
--color-terminal-caption: #13171a;
|
|
129
|
+
--color-terminal-caption-text: #c9d0d6;
|
|
130
|
+
--color-accent-hover: var(--color-text);
|
|
131
|
+
--color-command-bg: color-mix(in srgb, var(--color-project) 16%, black);
|
|
132
|
+
--color-command-border: color-mix(in srgb, var(--color-project) 28%, black);
|
|
133
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* Generated from tokens/core.json and tokens/themes/pine.json by scripts/build-tokens.mjs in @filipgutica/design-system. Do not edit.
|
|
2
|
+
* Opt-in Pine roles for the class flavour. Import after class/base.css (theme.css in @filipgutica/ui).
|
|
3
|
+
* Dark mode uses the same .dark class as the base. Keep exactly one :root.dark block:
|
|
4
|
+
* sites copy it into a <noscript> prefers-color-scheme rule. */
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
color-scheme: light;
|
|
8
|
+
--color-project: #00543f;
|
|
9
|
+
--color-project-dark: #3fe0c0;
|
|
10
|
+
--color-bg: #f4f5f6;
|
|
11
|
+
--color-surface: #e9ebed;
|
|
12
|
+
--color-surface-raised: #fbfbfc;
|
|
13
|
+
--color-surface-muted: #e2e5e8;
|
|
14
|
+
--color-text: #101315;
|
|
15
|
+
--color-muted: #50575e;
|
|
16
|
+
--color-link: #0b5f7c;
|
|
17
|
+
--color-accent: var(--color-project);
|
|
18
|
+
--color-accent-text: var(--color-bg);
|
|
19
|
+
--color-focus: var(--color-accent);
|
|
20
|
+
--color-border: #6d747b;
|
|
21
|
+
--color-border-subtle: #d3d8dd;
|
|
22
|
+
--color-button-bg: var(--color-accent);
|
|
23
|
+
--color-button-text: var(--color-accent-text);
|
|
24
|
+
--color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
|
|
25
|
+
--color-input-bg: var(--color-surface-raised);
|
|
26
|
+
--color-input-text: var(--color-text);
|
|
27
|
+
--color-input-border: var(--color-border);
|
|
28
|
+
--color-input-placeholder: var(--color-muted);
|
|
29
|
+
--color-row-hover: #e2e5e8;
|
|
30
|
+
--color-row-selected: var(--color-surface-raised);
|
|
31
|
+
--color-row-selected-text: var(--color-text);
|
|
32
|
+
--color-code: var(--color-surface);
|
|
33
|
+
--color-code-text: var(--color-text);
|
|
34
|
+
--color-syntax-comment: #626772;
|
|
35
|
+
--color-syntax-keyword: #715b42;
|
|
36
|
+
--color-syntax-string: #346347;
|
|
37
|
+
--color-syntax-number: #86532e;
|
|
38
|
+
--color-syntax-function: var(--color-syntax-keyword);
|
|
39
|
+
--color-syntax-type: var(--color-syntax-number);
|
|
40
|
+
--color-syntax-variable: var(--color-code-text);
|
|
41
|
+
--color-syntax-operator: var(--color-muted);
|
|
42
|
+
--color-syntax-punctuation: var(--color-muted);
|
|
43
|
+
--color-syntax-tag: var(--color-syntax-keyword);
|
|
44
|
+
--color-syntax-attribute: var(--color-syntax-number);
|
|
45
|
+
--color-error: #bd342b;
|
|
46
|
+
--color-warning: #86532e;
|
|
47
|
+
--color-success: #157249;
|
|
48
|
+
--color-info: #175cd3;
|
|
49
|
+
--color-progress: var(--color-accent);
|
|
50
|
+
--color-error-surface: #efe4e4;
|
|
51
|
+
--color-warning-surface: #e7e2de;
|
|
52
|
+
--color-success-surface: #d9e5e1;
|
|
53
|
+
--color-info-surface: #d9e3f2;
|
|
54
|
+
--shadow-dialog: 0 8px 24px rgb(16 16 24 / 12%), 0 0 0 1px var(--color-border-subtle);
|
|
55
|
+
--color-status-text: var(--color-text);
|
|
56
|
+
--color-terminal: #0a0c0e;
|
|
57
|
+
--color-terminal-text: #e6e9eb;
|
|
58
|
+
--color-terminal-border: #2a3036;
|
|
59
|
+
--color-terminal-caption: #13171a;
|
|
60
|
+
--color-terminal-caption-text: #c9d0d6;
|
|
61
|
+
--color-accent-hover: var(--color-text);
|
|
62
|
+
--color-command-bg: color-mix(in srgb, var(--color-project) 25%, #101010);
|
|
63
|
+
--color-command-border: transparent;
|
|
64
|
+
--text-3xl: 2.75rem;
|
|
65
|
+
--text-reading: 1rem;
|
|
66
|
+
--text-display: 3.5rem;
|
|
67
|
+
--text-display-sm: 2.125rem;
|
|
68
|
+
--tracking-tight: -0.03em;
|
|
69
|
+
--space-20: 5rem;
|
|
70
|
+
--space-24: 6rem;
|
|
71
|
+
--row: 2.25rem;
|
|
72
|
+
--page-wide: 1120px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:root.dark {
|
|
76
|
+
color-scheme: dark;
|
|
77
|
+
--color-project: var(--color-project-dark);
|
|
78
|
+
--color-project-dark: #3fe0c0;
|
|
79
|
+
--color-bg: #0d1012;
|
|
80
|
+
--color-surface: #13171a;
|
|
81
|
+
--color-surface-raised: #181d21;
|
|
82
|
+
--color-surface-muted: #20262b;
|
|
83
|
+
--color-text: #e6e9eb;
|
|
84
|
+
--color-muted: #9aa3ab;
|
|
85
|
+
--color-link: #67c1df;
|
|
86
|
+
--color-accent: var(--color-project);
|
|
87
|
+
--color-accent-text: var(--color-bg);
|
|
88
|
+
--color-focus: var(--color-accent);
|
|
89
|
+
--color-border: #78818a;
|
|
90
|
+
--color-border-subtle: #262d33;
|
|
91
|
+
--color-button-bg: var(--color-accent);
|
|
92
|
+
--color-button-text: var(--color-accent-text);
|
|
93
|
+
--color-button-hover: color-mix(in srgb, var(--color-accent) 85%, var(--color-text));
|
|
94
|
+
--color-input-bg: var(--color-surface-raised);
|
|
95
|
+
--color-input-text: var(--color-text);
|
|
96
|
+
--color-input-border: var(--color-border);
|
|
97
|
+
--color-input-placeholder: var(--color-muted);
|
|
98
|
+
--color-row-hover: #20262b;
|
|
99
|
+
--color-row-selected: var(--color-surface-raised);
|
|
100
|
+
--color-row-selected-text: var(--color-text);
|
|
101
|
+
--color-code: var(--color-surface);
|
|
102
|
+
--color-code-text: var(--color-text);
|
|
103
|
+
--color-syntax-comment: #a0a6b1;
|
|
104
|
+
--color-syntax-keyword: #d8c2a5;
|
|
105
|
+
--color-syntax-string: #a8bd9c;
|
|
106
|
+
--color-syntax-number: #d5b98c;
|
|
107
|
+
--color-syntax-function: var(--color-syntax-keyword);
|
|
108
|
+
--color-syntax-type: var(--color-syntax-number);
|
|
109
|
+
--color-syntax-variable: var(--color-code-text);
|
|
110
|
+
--color-syntax-operator: var(--color-muted);
|
|
111
|
+
--color-syntax-punctuation: var(--color-muted);
|
|
112
|
+
--color-syntax-tag: var(--color-syntax-keyword);
|
|
113
|
+
--color-syntax-attribute: var(--color-syntax-number);
|
|
114
|
+
--color-error: #f0776c;
|
|
115
|
+
--color-warning: #e2a54b;
|
|
116
|
+
--color-success: #4cc38a;
|
|
117
|
+
--color-info: #84adff;
|
|
118
|
+
--color-progress: var(--color-accent);
|
|
119
|
+
--color-error-surface: #312020;
|
|
120
|
+
--color-warning-surface: #2f281b;
|
|
121
|
+
--color-success-surface: #172d25;
|
|
122
|
+
--color-info-surface: #202938;
|
|
123
|
+
--shadow-dialog: 0 8px 24px rgb(0 0 0 / 45%), 0 0 0 1px var(--color-border-subtle);
|
|
124
|
+
--color-status-text: var(--color-text);
|
|
125
|
+
--color-terminal: #0a0c0e;
|
|
126
|
+
--color-terminal-text: #e6e9eb;
|
|
127
|
+
--color-terminal-border: #2a3036;
|
|
128
|
+
--color-terminal-caption: #13171a;
|
|
129
|
+
--color-terminal-caption-text: #c9d0d6;
|
|
130
|
+
--color-accent-hover: var(--color-text);
|
|
131
|
+
--color-command-bg: color-mix(in srgb, var(--color-project) 16%, black);
|
|
132
|
+
--color-command-border: color-mix(in srgb, var(--color-project) 28%, black);
|
|
133
|
+
}
|
package/language/components.html
CHANGED
|
@@ -1733,8 +1733,12 @@
|
|
|
1733
1733
|
showCopied(button, ok);
|
|
1734
1734
|
}));
|
|
1735
1735
|
|
|
1736
|
-
// Live dialog and drawer: native modal dialogs return focus to the trigger on close.
|
|
1737
|
-
|
|
1736
|
+
// Live dialog and drawer: native modal dialogs return focus to the trigger on close. Safari does not focus a
|
|
1737
|
+
// button on click, so the trigger takes focus first and the dialog has it to return to.
|
|
1738
|
+
document.querySelectorAll('[data-open]').forEach((button) => button.addEventListener('click', () => {
|
|
1739
|
+
button.focus();
|
|
1740
|
+
document.getElementById(button.dataset.open).showModal();
|
|
1741
|
+
}));
|
|
1738
1742
|
// Following an in-page link closes the drawer, then focus moves to the destination instead of the trigger.
|
|
1739
1743
|
// Every close path slides the drawer out first. Under reduced motion there is no animation, so it closes at once.
|
|
1740
1744
|
// A slide that is cancelled, such as by turning on reduced motion mid-slide, still closes the drawer.
|
|
@@ -1755,6 +1759,17 @@
|
|
|
1755
1759
|
};
|
|
1756
1760
|
drawer.addEventListener('cancel', (e) => { e.preventDefault(); slideOut(); });
|
|
1757
1761
|
drawer.querySelector('form[method="dialog"]')?.addEventListener('submit', (e) => { e.preventDefault(); slideOut(); });
|
|
1762
|
+
// A tap or click on the backdrop, which belongs to the dialog element, lands outside the drawer's box and
|
|
1763
|
+
// closes it. closedby="any" would do this, but Safari does not support it. Only a press that starts outside
|
|
1764
|
+
// counts, so a drag out of the drawer keeps it open. It closes on the click, not the press: a drawer that
|
|
1765
|
+
// closes at once, under reduced motion, would otherwise pass the release and its click to the page behind.
|
|
1766
|
+
const outside = (e) => {
|
|
1767
|
+
const box = drawer.getBoundingClientRect();
|
|
1768
|
+
return e.clientX < box.left || e.clientX > box.right || e.clientY < box.top || e.clientY > box.bottom;
|
|
1769
|
+
};
|
|
1770
|
+
let pressedOutside = false;
|
|
1771
|
+
drawer.addEventListener('pointerdown', (e) => { pressedOutside = outside(e); });
|
|
1772
|
+
drawer.addEventListener('click', (e) => { if (pressedOutside && e.target === drawer && outside(e)) slideOut(); });
|
|
1758
1773
|
drawer.addEventListener('click', (e) => {
|
|
1759
1774
|
const link = e.target.closest('a[href^="#"]');
|
|
1760
1775
|
if (!link || e.button !== 0 || e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
@@ -1880,9 +1895,14 @@
|
|
|
1880
1895
|
|
|
1881
1896
|
// A tap opens the drawer with focus on its body, so no ring shows and no keyboard opens. A keyboard
|
|
1882
1897
|
// open moves focus to the current row, where the ring shows the reader's place. Find focuses the field.
|
|
1898
|
+
// Every open, by the trigger or the / shortcut, focuses the trigger first, without scrolling, so the drawer
|
|
1899
|
+
// returns focus to it on close. Safari does not focus a button on click, and the shortcut starts anywhere.
|
|
1883
1900
|
drawerBody.tabIndex = -1;
|
|
1884
1901
|
const openDrawer = ({ toFind = false, byPointer = false } = {}) => {
|
|
1885
|
-
if (!drawer.open)
|
|
1902
|
+
if (!drawer.open) {
|
|
1903
|
+
trigger.focus({ preventScroll: true });
|
|
1904
|
+
drawer.showModal();
|
|
1905
|
+
}
|
|
1886
1906
|
const current = rail.querySelector('[aria-current="location"]:not([hidden])');
|
|
1887
1907
|
if (current) centre(drawerBody, current);
|
|
1888
1908
|
if (toFind || !current) find.focus({ preventScroll: true });
|
package/language/components.md
CHANGED
|
@@ -292,6 +292,7 @@ Layer: Core. ui: `UiDrawer`.
|
|
|
292
292
|
- **Do.** Use a drawer for navigation or supporting detail that slides in from the side its trigger sits on, such as phone navigation, and open it from a named button.
|
|
293
293
|
- **Don't.** The page's main task inside a drawer. The drawer holds navigation or detail; the task stays on the page.
|
|
294
294
|
- **Keyboard and screen reader.** As for the dialog. Following an in-page link inside the drawer closes it and moves focus to the link's destination (given `tabindex="-1"` if it is not focusable), not back to the trigger. Modified clicks (a new tab or window) leave it open.
|
|
295
|
+
- **Backdrop.** A tap or click on the backdrop, outside the drawer, closes it, the same way Escape does, and focus returns to the trigger. Only a press that starts outside counts: a drag that starts inside the drawer and ends outside leaves it open. Safari does not support `closedby="any"`, so a script closes it.
|
|
295
296
|
- **Page behind.** While the drawer is open, until it has slid out, the page behind it does not scroll: the root takes `overflow: hidden`, which keeps the reader's position. The page reserves the scrollbar gutter all the time (`scrollbar-gutter: stable` on the root), so hiding a classic scrollbar does not reflow it.
|
|
296
297
|
- **Motion.** It slides in over `--duration` and out over `--duration-fast`, with `--ease-out`, while the overlay fades. Reduced motion shows and hides it at once.
|
|
297
298
|
- **Forced colors.** As for the dialog: the shadow drops and the edge draws in the system colour.
|