@slotted/angular 0.1.0-beta.1 → 0.1.0-beta.3
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 +4 -0
- package/docs/AGENTS.snippet.md +10 -0
- package/docs/app-shell.json +1 -1
- package/docs/button-group.json +1 -0
- package/docs/button-group.md +1 -1
- package/docs/button.json +45 -11
- package/docs/button.md +10 -6
- package/docs/chart.json +7 -0
- package/docs/chart.md +1 -0
- package/docs/checkbox.json +7 -0
- package/docs/checkbox.md +1 -0
- package/docs/currency-field.json +32 -1
- package/docs/currency-field.md +4 -1
- package/docs/dialog.examples.md +20 -0
- package/docs/dialog.json +14 -2
- package/docs/dialog.md +1 -1
- package/docs/event-calendar.json +7 -0
- package/docs/event-calendar.md +1 -0
- package/docs/guidelines/README.md +27 -0
- package/docs/guidelines/async-feedback.md +108 -0
- package/docs/guidelines/browsing.md +74 -0
- package/docs/guidelines/builders.md +97 -0
- package/docs/guidelines/composition.md +129 -0
- package/docs/guidelines/conversations.md +59 -0
- package/docs/guidelines/errors-and-conflicts.md +71 -0
- package/docs/guidelines/forms.md +192 -0
- package/docs/guidelines/index.md +121 -0
- package/docs/guidelines/layout-alignment.md +95 -0
- package/docs/guidelines/ledgers.md +45 -0
- package/docs/guidelines/list-pages.md +165 -0
- package/docs/guidelines/overviews.md +66 -0
- package/docs/guidelines/own-elements.md +115 -0
- package/docs/guidelines/reading-permissions.md +55 -0
- package/docs/guidelines/record-pages.md +178 -0
- package/docs/guidelines/reports.md +123 -0
- package/docs/guidelines/shell-composition.md +94 -0
- package/docs/guidelines/workspaces.md +46 -0
- package/docs/index.md +12 -0
- package/docs/list.json +19 -1
- package/docs/list.md +3 -1
- package/docs/popover.json +1 -1
- package/docs/progress-indicator.json +1 -2
- package/docs/progress-indicator.md +2 -2
- package/docs/segmented-control.json +29 -1
- package/docs/segmented-control.md +17 -1
- package/docs/skills/build-own-element/SKILL.md +90 -0
- package/docs/skills/compose-screen/SKILL.md +76 -0
- package/docs/skills/index.md +9 -0
- package/docs/skills/review-screen/SKILL.md +70 -0
- package/docs/skills/theme-app/SKILL.md +79 -0
- package/docs/skills/waiting-states/SKILL.md +139 -0
- package/docs/split-button.json +1 -0
- package/docs/split-button.md +1 -1
- package/docs/stat-card.json +2 -0
- package/docs/stat-card.md +1 -1
- package/docs/table.examples.md +1 -1
- package/docs/table.json +70 -1
- package/docs/table.md +10 -1
- package/docs/tabs.json +1 -4
- package/docs/tabs.md +1 -1
- package/docs/toggle-group.json +14 -3
- package/docs/toggle-group.md +3 -3
- package/docs/toggle.json +12 -3
- package/docs/toggle.md +3 -3
- package/docs/tokens.md +448 -0
- package/docs/tour.json +1 -1
- package/fesm2022/slotted-angular-app-shell.mjs +48 -16
- package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
- package/fesm2022/slotted-angular-button-group.mjs +4 -4
- package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +51 -19
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +1 -1
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +41 -20
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +11 -2
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +12 -6
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-currency-field.mjs +59 -8
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +18 -22
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +7 -3
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +2 -2
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-dialog.mjs +4 -4
- package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +5 -1
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-event-calendar.mjs +18 -8
- package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +8 -8
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +28 -17
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-loading-overlay.mjs +2 -2
- package/fesm2022/slotted-angular-markdown.mjs +1 -1
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +32 -27
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +2 -2
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +6 -6
- package/fesm2022/slotted-angular-saved-views.mjs +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +25 -5
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +1 -25
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +4 -4
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +2 -2
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +97 -10
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tabs.mjs +2 -2
- package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle-group.mjs +17 -4
- package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-toggle.mjs +2 -2
- package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +1 -1
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +1 -1
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-upload.mjs +2 -2
- package/fesm2022/slotted-angular-wizard.mjs +1 -1
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-app-shell.d.ts +6 -0
- package/types/slotted-angular-app-shell.d.ts.map +1 -1
- package/types/slotted-angular-button-group.d.ts +1 -1
- package/types/slotted-angular-button.d.ts +33 -13
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +9 -0
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +7 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-combobox.d.ts.map +1 -1
- package/types/slotted-angular-currency-field.d.ts +25 -3
- package/types/slotted-angular-currency-field.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-drawer.d.ts.map +1 -1
- package/types/slotted-angular-event-calendar.d.ts +9 -2
- package/types/slotted-angular-event-calendar.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +42 -27
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-multi-select.d.ts +10 -0
- package/types/slotted-angular-multi-select.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +15 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-split-button.d.ts +2 -2
- package/types/slotted-angular-table.d.ts +43 -3
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-toggle-group.d.ts +8 -2
- package/types/slotted-angular-toggle-group.d.ts.map +1 -1
- package/types/slotted-angular-toggle.d.ts +1 -1
- package/types/slotted-angular-toggle.d.ts.map +1 -1
package/docs/tokens.md
ADDED
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
# Tokens
|
|
2
|
+
|
|
3
|
+
The theme states every value the families draw with. An element of the application's own reads the groups on this page, never a literal, and never a token of a group under "Read by their family only" (CP-05, OE-01).
|
|
4
|
+
|
|
5
|
+
A primitive is a step on a scale; a semantic token says what a value is for. Values are the default theme's. A colour has no value here: it changes with the scheme — light, dark, high-contrast — and is chosen by its role. A value that follows density is given for comfortable, compact and dense.
|
|
6
|
+
|
|
7
|
+
## space
|
|
8
|
+
|
|
9
|
+
How much separation or inset a layout needs, smallest first; a gap or an inset is one step.
|
|
10
|
+
|
|
11
|
+
Names: --slotted-space-{step}
|
|
12
|
+
|
|
13
|
+
| Token | Meaning | Default value |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| `--slotted-space-1` | — | 0.125rem |
|
|
16
|
+
| `--slotted-space-2` | — | 0.25rem |
|
|
17
|
+
| `--slotted-space-3` | — | 0.375rem |
|
|
18
|
+
| `--slotted-space-4` | — | 0.5rem |
|
|
19
|
+
| `--slotted-space-5` | — | 0.75rem |
|
|
20
|
+
| `--slotted-space-6` | — | 1rem |
|
|
21
|
+
| `--slotted-space-7` | — | 1.25rem |
|
|
22
|
+
| `--slotted-space-8` | — | 1.5rem |
|
|
23
|
+
| `--slotted-space-9` | — | 2rem |
|
|
24
|
+
| `--slotted-space-10` | — | 2.5rem |
|
|
25
|
+
| `--slotted-space-11` | — | 3rem |
|
|
26
|
+
| `--slotted-space-12` | — | 4rem |
|
|
27
|
+
|
|
28
|
+
## radius
|
|
29
|
+
|
|
30
|
+
How rounded a box or a part is drawn, from none to full.
|
|
31
|
+
|
|
32
|
+
Names: --slotted-radius-{step}
|
|
33
|
+
|
|
34
|
+
| Token | Meaning | Default value |
|
|
35
|
+
| --- | --- | --- |
|
|
36
|
+
| `--slotted-radius-none` | — | 0px |
|
|
37
|
+
| `--slotted-radius-xs` | — | 2px |
|
|
38
|
+
| `--slotted-radius-sm` | — | 4px |
|
|
39
|
+
| `--slotted-radius-md` | — | 6px |
|
|
40
|
+
| `--slotted-radius-lg` | — | 8px |
|
|
41
|
+
| `--slotted-radius-full` | — | 9999px |
|
|
42
|
+
|
|
43
|
+
## font-family
|
|
44
|
+
|
|
45
|
+
The typeface text is set in.
|
|
46
|
+
|
|
47
|
+
Names: --slotted-font-family-{family}
|
|
48
|
+
|
|
49
|
+
| family | Meaning |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| sans | The typeface of the interface's text. |
|
|
52
|
+
| mono | The typeface of code and of values read character by character. |
|
|
53
|
+
| heading | The typeface of headings; a theme may point it at a face of its own. |
|
|
54
|
+
|
|
55
|
+
| Token | Meaning | Default value |
|
|
56
|
+
| --- | --- | --- |
|
|
57
|
+
| `--slotted-font-family-sans` | The typeface of the interface's text. | 'Geist Variable', ui-sans-serif, system-ui, sans-serif |
|
|
58
|
+
| `--slotted-font-family-mono` | The typeface of code and of values read character by character. | 'Geist Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace |
|
|
59
|
+
| `--slotted-font-family-heading` | The typeface of headings; a theme may point it at a face of its own. | 'Geist Variable', ui-sans-serif, system-ui, sans-serif |
|
|
60
|
+
|
|
61
|
+
## font-size
|
|
62
|
+
|
|
63
|
+
What size text is set in, smallest first; text of the application's own takes its size from the `typography` family before this scale.
|
|
64
|
+
|
|
65
|
+
Names: --slotted-font-size-{step}
|
|
66
|
+
|
|
67
|
+
| Token | Meaning | Default value |
|
|
68
|
+
| --- | --- | --- |
|
|
69
|
+
| `--slotted-font-size-xs` | — | 0.75rem |
|
|
70
|
+
| `--slotted-font-size-sm` | — | 0.8125rem |
|
|
71
|
+
| `--slotted-font-size-md` | — | 0.875rem |
|
|
72
|
+
| `--slotted-font-size-lg` | — | 1rem |
|
|
73
|
+
| `--slotted-font-size-xl` | — | 1.125rem |
|
|
74
|
+
| `--slotted-font-size-2xl` | — | 1.25rem |
|
|
75
|
+
| `--slotted-font-size-3xl` | — | 1.5rem |
|
|
76
|
+
| `--slotted-font-size-4xl` | — | 2rem |
|
|
77
|
+
|
|
78
|
+
## line-height
|
|
79
|
+
|
|
80
|
+
The line height that pairs with the font-size step of the same name.
|
|
81
|
+
|
|
82
|
+
Names: --slotted-line-height-{step}
|
|
83
|
+
|
|
84
|
+
| Token | Meaning | Default value |
|
|
85
|
+
| --- | --- | --- |
|
|
86
|
+
| `--slotted-line-height-xs` | — | 1.4 |
|
|
87
|
+
| `--slotted-line-height-sm` | — | 1.45 |
|
|
88
|
+
| `--slotted-line-height-md` | — | 1.5 |
|
|
89
|
+
| `--slotted-line-height-lg` | — | 1.5 |
|
|
90
|
+
| `--slotted-line-height-xl` | — | 1.45 |
|
|
91
|
+
| `--slotted-line-height-2xl` | — | 1.4 |
|
|
92
|
+
| `--slotted-line-height-3xl` | — | 1.3 |
|
|
93
|
+
| `--slotted-line-height-4xl` | — | 1.2 |
|
|
94
|
+
|
|
95
|
+
## letter-spacing
|
|
96
|
+
|
|
97
|
+
The tracking large type takes: the tight step at the md and lg display steps, the tighter step at 3xl and 4xl. Text at the body steps reads the face as drawn.
|
|
98
|
+
|
|
99
|
+
| Token | Meaning | Default value |
|
|
100
|
+
| --- | --- | --- |
|
|
101
|
+
| `--slotted-letter-spacing-tight` | The tracking of a display figure or a wordmark at the md and lg font-size steps. | -0.02em |
|
|
102
|
+
| `--slotted-letter-spacing-tighter` | The tracking of a display figure at the 3xl and 4xl font-size steps. | -0.03em |
|
|
103
|
+
|
|
104
|
+
## font-weight
|
|
105
|
+
|
|
106
|
+
How much typographic emphasis text carries.
|
|
107
|
+
|
|
108
|
+
Names: --slotted-font-weight-{weight}
|
|
109
|
+
|
|
110
|
+
| weight | Meaning |
|
|
111
|
+
| --- | --- |
|
|
112
|
+
| regular | Running text. |
|
|
113
|
+
| medium | Text that stands out from running text without heading it. |
|
|
114
|
+
| semibold | A heading, a control's label, a figure that leads. |
|
|
115
|
+
|
|
116
|
+
| Token | Meaning | Default value |
|
|
117
|
+
| --- | --- | --- |
|
|
118
|
+
| `--slotted-font-weight-regular` | Running text. | 400 |
|
|
119
|
+
| `--slotted-font-weight-medium` | Text that stands out from running text without heading it. | 500 |
|
|
120
|
+
| `--slotted-font-weight-semibold` | A heading, a control's label, a figure that leads. | 600 |
|
|
121
|
+
|
|
122
|
+
## border-width
|
|
123
|
+
|
|
124
|
+
How thick an edge or a ring is drawn.
|
|
125
|
+
|
|
126
|
+
Names: --slotted-border-width-{width}
|
|
127
|
+
|
|
128
|
+
| width | Meaning |
|
|
129
|
+
| --- | --- |
|
|
130
|
+
| thin | The edge of a box, a control or a divider. |
|
|
131
|
+
| medium | The weight between thin and thick. |
|
|
132
|
+
| thick | The heaviest edge. |
|
|
133
|
+
|
|
134
|
+
| Token | Meaning | Default value |
|
|
135
|
+
| --- | --- | --- |
|
|
136
|
+
| `--slotted-border-width-thin` | The edge of a box, a control or a divider. | 1px |
|
|
137
|
+
| `--slotted-border-width-thick` | The heaviest edge. | 2px |
|
|
138
|
+
| `--slotted-border-width-medium` | The weight between thin and thick. | 1.5px |
|
|
139
|
+
|
|
140
|
+
## duration
|
|
141
|
+
|
|
142
|
+
How long a transition or one cycle of a loop takes. The steps from instant to long collapse under reduced motion; the loops do not, so a repeating animation stops there instead.
|
|
143
|
+
|
|
144
|
+
Names: --slotted-duration-{step}
|
|
145
|
+
|
|
146
|
+
| step | Meaning |
|
|
147
|
+
| --- | --- |
|
|
148
|
+
| instant | A change that must not read as motion. |
|
|
149
|
+
| short | A control changing state: a ground, a border, a mark. |
|
|
150
|
+
| medium | A part appearing or leaving: a popover, a menu, a tooltip. |
|
|
151
|
+
| long | A surface entering or leaving over a larger distance: a drawer, a dialog. |
|
|
152
|
+
| loop-fast | One cycle of a fast repeating animation. |
|
|
153
|
+
| loop | One cycle of a repeating animation. |
|
|
154
|
+
| loop-slow | One cycle of a slow repeating animation. |
|
|
155
|
+
|
|
156
|
+
| Token | Meaning | Default value |
|
|
157
|
+
| --- | --- | --- |
|
|
158
|
+
| `--slotted-duration-loop-fast` | One cycle of a fast repeating animation. | 700ms |
|
|
159
|
+
| `--slotted-duration-loop` | One cycle of a repeating animation. | 1.1s |
|
|
160
|
+
| `--slotted-duration-loop-slow` | One cycle of a slow repeating animation. | 1.6s |
|
|
161
|
+
| `--slotted-duration-instant` | A change that must not read as motion. | 1ms |
|
|
162
|
+
| `--slotted-duration-short` | A control changing state: a ground, a border, a mark. | 120ms; 1ms under reduced motion |
|
|
163
|
+
| `--slotted-duration-medium` | A part appearing or leaving: a popover, a menu, a tooltip. | 200ms; 1ms under reduced motion |
|
|
164
|
+
| `--slotted-duration-long` | A surface entering or leaving over a larger distance: a drawer, a dialog. | 320ms; 1ms under reduced motion |
|
|
165
|
+
|
|
166
|
+
## easing
|
|
167
|
+
|
|
168
|
+
How the velocity of a transition changes.
|
|
169
|
+
|
|
170
|
+
Names: --slotted-easing-{curve}
|
|
171
|
+
|
|
172
|
+
| curve | Meaning |
|
|
173
|
+
| --- | --- |
|
|
174
|
+
| standard | A change within the screen. |
|
|
175
|
+
| enter | A part arriving. |
|
|
176
|
+
| exit | A part leaving. |
|
|
177
|
+
| emphasized | A change meant to be noticed; it overshoots its end. |
|
|
178
|
+
|
|
179
|
+
| Token | Meaning | Default value |
|
|
180
|
+
| --- | --- | --- |
|
|
181
|
+
| `--slotted-easing-standard` | A change within the screen. | cubic-bezier(0.2, 0, 0, 1) |
|
|
182
|
+
| `--slotted-easing-enter` | A part arriving. | cubic-bezier(0.05, 0.7, 0.1, 1) |
|
|
183
|
+
| `--slotted-easing-exit` | A part leaving. | cubic-bezier(0.3, 0, 0.8, 0.15) |
|
|
184
|
+
| `--slotted-easing-emphasized` | A change meant to be noticed; it overshoots its end. | cubic-bezier(0.3, 0, 0, 1.3) |
|
|
185
|
+
|
|
186
|
+
## z-index
|
|
187
|
+
|
|
188
|
+
Which layer an element occupies above the page.
|
|
189
|
+
|
|
190
|
+
Names: --slotted-z-index-{layer}
|
|
191
|
+
|
|
192
|
+
| layer | Meaning |
|
|
193
|
+
| --- | --- |
|
|
194
|
+
| sticky | A header or a column that stays in place while its region scrolls. |
|
|
195
|
+
| overlay | A modal surface and the scrim under it. |
|
|
196
|
+
| popover | A popover, a menu or a tooltip; above an overlay, so one opens from a dialog. |
|
|
197
|
+
| toast | A toast; above every other layer. |
|
|
198
|
+
|
|
199
|
+
| Token | Meaning | Default value |
|
|
200
|
+
| --- | --- | --- |
|
|
201
|
+
| `--slotted-z-index-sticky` | A header or a column that stays in place while its region scrolls. | 100 |
|
|
202
|
+
| `--slotted-z-index-overlay` | A modal surface and the scrim under it. | 1000 |
|
|
203
|
+
| `--slotted-z-index-popover` | A popover, a menu or a tooltip; above an overlay, so one opens from a dialog. | 1100 |
|
|
204
|
+
| `--slotted-z-index-toast` | A toast; above every other layer. | 1200 |
|
|
205
|
+
|
|
206
|
+
## shadow
|
|
207
|
+
|
|
208
|
+
What elevation a surface has above the one under it, smallest first; under forced colours every step is none.
|
|
209
|
+
|
|
210
|
+
Names: --slotted-shadow-{step}
|
|
211
|
+
|
|
212
|
+
| Token | Meaning | Default value |
|
|
213
|
+
| --- | --- | --- |
|
|
214
|
+
| `--slotted-shadow-xs` | — | by scheme |
|
|
215
|
+
| `--slotted-shadow-sm` | — | by scheme |
|
|
216
|
+
| `--slotted-shadow-md` | — | by scheme |
|
|
217
|
+
| `--slotted-shadow-lg` | — | by scheme |
|
|
218
|
+
|
|
219
|
+
## surface
|
|
220
|
+
|
|
221
|
+
The grounds content stands on.
|
|
222
|
+
|
|
223
|
+
| Token | Meaning | Default value |
|
|
224
|
+
| --- | --- | --- |
|
|
225
|
+
| `--slotted-surface` | The ground of the page's content and of a card. | by scheme |
|
|
226
|
+
| `--slotted-surface-raised` | The ground of a surface above another: a popover, a menu, a dialog; paired with a step of `shadow`. | by scheme |
|
|
227
|
+
| `--slotted-surface-sunken` | The canvas under the content: the ground a card and a field stand out from. | by scheme |
|
|
228
|
+
| `--slotted-surface-inverse` | A ground in the opposite lightness, with `--slotted-text-inverse` on it. | by scheme |
|
|
229
|
+
| `--slotted-surface-inverse-hover` | The inverse ground under the pointer: `--slotted-surface-inverse` moved a share toward the opposite lightness. | by scheme |
|
|
230
|
+
| `--slotted-surface-inverse-active` | The inverse ground while pressed, a step beyond the hover. | by scheme |
|
|
231
|
+
| `--slotted-surface-material` | The ground of a bar that floats over scrolling content, drawn as a material: `--slotted-surface` at a partial share over transparency, behind `--slotted-material-backdrop`. Under `prefers-reduced-transparency: reduce` it is `--slotted-surface`, and under forced colours the Canvas system colour. | by scheme |
|
|
232
|
+
| `--slotted-material-backdrop` | The backdrop filter a material is drawn with: the content scrolling under it, saturated and blurred. Under `prefers-reduced-transparency: reduce` it is `none`. | saturate(1.6) blur(20px) |
|
|
233
|
+
|
|
234
|
+
## text
|
|
235
|
+
|
|
236
|
+
The colours text is painted in.
|
|
237
|
+
|
|
238
|
+
| Token | Meaning | Default value |
|
|
239
|
+
| --- | --- | --- |
|
|
240
|
+
| `--slotted-text` | Text on a surface. | by scheme |
|
|
241
|
+
| `--slotted-text-muted` | Text that ranks below the text beside it: a caption, a hint, a secondary value. | by scheme |
|
|
242
|
+
| `--slotted-text-inverse` | Text on `--slotted-surface-inverse`. | by scheme |
|
|
243
|
+
|
|
244
|
+
## border
|
|
245
|
+
|
|
246
|
+
The colours of lines between and inside surfaces.
|
|
247
|
+
|
|
248
|
+
| Token | Meaning | Default value |
|
|
249
|
+
| --- | --- | --- |
|
|
250
|
+
| `--slotted-border-subtle` | A rule inside a surface: a divider, the edge of a region, the seam under a header. | by scheme |
|
|
251
|
+
| `--slotted-border-strong` | The line between two surfaces; it holds 3:1 against every surface a control stands on. | by scheme |
|
|
252
|
+
|
|
253
|
+
## disabled
|
|
254
|
+
|
|
255
|
+
How an unavailable control is painted.
|
|
256
|
+
|
|
257
|
+
Names: --slotted-disabled-{role}
|
|
258
|
+
|
|
259
|
+
| role | Meaning |
|
|
260
|
+
| --- | --- |
|
|
261
|
+
| background | The ground of an unavailable control. |
|
|
262
|
+
| foreground | The text and icons of an unavailable control. |
|
|
263
|
+
| border | The edge of an unavailable control, a step lighter than the edge of an available one. |
|
|
264
|
+
|
|
265
|
+
## focus-ring
|
|
266
|
+
|
|
267
|
+
The outline every focused element draws.
|
|
268
|
+
|
|
269
|
+
| Token | Meaning | Default value |
|
|
270
|
+
| --- | --- | --- |
|
|
271
|
+
| `--slotted-focus-ring-width` | The thickness of the focus outline. | 2px |
|
|
272
|
+
| `--slotted-focus-ring-offset` | The distance between the element and its focus outline. | 2px |
|
|
273
|
+
| `--slotted-focus-ring-color` | The colour of the focus outline. | by scheme |
|
|
274
|
+
| `--slotted-focus-ring-color-invalid` | The colour of the focus outline of a control in error; an element in error points `--slotted-focus-ring-color` at it. | by scheme |
|
|
275
|
+
|
|
276
|
+
## target
|
|
277
|
+
|
|
278
|
+
How small an interactive target may be.
|
|
279
|
+
|
|
280
|
+
| Token | Meaning | Default value |
|
|
281
|
+
| --- | --- | --- |
|
|
282
|
+
| `--slotted-target-min` | The smallest target in both axes: 24 by 24 CSS pixels. | 24px |
|
|
283
|
+
| `--slotted-target-comfortable` | The size a target grows to under a coarse pointer. | 44px |
|
|
284
|
+
|
|
285
|
+
## tone
|
|
286
|
+
|
|
287
|
+
What an element carrying an intent is painted with: six tones, each with the same nine roles.
|
|
288
|
+
|
|
289
|
+
Names: --slotted-tone-{tone}-{role}
|
|
290
|
+
|
|
291
|
+
| tone | Meaning |
|
|
292
|
+
| --- | --- |
|
|
293
|
+
| accent | The product's intent: the primary action, the chosen option, the current place. |
|
|
294
|
+
| secondary | A second intent beside accent, for an action or a mark that must not compete with it. |
|
|
295
|
+
| neutral | Ink: the inverse surface as a fill and the text colour as a label, for a primary action in a product that keeps the accent for data. |
|
|
296
|
+
| success | A result that completed or a state that is healthy. |
|
|
297
|
+
| warning | A state that needs attention before it becomes a failure. |
|
|
298
|
+
| danger | A failure, an error or an action that destroys data. |
|
|
299
|
+
|
|
300
|
+
| role | Meaning |
|
|
301
|
+
| --- | --- |
|
|
302
|
+
| solid | A filled ground: the primary button of the tone. |
|
|
303
|
+
| solid-hover | The filled ground under the pointer. |
|
|
304
|
+
| solid-active | The filled ground while pressed. |
|
|
305
|
+
| on-solid | Text and icons on the filled ground. |
|
|
306
|
+
| surface | A tinted ground; a state that must be seen pairs it with the tone's border. |
|
|
307
|
+
| subtle-hover | The tint under the pointer of an element with no filled ground. |
|
|
308
|
+
| subtle-active | That tint while pressed. |
|
|
309
|
+
| border | An edge in the tone, at the non-text contrast ratio against the page and against its own surface. |
|
|
310
|
+
| text | Text in the tone on a surface. |
|
|
311
|
+
|
|
312
|
+
## data
|
|
313
|
+
|
|
314
|
+
What a series of data is painted with: a line, a bar, a slice. Slots are assigned in order and never skipped.
|
|
315
|
+
|
|
316
|
+
Names: --slotted-data-{slot}
|
|
317
|
+
|
|
318
|
+
| Token | Meaning | Default value |
|
|
319
|
+
| --- | --- | --- |
|
|
320
|
+
| `--slotted-data-1` | — | by scheme |
|
|
321
|
+
| `--slotted-data-2` | — | by scheme |
|
|
322
|
+
| `--slotted-data-3` | — | by scheme |
|
|
323
|
+
| `--slotted-data-4` | — | by scheme |
|
|
324
|
+
| `--slotted-data-5` | — | by scheme |
|
|
325
|
+
| `--slotted-data-6` | — | by scheme |
|
|
326
|
+
| `--slotted-data-7` | — | by scheme |
|
|
327
|
+
| `--slotted-data-8` | — | by scheme |
|
|
328
|
+
|
|
329
|
+
## control
|
|
330
|
+
|
|
331
|
+
What a control's text and frame look like at every size.
|
|
332
|
+
|
|
333
|
+
| Token | Meaning | Default value |
|
|
334
|
+
| --- | --- | --- |
|
|
335
|
+
| `--slotted-control-font-family` | The typeface of a control's text. | 'Geist Variable', ui-sans-serif, system-ui, sans-serif |
|
|
336
|
+
| `--slotted-control-font-weight` | The weight of a control's label. | 600 |
|
|
337
|
+
| `--slotted-control-line-height` | The line height of a control's text. | 1 |
|
|
338
|
+
| `--slotted-control-letter-spacing` | The letter spacing of a control's text. | 0 |
|
|
339
|
+
| `--slotted-control-border-width` | The edge width of a control at rest. | 1px |
|
|
340
|
+
| `--slotted-control-radius` | The corner of a control. | 4px |
|
|
341
|
+
| `--slotted-control-shadow-focus-geometry` | Offset, blur and spread of the shadow a focused control draws, with no colour; drawn with `--slotted-focus-ring-color`. | 0 1px 4px -1px |
|
|
342
|
+
| `--slotted-control-transition-duration` | How long a control takes to change state. | 120ms; 1ms under reduced motion |
|
|
343
|
+
| `--slotted-control-transition-easing` | The curve of a control's change of state. | cubic-bezier(0.2, 0, 0, 1) |
|
|
344
|
+
| `--slotted-control-invalid-edge-width` | The edge an invalid control adds inside its border, so the state reads where colour cannot. | 1px |
|
|
345
|
+
| `--slotted-control-border-color` | The edge colour of a control at rest. | by scheme |
|
|
346
|
+
| `--slotted-control-surface` | The ground of a control at rest: a field, a select, a segmented control. | by scheme |
|
|
347
|
+
| `--slotted-control-shadow` | The shadow of a control at rest. | by scheme |
|
|
348
|
+
|
|
349
|
+
## control-size
|
|
350
|
+
|
|
351
|
+
The size and inner spacing of a control at each size step; every value follows density.
|
|
352
|
+
|
|
353
|
+
Names: --slotted-control-{part}-{size}
|
|
354
|
+
|
|
355
|
+
| part | Meaning |
|
|
356
|
+
| --- | --- |
|
|
357
|
+
| height | The block size of the control. |
|
|
358
|
+
| padding-inline | The inline space between the control's edge and its content. |
|
|
359
|
+
| font-size | The size of the control's text. |
|
|
360
|
+
| icon-size | The size of an icon inside the control. |
|
|
361
|
+
| gap | The space between items inside the control, and between one choice and the next in a group. |
|
|
362
|
+
| label-gap | The space between a binary control — a box, a circle, a switch — and its own label. |
|
|
363
|
+
| inner-size | The block size of what stands inside the control: a key, a chip, a clear mark. |
|
|
364
|
+
|
|
365
|
+
| size | Meaning |
|
|
366
|
+
| --- | --- |
|
|
367
|
+
| sm | The small step. |
|
|
368
|
+
| md | The medium step. |
|
|
369
|
+
| lg | The large step. |
|
|
370
|
+
|
|
371
|
+
| Token | Meaning | Default value |
|
|
372
|
+
| --- | --- | --- |
|
|
373
|
+
| `--slotted-control-height-sm` | The block size of the control. The small step. | comfortable 30px, compact 26px, dense 24px |
|
|
374
|
+
| `--slotted-control-height-md` | The block size of the control. The medium step. | comfortable 34px, compact 28px, dense 26px |
|
|
375
|
+
| `--slotted-control-height-lg` | The block size of the control. The large step. | comfortable 38px, compact 32px, dense 30px |
|
|
376
|
+
| `--slotted-control-padding-inline-sm` | The inline space between the control's edge and its content. The small step. | comfortable 10px, compact 8px, dense 6px |
|
|
377
|
+
| `--slotted-control-padding-inline-md` | The inline space between the control's edge and its content. The medium step. | comfortable 13px, compact 10px, dense 8px |
|
|
378
|
+
| `--slotted-control-padding-inline-lg` | The inline space between the control's edge and its content. The large step. | comfortable 16px, compact 12px, dense 10px |
|
|
379
|
+
| `--slotted-control-font-size-sm` | The size of the control's text. The small step. | comfortable 12px, compact 12px, dense 12px |
|
|
380
|
+
| `--slotted-control-font-size-md` | The size of the control's text. The medium step. | comfortable 13px, compact 12px, dense 12px |
|
|
381
|
+
| `--slotted-control-font-size-lg` | The size of the control's text. The large step. | comfortable 14px, compact 13px, dense 12px |
|
|
382
|
+
| `--slotted-control-icon-size-sm` | The size of an icon inside the control. The small step. | comfortable 14px, compact 13px, dense 12px |
|
|
383
|
+
| `--slotted-control-icon-size-md` | The size of an icon inside the control. The medium step. | comfortable 16px, compact 14px, dense 13px |
|
|
384
|
+
| `--slotted-control-icon-size-lg` | The size of an icon inside the control. The large step. | comfortable 18px, compact 16px, dense 14px |
|
|
385
|
+
| `--slotted-control-gap-sm` | The space between items inside the control, and between one choice and the next in a group. The small step. | comfortable 6px, compact 4px, dense 4px |
|
|
386
|
+
| `--slotted-control-gap-md` | The space between items inside the control, and between one choice and the next in a group. The medium step. | comfortable 8px, compact 6px, dense 4px |
|
|
387
|
+
| `--slotted-control-gap-lg` | The space between items inside the control, and between one choice and the next in a group. The large step. | comfortable 8px, compact 6px, dense 6px |
|
|
388
|
+
| `--slotted-control-label-gap-sm` | The space between a binary control — a box, a circle, a switch — and its own label. The small step. | comfortable 8px, compact 6px, dense 6px |
|
|
389
|
+
| `--slotted-control-label-gap-md` | The space between a binary control — a box, a circle, a switch — and its own label. The medium step. | comfortable 12px, compact 8px, dense 6px |
|
|
390
|
+
| `--slotted-control-label-gap-lg` | The space between a binary control — a box, a circle, a switch — and its own label. The large step. | comfortable 12px, compact 8px, dense 8px |
|
|
391
|
+
| `--slotted-control-inner-size-sm` | The block size of what stands inside the control: a key, a chip, a clear mark. The small step. | comfortable 22px, compact 18px, dense 16px |
|
|
392
|
+
| `--slotted-control-inner-size-md` | The block size of what stands inside the control: a key, a chip, a clear mark. The medium step. | comfortable 24px, compact 20px, dense 18px |
|
|
393
|
+
| `--slotted-control-inner-size-lg` | The block size of what stands inside the control: a key, a chip, a clear mark. The large step. | comfortable 28px, compact 24px, dense 22px |
|
|
394
|
+
|
|
395
|
+
## selection
|
|
396
|
+
|
|
397
|
+
The size of a selection control and of the halo behind it.
|
|
398
|
+
|
|
399
|
+
| Token | Meaning | Default value |
|
|
400
|
+
| --- | --- | --- |
|
|
401
|
+
| `--slotted-selection-size-sm` | The box of a checkbox and the circle of a radio at the small step. | 14px |
|
|
402
|
+
| `--slotted-selection-size-md` | The box and the circle at the medium step. | 16px |
|
|
403
|
+
| `--slotted-selection-size-lg` | The box and the circle at the large step. | 18px |
|
|
404
|
+
| `--slotted-selection-halo-opacity` | The share of `--slotted-tone-accent-text` in the halo behind a selection control under the pointer. | 0.12 |
|
|
405
|
+
|
|
406
|
+
## highlight
|
|
407
|
+
|
|
408
|
+
How strong the band behind a matched span is.
|
|
409
|
+
|
|
410
|
+
| Token | Meaning | Default value |
|
|
411
|
+
| --- | --- | --- |
|
|
412
|
+
| `--slotted-highlight-tint-opacity` | The share of `--slotted-tone-accent-text` in the band behind a matched span. | 0.075 |
|
|
413
|
+
|
|
414
|
+
## current
|
|
415
|
+
|
|
416
|
+
How the place the reader is on is marked.
|
|
417
|
+
|
|
418
|
+
| Token | Meaning | Default value |
|
|
419
|
+
| --- | --- | --- |
|
|
420
|
+
| `--slotted-current-edge` | The edge of the row the reader is on, drawn over its tone ground. | by scheme |
|
|
421
|
+
|
|
422
|
+
## state
|
|
423
|
+
|
|
424
|
+
Translucent layers laid over whatever surface an element stands on, so a hovered, pressed or selected row reads the same on the page and on a raised surface. Each is the scheme's text colour at a small share over transparency. Under forced colours every layer is the Canvas system colour: the state is carried by the system colours the family draws, Highlight for selection and an outline for focus.
|
|
425
|
+
|
|
426
|
+
| Token | Meaning | Default value |
|
|
427
|
+
| --- | --- | --- |
|
|
428
|
+
| `--slotted-state-hover` | The layer under the pointer. | by scheme |
|
|
429
|
+
| `--slotted-state-pressed` | The layer while the element is pressed; the strongest of the three. | by scheme |
|
|
430
|
+
| `--slotted-state-selected` | The layer of a selected or open element, between hover and pressed. | by scheme |
|
|
431
|
+
|
|
432
|
+
## scrim
|
|
433
|
+
|
|
434
|
+
The veil under a modal surface.
|
|
435
|
+
|
|
436
|
+
| Token | Meaning | Default value |
|
|
437
|
+
| --- | --- | --- |
|
|
438
|
+
| `--slotted-scrim` | The veil between the page and a modal surface above it. | by scheme |
|
|
439
|
+
|
|
440
|
+
## Read by their family only
|
|
441
|
+
|
|
442
|
+
A family adjusts these for itself. An element of the application's own does not read them.
|
|
443
|
+
|
|
444
|
+
- icon: The geometry of an icon a family draws itself; an icon of the application's own is drawn with the icon family. Names: --slotted-icon-{glyph}
|
|
445
|
+
- upload-kind: The tile colours of file kinds in upload and attachment. Names: --slotted-upload-kind-{kind}
|
|
446
|
+
- code: The colours of syntax scopes in code-block. Names: --slotted-code-{scope}
|
|
447
|
+
- rating: The edge of a star in rating. Names: --slotted-rating-edge
|
|
448
|
+
- avatar-size: The sizes of avatar, smallest first. Names: --slotted-avatar-size-{size}
|
package/docs/tour.json
CHANGED
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
"part": "content",
|
|
177
177
|
"element": "[slTourContent]",
|
|
178
178
|
"required": true,
|
|
179
|
-
"purpose": "The card: role=\"dialog\" unless you wrote a role, named by the title unless you wrote aria-label, aria-modal on a modal step. Reads the arrow keys."
|
|
179
|
+
"purpose": "The card: role=\"dialog\" unless you wrote a role, named by the title unless you wrote aria-label, aria-modal on a modal step. Reads the arrow keys. It draws no padding: slTourHeader, slTourBody and slTourFooter carry the card inset, set by --slotted-tour-padding-inline and --slotted-tour-padding-block."
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"part": "media",
|