@kanso-labs/kanso-ui-core 0.4.1 → 0.6.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.
- package/README.md +34 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -423
- package/dist/product-theme-CfDDgv7F.js +1012 -0
- package/dist/product-theme-CfDDgv7F.js.map +1 -0
- package/dist/product-theme-D117EbtF.d.ts +803 -0
- package/dist/themes.d.ts +14 -2
- package/dist/themes.js +1066 -959
- package/dist/themes.js.map +1 -1
- package/dist/tokens.css +445 -128
- package/dist/tokens.json +905 -591
- package/package.json +2 -2
- package/dist/defaults-UY9g7wIs.d.ts +0 -429
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,803 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A theme: any of the `--kui-*` custom properties `tokens.css` lists, each set
|
|
3
|
+
* to a value in CSS syntax. Hand one to `ThemeScope`'s `theme` prop, and every
|
|
4
|
+
* component inside reads it.
|
|
5
|
+
*
|
|
6
|
+
* The values hold for both schemes. A theme with a value of its own for light
|
|
7
|
+
* and for dark is two of these, with the scope handed the one for the scheme
|
|
8
|
+
* in use.
|
|
9
|
+
*/
|
|
10
|
+
type KuiTheme = {
|
|
11
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
12
|
+
readonly '--kui-color-accent'?: string;
|
|
13
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
14
|
+
readonly '--kui-color-accent-on-ink'?: string;
|
|
15
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
16
|
+
readonly '--kui-color-accent-soft'?: string;
|
|
17
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
18
|
+
readonly '--kui-color-background'?: string;
|
|
19
|
+
/** Defaults to `#b25b00` in the light scheme and `#ffb870` in the dark. */
|
|
20
|
+
readonly '--kui-color-caution'?: string;
|
|
21
|
+
/** Defaults to `#ffe7cc` in the light scheme and `#4a2a00` in the dark. */
|
|
22
|
+
readonly '--kui-color-caution-soft'?: string;
|
|
23
|
+
/** Defaults to `#ffc27a` in the light scheme and `#7a4600` in the dark. */
|
|
24
|
+
readonly '--kui-color-caution-stripe'?: string;
|
|
25
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
26
|
+
readonly '--kui-color-container'?: string;
|
|
27
|
+
/** Defaults to `#b3261e` in the light scheme and `#f2b8b5` in the dark. */
|
|
28
|
+
readonly '--kui-color-critical'?: string;
|
|
29
|
+
/** Defaults to `#fcdedc` in the light scheme and `#4d1512` in the dark. */
|
|
30
|
+
readonly '--kui-color-critical-soft'?: string;
|
|
31
|
+
/** Defaults to `#e3e3e3` in the light scheme and `#333333` in the dark. */
|
|
32
|
+
readonly '--kui-color-divider'?: string;
|
|
33
|
+
/** Defaults to `#b3261e` in the light scheme and `#f2b8b5` in the dark. */
|
|
34
|
+
readonly '--kui-color-error'?: string;
|
|
35
|
+
/** Defaults to `#fcdedc` in the light scheme and `#4d1512` in the dark. */
|
|
36
|
+
readonly '--kui-color-error-container'?: string;
|
|
37
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
38
|
+
readonly '--kui-color-focus-ring'?: string;
|
|
39
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
40
|
+
readonly '--kui-color-ink'?: string;
|
|
41
|
+
/** Defaults to `#5c5c5c` in the light scheme and `#b3b3b3` in the dark. */
|
|
42
|
+
readonly '--kui-color-ink-muted'?: string;
|
|
43
|
+
/** Defaults to `#f2b8b5` in the light scheme and `#b3261e` in the dark. */
|
|
44
|
+
readonly '--kui-color-inverse-error'?: string;
|
|
45
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
46
|
+
readonly '--kui-color-inverse-on-surface'?: string;
|
|
47
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
48
|
+
readonly '--kui-color-inverse-primary'?: string;
|
|
49
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
50
|
+
readonly '--kui-color-inverse-surface'?: string;
|
|
51
|
+
/** Defaults to `#ffffff` in the light scheme and `#1c1c1c` in the dark. */
|
|
52
|
+
readonly '--kui-color-kanso-surface'?: string;
|
|
53
|
+
/** Defaults to `#a63a1f` in the light scheme and `#ffb4a1` in the dark. */
|
|
54
|
+
readonly '--kui-color-negative'?: string;
|
|
55
|
+
/** Defaults to `#fce3dc` in the light scheme and `#4a1a10` in the dark. */
|
|
56
|
+
readonly '--kui-color-negative-container'?: string;
|
|
57
|
+
/** Defaults to `#fce3dc` in the light scheme and `#4a1a10` in the dark. */
|
|
58
|
+
readonly '--kui-color-negative-soft'?: string;
|
|
59
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
60
|
+
readonly '--kui-color-on-accent'?: string;
|
|
61
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
62
|
+
readonly '--kui-color-on-accent-soft'?: string;
|
|
63
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
64
|
+
readonly '--kui-color-on-background'?: string;
|
|
65
|
+
/** Defaults to `#5c2e00` in the light scheme and `#ffddb3` in the dark. */
|
|
66
|
+
readonly '--kui-color-on-caution-soft'?: string;
|
|
67
|
+
/** Defaults to `#ffffff` in the light scheme and `#601410` in the dark. */
|
|
68
|
+
readonly '--kui-color-on-critical'?: string;
|
|
69
|
+
/** Defaults to `#5f0e0a` in the light scheme and `#ffdad6` in the dark. */
|
|
70
|
+
readonly '--kui-color-on-critical-soft'?: string;
|
|
71
|
+
/** Defaults to `#ffffff` in the light scheme and `#601410` in the dark. */
|
|
72
|
+
readonly '--kui-color-on-error'?: string;
|
|
73
|
+
/** Defaults to `#5f0e0a` in the light scheme and `#ffdad6` in the dark. */
|
|
74
|
+
readonly '--kui-color-on-error-container'?: string;
|
|
75
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
76
|
+
readonly '--kui-color-on-ink'?: string;
|
|
77
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
78
|
+
readonly '--kui-color-on-negative'?: string;
|
|
79
|
+
/** Defaults to `#5a1a0a` in the light scheme and `#ffdad0` in the dark. */
|
|
80
|
+
readonly '--kui-color-on-negative-container'?: string;
|
|
81
|
+
/** Defaults to `#5a1a0a` in the light scheme and `#ffdad0` in the dark. */
|
|
82
|
+
readonly '--kui-color-on-negative-soft'?: string;
|
|
83
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
84
|
+
readonly '--kui-color-on-positive'?: string;
|
|
85
|
+
/** Defaults to `#0b3a1b` in the light scheme and `#c6f2d2` in the dark. */
|
|
86
|
+
readonly '--kui-color-on-positive-container'?: string;
|
|
87
|
+
/** Defaults to `#0b3a1b` in the light scheme and `#c6f2d2` in the dark. */
|
|
88
|
+
readonly '--kui-color-on-positive-soft'?: string;
|
|
89
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
90
|
+
readonly '--kui-color-on-primary'?: string;
|
|
91
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
92
|
+
readonly '--kui-color-on-primary-container'?: string;
|
|
93
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
94
|
+
readonly '--kui-color-on-primary-fixed'?: string;
|
|
95
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
96
|
+
readonly '--kui-color-on-primary-fixed-variant'?: string;
|
|
97
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
98
|
+
readonly '--kui-color-on-secondary'?: string;
|
|
99
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
100
|
+
readonly '--kui-color-on-secondary-container'?: string;
|
|
101
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
102
|
+
readonly '--kui-color-on-secondary-fixed'?: string;
|
|
103
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
104
|
+
readonly '--kui-color-on-secondary-fixed-variant'?: string;
|
|
105
|
+
/** Defaults to `#ffffff`. */
|
|
106
|
+
readonly '--kui-color-on-spotlight'?: string;
|
|
107
|
+
/** Defaults to `#1a1a1a`. */
|
|
108
|
+
readonly '--kui-color-on-spotlight-button'?: string;
|
|
109
|
+
/** Defaults to `rgba(255, 255, 255, 0.8)`. */
|
|
110
|
+
readonly '--kui-color-on-spotlight-muted'?: string;
|
|
111
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
112
|
+
readonly '--kui-color-on-surface'?: string;
|
|
113
|
+
/** Defaults to `#5c5c5c` in the light scheme and `#b3b3b3` in the dark. */
|
|
114
|
+
readonly '--kui-color-on-surface-variant'?: string;
|
|
115
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
116
|
+
readonly '--kui-color-on-tertiary'?: string;
|
|
117
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
118
|
+
readonly '--kui-color-on-tertiary-container'?: string;
|
|
119
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
120
|
+
readonly '--kui-color-on-tertiary-fixed'?: string;
|
|
121
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
122
|
+
readonly '--kui-color-on-tertiary-fixed-variant'?: string;
|
|
123
|
+
/** Defaults to `#8a8a8a` in the light scheme and `#8c8c8c` in the dark. */
|
|
124
|
+
readonly '--kui-color-outline'?: string;
|
|
125
|
+
/** Defaults to `#e3e3e3` in the light scheme and `#333333` in the dark. */
|
|
126
|
+
readonly '--kui-color-outline-variant'?: string;
|
|
127
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
128
|
+
readonly '--kui-color-paper'?: string;
|
|
129
|
+
/** Defaults to `#1e6b35` in the light scheme and `#7bd99a` in the dark. */
|
|
130
|
+
readonly '--kui-color-positive'?: string;
|
|
131
|
+
/** Defaults to `#ddf2e2` in the light scheme and `#123a20` in the dark. */
|
|
132
|
+
readonly '--kui-color-positive-container'?: string;
|
|
133
|
+
/** Defaults to `#ddf2e2` in the light scheme and `#123a20` in the dark. */
|
|
134
|
+
readonly '--kui-color-positive-soft'?: string;
|
|
135
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
136
|
+
readonly '--kui-color-primary'?: string;
|
|
137
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
138
|
+
readonly '--kui-color-primary-container'?: string;
|
|
139
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
140
|
+
readonly '--kui-color-primary-fixed'?: string;
|
|
141
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
142
|
+
readonly '--kui-color-primary-fixed-dim'?: string;
|
|
143
|
+
/** Defaults to `rgba(0, 0, 0, 0.4)` in the light scheme and `rgba(0, 0, 0, 0.6)` in the dark. */
|
|
144
|
+
readonly '--kui-color-scrim'?: string;
|
|
145
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
146
|
+
readonly '--kui-color-secondary'?: string;
|
|
147
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
148
|
+
readonly '--kui-color-secondary-container'?: string;
|
|
149
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
150
|
+
readonly '--kui-color-secondary-fixed'?: string;
|
|
151
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
152
|
+
readonly '--kui-color-secondary-fixed-dim'?: string;
|
|
153
|
+
/** Defaults to `#000000`. */
|
|
154
|
+
readonly '--kui-color-shadow'?: string;
|
|
155
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#2b2b2b` in the dark. */
|
|
156
|
+
readonly '--kui-color-spotlight'?: string;
|
|
157
|
+
/** Defaults to `#fafafa` in the light scheme and `#ffffff` in the dark. */
|
|
158
|
+
readonly '--kui-color-spotlight-button'?: string;
|
|
159
|
+
/** Defaults to `rgba(255, 255, 255, 0.6)`. */
|
|
160
|
+
readonly '--kui-color-spotlight-line'?: string;
|
|
161
|
+
/** Defaults to `rgba(255, 255, 255, 0.16)` in the light scheme and `rgba(255, 255, 255, 0.14)` in the dark. */
|
|
162
|
+
readonly '--kui-color-spotlight-tonal'?: string;
|
|
163
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
164
|
+
readonly '--kui-color-surface'?: string;
|
|
165
|
+
/** Defaults to `#ffffff` in the light scheme and `#1c1c1c` in the dark. */
|
|
166
|
+
readonly '--kui-color-surface-bright'?: string;
|
|
167
|
+
/** Defaults to `#ffffff` in the light scheme and `#1c1c1c` in the dark. */
|
|
168
|
+
readonly '--kui-color-surface-container'?: string;
|
|
169
|
+
/** Defaults to `#ffffff` in the light scheme and `#1c1c1c` in the dark. */
|
|
170
|
+
readonly '--kui-color-surface-container-high'?: string;
|
|
171
|
+
/** Defaults to `#f0f0f0` in the light scheme and `#262626` in the dark. */
|
|
172
|
+
readonly '--kui-color-surface-container-highest'?: string;
|
|
173
|
+
/** Defaults to `#ffffff` in the light scheme and `#1c1c1c` in the dark. */
|
|
174
|
+
readonly '--kui-color-surface-container-low'?: string;
|
|
175
|
+
/** Defaults to `#ffffff` in the light scheme and `#1c1c1c` in the dark. */
|
|
176
|
+
readonly '--kui-color-surface-container-lowest'?: string;
|
|
177
|
+
/** Defaults to `#fafafa` in the light scheme and `#121212` in the dark. */
|
|
178
|
+
readonly '--kui-color-surface-dim'?: string;
|
|
179
|
+
/** Defaults to `#f0f0f0` in the light scheme and `#262626` in the dark. */
|
|
180
|
+
readonly '--kui-color-surface-sunken'?: string;
|
|
181
|
+
/** Defaults to `#1a1a1a` in the light scheme and `#ececec` in the dark. */
|
|
182
|
+
readonly '--kui-color-surface-tint'?: string;
|
|
183
|
+
/** Defaults to `#f0f0f0` in the light scheme and `#262626` in the dark. */
|
|
184
|
+
readonly '--kui-color-surface-variant'?: string;
|
|
185
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
186
|
+
readonly '--kui-color-tertiary'?: string;
|
|
187
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
188
|
+
readonly '--kui-color-tertiary-container'?: string;
|
|
189
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
190
|
+
readonly '--kui-color-tertiary-fixed'?: string;
|
|
191
|
+
/** Defaults to `#e9e9e9` in the light scheme and `#2b2b2b` in the dark. */
|
|
192
|
+
readonly '--kui-color-tertiary-fixed-dim'?: string;
|
|
193
|
+
/** Defaults to `450ms`. */
|
|
194
|
+
readonly '--kui-motion-duration-long1'?: string;
|
|
195
|
+
/** Defaults to `500ms`. */
|
|
196
|
+
readonly '--kui-motion-duration-long2'?: string;
|
|
197
|
+
/** Defaults to `600ms`. */
|
|
198
|
+
readonly '--kui-motion-duration-long3'?: string;
|
|
199
|
+
/** Defaults to `250ms`. */
|
|
200
|
+
readonly '--kui-motion-duration-medium1'?: string;
|
|
201
|
+
/** Defaults to `300ms`. */
|
|
202
|
+
readonly '--kui-motion-duration-medium2'?: string;
|
|
203
|
+
/** Defaults to `350ms`. */
|
|
204
|
+
readonly '--kui-motion-duration-medium3'?: string;
|
|
205
|
+
/** Defaults to `100ms`. */
|
|
206
|
+
readonly '--kui-motion-duration-short1'?: string;
|
|
207
|
+
/** Defaults to `150ms`. */
|
|
208
|
+
readonly '--kui-motion-duration-short2'?: string;
|
|
209
|
+
/** Defaults to `200ms`. */
|
|
210
|
+
readonly '--kui-motion-duration-short3'?: string;
|
|
211
|
+
/** Defaults to `cubic-bezier(0.2, 0, 0, 1)`. */
|
|
212
|
+
readonly '--kui-motion-easing-emphasized'?: string;
|
|
213
|
+
/** Defaults to `cubic-bezier(0.3, 0, 0.8, 0.15)`. */
|
|
214
|
+
readonly '--kui-motion-easing-emphasized-accelerate'?: string;
|
|
215
|
+
/** Defaults to `cubic-bezier(0.05, 0.7, 0.1, 1)`. */
|
|
216
|
+
readonly '--kui-motion-easing-emphasized-decelerate'?: string;
|
|
217
|
+
/** Defaults to `cubic-bezier(0.34, 1.56, 0.64, 1)`. */
|
|
218
|
+
readonly '--kui-motion-easing-spring-fast'?: string;
|
|
219
|
+
/** Defaults to `cubic-bezier(0.16, 1, 0.3, 1)`. */
|
|
220
|
+
readonly '--kui-motion-easing-spring-slow'?: string;
|
|
221
|
+
/** Defaults to `cubic-bezier(0.2, 0, 0, 1)`. */
|
|
222
|
+
readonly '--kui-motion-easing-standard'?: string;
|
|
223
|
+
/** Defaults to `9999px`. */
|
|
224
|
+
readonly '--kui-radius-circle'?: string;
|
|
225
|
+
/** Defaults to `24px`. */
|
|
226
|
+
readonly '--kui-radius-kanso-2xl'?: string;
|
|
227
|
+
/** Defaults to `28px`. */
|
|
228
|
+
readonly '--kui-radius-kanso-3xl'?: string;
|
|
229
|
+
/** Defaults to `16px`. */
|
|
230
|
+
readonly '--kui-radius-kanso-lg'?: string;
|
|
231
|
+
/** Defaults to `12px`. */
|
|
232
|
+
readonly '--kui-radius-kanso-md'?: string;
|
|
233
|
+
/** Defaults to `999px`. */
|
|
234
|
+
readonly '--kui-radius-kanso-pill'?: string;
|
|
235
|
+
/** Defaults to `8px`. */
|
|
236
|
+
readonly '--kui-radius-kanso-sm'?: string;
|
|
237
|
+
/** Defaults to `20px`. */
|
|
238
|
+
readonly '--kui-radius-kanso-xl'?: string;
|
|
239
|
+
/** Defaults to `4px`. */
|
|
240
|
+
readonly '--kui-radius-kanso-xs'?: string;
|
|
241
|
+
/** Defaults to `16px`. */
|
|
242
|
+
readonly '--kui-radius-lg'?: string;
|
|
243
|
+
/** Defaults to `12px`. */
|
|
244
|
+
readonly '--kui-radius-md'?: string;
|
|
245
|
+
/** Defaults to `0px`. */
|
|
246
|
+
readonly '--kui-radius-none'?: string;
|
|
247
|
+
/** Defaults to `9999px`. */
|
|
248
|
+
readonly '--kui-radius-pill'?: string;
|
|
249
|
+
/** Defaults to `8px`. */
|
|
250
|
+
readonly '--kui-radius-sm'?: string;
|
|
251
|
+
/** Defaults to `28px`. */
|
|
252
|
+
readonly '--kui-radius-xl'?: string;
|
|
253
|
+
/** Defaults to `4px`. */
|
|
254
|
+
readonly '--kui-radius-xs'?: string;
|
|
255
|
+
/** Defaults to `0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 2px 8px 0px rgba(0, 0, 0, 0.04)` in the light scheme and `0px 1px 2px 0px rgba(0, 0, 0, 0.5)` in the dark. */
|
|
256
|
+
readonly '--kui-shadow-elevation1'?: string;
|
|
257
|
+
/** Defaults to `0px 2px 6px 0px rgba(0, 0, 0, 0.08), 0px 8px 20px 0px rgba(0, 0, 0, 0.1)` in the light scheme and `0px 4px 16px 0px rgba(0, 0, 0, 0.6)` in the dark. */
|
|
258
|
+
readonly '--kui-shadow-elevation2'?: string;
|
|
259
|
+
/** Defaults to `0px 8px 24px 0px rgba(0, 0, 0, 0.12), 0px 24px 56px 0px rgba(0, 0, 0, 0.14)` in the light scheme and `0px 12px 40px 0px rgba(0, 0, 0, 0.7)` in the dark. */
|
|
260
|
+
readonly '--kui-shadow-elevation3'?: string;
|
|
261
|
+
/** Defaults to `0px 8px 24px 0px rgba(0, 0, 0, 0.12), 0px 24px 56px 0px rgba(0, 0, 0, 0.14)` in the light scheme and `0px 12px 40px 0px rgba(0, 0, 0, 0.7)` in the dark. */
|
|
262
|
+
readonly '--kui-shadow-elevation4'?: string;
|
|
263
|
+
/** Defaults to `0px 8px 24px 0px rgba(0, 0, 0, 0.12), 0px 24px 56px 0px rgba(0, 0, 0, 0.14)` in the light scheme and `0px 12px 40px 0px rgba(0, 0, 0, 0.7)` in the dark. */
|
|
264
|
+
readonly '--kui-shadow-elevation5'?: string;
|
|
265
|
+
/** Defaults to `0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 2px 8px 0px rgba(0, 0, 0, 0.04)` in the light scheme and `0px 1px 2px 0px rgba(0, 0, 0, 0.5)` in the dark. */
|
|
266
|
+
readonly '--kui-shadow-kanso-1'?: string;
|
|
267
|
+
/** Defaults to `0px 2px 6px 0px rgba(0, 0, 0, 0.08), 0px 8px 20px 0px rgba(0, 0, 0, 0.1)` in the light scheme and `0px 4px 16px 0px rgba(0, 0, 0, 0.6)` in the dark. */
|
|
268
|
+
readonly '--kui-shadow-kanso-2'?: string;
|
|
269
|
+
/** Defaults to `0px 8px 24px 0px rgba(0, 0, 0, 0.12), 0px 24px 56px 0px rgba(0, 0, 0, 0.14)` in the light scheme and `0px 12px 40px 0px rgba(0, 0, 0, 0.7)` in the dark. */
|
|
270
|
+
readonly '--kui-shadow-kanso-3'?: string;
|
|
271
|
+
/** Defaults to `56px`. */
|
|
272
|
+
readonly '--kui-sizing-control-lg'?: string;
|
|
273
|
+
/** Defaults to `48px`. */
|
|
274
|
+
readonly '--kui-sizing-control-md'?: string;
|
|
275
|
+
/** Defaults to `40px`. */
|
|
276
|
+
readonly '--kui-sizing-control-sm'?: string;
|
|
277
|
+
/** Defaults to `96px`. */
|
|
278
|
+
readonly '--kui-sizing-control-xl'?: string;
|
|
279
|
+
/** Defaults to `32px`. */
|
|
280
|
+
readonly '--kui-sizing-control-xs'?: string;
|
|
281
|
+
/** Defaults to `136px`. */
|
|
282
|
+
readonly '--kui-sizing-control-xxl'?: string;
|
|
283
|
+
/** Defaults to `24px`. */
|
|
284
|
+
readonly '--kui-sizing-icon-lg'?: string;
|
|
285
|
+
/** Defaults to `20px`. */
|
|
286
|
+
readonly '--kui-sizing-icon-md'?: string;
|
|
287
|
+
/** Defaults to `18px`. */
|
|
288
|
+
readonly '--kui-sizing-icon-sm'?: string;
|
|
289
|
+
/** Defaults to `40px`. */
|
|
290
|
+
readonly '--kui-sizing-icon-xl'?: string;
|
|
291
|
+
/** Defaults to `16px`. */
|
|
292
|
+
readonly '--kui-sizing-icon-xs'?: string;
|
|
293
|
+
/** Defaults to `56px`. */
|
|
294
|
+
readonly '--kui-sizing-kanso-avatar-lg'?: string;
|
|
295
|
+
/** Defaults to `36px`. */
|
|
296
|
+
readonly '--kui-sizing-kanso-avatar-md'?: string;
|
|
297
|
+
/** Defaults to `28px`. */
|
|
298
|
+
readonly '--kui-sizing-kanso-avatar-sm'?: string;
|
|
299
|
+
/** Defaults to `48px`. */
|
|
300
|
+
readonly '--kui-sizing-kanso-control-lg'?: string;
|
|
301
|
+
/** Defaults to `40px`. */
|
|
302
|
+
readonly '--kui-sizing-kanso-control-md'?: string;
|
|
303
|
+
/** Defaults to `32px`. */
|
|
304
|
+
readonly '--kui-sizing-kanso-control-sm'?: string;
|
|
305
|
+
/** Defaults to `56px`. */
|
|
306
|
+
readonly '--kui-sizing-kanso-control-xl'?: string;
|
|
307
|
+
/** Defaults to `24px`. */
|
|
308
|
+
readonly '--kui-sizing-kanso-icon-lg'?: string;
|
|
309
|
+
/** Defaults to `20px`. */
|
|
310
|
+
readonly '--kui-sizing-kanso-icon-md'?: string;
|
|
311
|
+
/** Defaults to `16px`. */
|
|
312
|
+
readonly '--kui-sizing-kanso-icon-sm'?: string;
|
|
313
|
+
/** Defaults to `40px`. */
|
|
314
|
+
readonly '--kui-sizing-kanso-icon-xl'?: string;
|
|
315
|
+
/** Defaults to `60px`. */
|
|
316
|
+
readonly '--kui-sizing-kanso-row'?: string;
|
|
317
|
+
/** Defaults to `44px`. */
|
|
318
|
+
readonly '--kui-sizing-kanso-row-compact'?: string;
|
|
319
|
+
/** Defaults to `88px`. */
|
|
320
|
+
readonly '--kui-sizing-row-lg'?: string;
|
|
321
|
+
/** Defaults to `72px`. */
|
|
322
|
+
readonly '--kui-sizing-row-md'?: string;
|
|
323
|
+
/** Defaults to `56px`. */
|
|
324
|
+
readonly '--kui-sizing-row-sm'?: string;
|
|
325
|
+
/** Defaults to `48px`. */
|
|
326
|
+
readonly '--kui-sizing-row-xs'?: string;
|
|
327
|
+
/** Defaults to `24px`. */
|
|
328
|
+
readonly '--kui-spacing-kanso-2xl'?: string;
|
|
329
|
+
/** Defaults to `2px`. */
|
|
330
|
+
readonly '--kui-spacing-kanso-2xs'?: string;
|
|
331
|
+
/** Defaults to `32px`. */
|
|
332
|
+
readonly '--kui-spacing-kanso-3xl'?: string;
|
|
333
|
+
/** Defaults to `40px`. */
|
|
334
|
+
readonly '--kui-spacing-kanso-4xl'?: string;
|
|
335
|
+
/** Defaults to `56px`. */
|
|
336
|
+
readonly '--kui-spacing-kanso-5xl'?: string;
|
|
337
|
+
/** Defaults to `16px`. */
|
|
338
|
+
readonly '--kui-spacing-kanso-lg'?: string;
|
|
339
|
+
/** Defaults to `12px`. */
|
|
340
|
+
readonly '--kui-spacing-kanso-md'?: string;
|
|
341
|
+
/** Defaults to `8px`. */
|
|
342
|
+
readonly '--kui-spacing-kanso-sm'?: string;
|
|
343
|
+
/** Defaults to `20px`. */
|
|
344
|
+
readonly '--kui-spacing-kanso-xl'?: string;
|
|
345
|
+
/** Defaults to `4px`. */
|
|
346
|
+
readonly '--kui-spacing-kanso-xs'?: string;
|
|
347
|
+
/** Defaults to `16px`. */
|
|
348
|
+
readonly '--kui-spacing-lg'?: string;
|
|
349
|
+
/** Defaults to `20px`. */
|
|
350
|
+
readonly '--kui-spacing-lg-plus'?: string;
|
|
351
|
+
/** Defaults to `12px`. */
|
|
352
|
+
readonly '--kui-spacing-md'?: string;
|
|
353
|
+
/** Defaults to `8px`. */
|
|
354
|
+
readonly '--kui-spacing-sm'?: string;
|
|
355
|
+
/** Defaults to `24px`. */
|
|
356
|
+
readonly '--kui-spacing-xl'?: string;
|
|
357
|
+
/** Defaults to `4px`. */
|
|
358
|
+
readonly '--kui-spacing-xs'?: string;
|
|
359
|
+
/** Defaults to `6px`. */
|
|
360
|
+
readonly '--kui-spacing-xs-plus'?: string;
|
|
361
|
+
/** Defaults to `32px`. */
|
|
362
|
+
readonly '--kui-spacing-xxl'?: string;
|
|
363
|
+
/** Defaults to `2px`. */
|
|
364
|
+
readonly '--kui-spacing-xxs'?: string;
|
|
365
|
+
/** Defaults to `40px`. */
|
|
366
|
+
readonly '--kui-spacing-xxxl'?: string;
|
|
367
|
+
/** Defaults to `0.12`. */
|
|
368
|
+
readonly '--kui-state-layer-opacity-disabled-container'?: string;
|
|
369
|
+
/** Defaults to `0.38`. */
|
|
370
|
+
readonly '--kui-state-layer-opacity-disabled-content'?: string;
|
|
371
|
+
/** Defaults to `0.16`. */
|
|
372
|
+
readonly '--kui-state-layer-opacity-dragged'?: string;
|
|
373
|
+
/** Defaults to `0.1`. */
|
|
374
|
+
readonly '--kui-state-layer-opacity-focus'?: string;
|
|
375
|
+
/** Defaults to `0.08`. */
|
|
376
|
+
readonly '--kui-state-layer-opacity-hover'?: string;
|
|
377
|
+
/** Defaults to `0.12`. */
|
|
378
|
+
readonly '--kui-state-layer-opacity-kanso-disabled-container'?: string;
|
|
379
|
+
/** Defaults to `0.38`. */
|
|
380
|
+
readonly '--kui-state-layer-opacity-kanso-disabled-content'?: string;
|
|
381
|
+
/** Defaults to `0.1`. */
|
|
382
|
+
readonly '--kui-state-layer-opacity-kanso-focus'?: string;
|
|
383
|
+
/** Defaults to `0.08`. */
|
|
384
|
+
readonly '--kui-state-layer-opacity-kanso-hover'?: string;
|
|
385
|
+
/** Defaults to `0.12`. */
|
|
386
|
+
readonly '--kui-state-layer-opacity-kanso-pressed'?: string;
|
|
387
|
+
/** Defaults to `0.1`. */
|
|
388
|
+
readonly '--kui-state-layer-opacity-pressed'?: string;
|
|
389
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
390
|
+
readonly '--kui-typography-body-large-font'?: string;
|
|
391
|
+
/** Defaults to `24px`. */
|
|
392
|
+
readonly '--kui-typography-body-large-line-height'?: string;
|
|
393
|
+
/** Defaults to `16px`. */
|
|
394
|
+
readonly '--kui-typography-body-large-size'?: string;
|
|
395
|
+
/** Defaults to `0.5px`. */
|
|
396
|
+
readonly '--kui-typography-body-large-tracking'?: string;
|
|
397
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
398
|
+
readonly '--kui-typography-body-large-weight'?: string;
|
|
399
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
400
|
+
readonly '--kui-typography-body-medium-font'?: string;
|
|
401
|
+
/** Defaults to `20px`. */
|
|
402
|
+
readonly '--kui-typography-body-medium-line-height'?: string;
|
|
403
|
+
/** Defaults to `14px`. */
|
|
404
|
+
readonly '--kui-typography-body-medium-size'?: string;
|
|
405
|
+
/** Defaults to `0.25px`. */
|
|
406
|
+
readonly '--kui-typography-body-medium-tracking'?: string;
|
|
407
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
408
|
+
readonly '--kui-typography-body-medium-weight'?: string;
|
|
409
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
410
|
+
readonly '--kui-typography-body-small-font'?: string;
|
|
411
|
+
/** Defaults to `16px`. */
|
|
412
|
+
readonly '--kui-typography-body-small-line-height'?: string;
|
|
413
|
+
/** Defaults to `12px`. */
|
|
414
|
+
readonly '--kui-typography-body-small-size'?: string;
|
|
415
|
+
/** Defaults to `0.4px`. */
|
|
416
|
+
readonly '--kui-typography-body-small-tracking'?: string;
|
|
417
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
418
|
+
readonly '--kui-typography-body-small-weight'?: string;
|
|
419
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
420
|
+
readonly '--kui-typography-display-large-font'?: string;
|
|
421
|
+
/** Defaults to `64px`. */
|
|
422
|
+
readonly '--kui-typography-display-large-line-height'?: string;
|
|
423
|
+
/** Defaults to `57px`. */
|
|
424
|
+
readonly '--kui-typography-display-large-size'?: string;
|
|
425
|
+
/** Defaults to `-0.25px`. */
|
|
426
|
+
readonly '--kui-typography-display-large-tracking'?: string;
|
|
427
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
428
|
+
readonly '--kui-typography-display-large-weight'?: string;
|
|
429
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
430
|
+
readonly '--kui-typography-display-medium-font'?: string;
|
|
431
|
+
/** Defaults to `52px`. */
|
|
432
|
+
readonly '--kui-typography-display-medium-line-height'?: string;
|
|
433
|
+
/** Defaults to `45px`. */
|
|
434
|
+
readonly '--kui-typography-display-medium-size'?: string;
|
|
435
|
+
/** Defaults to `0px`. */
|
|
436
|
+
readonly '--kui-typography-display-medium-tracking'?: string;
|
|
437
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
438
|
+
readonly '--kui-typography-display-medium-weight'?: string;
|
|
439
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
440
|
+
readonly '--kui-typography-display-small-font'?: string;
|
|
441
|
+
/** Defaults to `44px`. */
|
|
442
|
+
readonly '--kui-typography-display-small-line-height'?: string;
|
|
443
|
+
/** Defaults to `36px`. */
|
|
444
|
+
readonly '--kui-typography-display-small-size'?: string;
|
|
445
|
+
/** Defaults to `0px`. */
|
|
446
|
+
readonly '--kui-typography-display-small-tracking'?: string;
|
|
447
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
448
|
+
readonly '--kui-typography-display-small-weight'?: string;
|
|
449
|
+
/** Defaults to `'Roboto Serif', 'Iowan Old Style', Georgia, serif`. */
|
|
450
|
+
readonly '--kui-typography-font-family-brand'?: string;
|
|
451
|
+
/** Defaults to `'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace`. */
|
|
452
|
+
readonly '--kui-typography-font-family-mono'?: string;
|
|
453
|
+
/** Defaults to `'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`. */
|
|
454
|
+
readonly '--kui-typography-font-family-plain'?: string;
|
|
455
|
+
/** Defaults to `'Roboto Serif', 'Iowan Old Style', Georgia, serif`. */
|
|
456
|
+
readonly '--kui-typography-font-family-voice'?: string;
|
|
457
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
458
|
+
readonly '--kui-typography-headline-large-font'?: string;
|
|
459
|
+
/** Defaults to `40px`. */
|
|
460
|
+
readonly '--kui-typography-headline-large-line-height'?: string;
|
|
461
|
+
/** Defaults to `32px`. */
|
|
462
|
+
readonly '--kui-typography-headline-large-size'?: string;
|
|
463
|
+
/** Defaults to `0px`. */
|
|
464
|
+
readonly '--kui-typography-headline-large-tracking'?: string;
|
|
465
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
466
|
+
readonly '--kui-typography-headline-large-weight'?: string;
|
|
467
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
468
|
+
readonly '--kui-typography-headline-medium-font'?: string;
|
|
469
|
+
/** Defaults to `36px`. */
|
|
470
|
+
readonly '--kui-typography-headline-medium-line-height'?: string;
|
|
471
|
+
/** Defaults to `28px`. */
|
|
472
|
+
readonly '--kui-typography-headline-medium-size'?: string;
|
|
473
|
+
/** Defaults to `0px`. */
|
|
474
|
+
readonly '--kui-typography-headline-medium-tracking'?: string;
|
|
475
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
476
|
+
readonly '--kui-typography-headline-medium-weight'?: string;
|
|
477
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
478
|
+
readonly '--kui-typography-headline-small-font'?: string;
|
|
479
|
+
/** Defaults to `32px`. */
|
|
480
|
+
readonly '--kui-typography-headline-small-line-height'?: string;
|
|
481
|
+
/** Defaults to `24px`. */
|
|
482
|
+
readonly '--kui-typography-headline-small-size'?: string;
|
|
483
|
+
/** Defaults to `0px`. */
|
|
484
|
+
readonly '--kui-typography-headline-small-tracking'?: string;
|
|
485
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
486
|
+
readonly '--kui-typography-headline-small-weight'?: string;
|
|
487
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
488
|
+
readonly '--kui-typography-label-large-font'?: string;
|
|
489
|
+
/** Defaults to `20px`. */
|
|
490
|
+
readonly '--kui-typography-label-large-line-height'?: string;
|
|
491
|
+
/** Defaults to `14px`. */
|
|
492
|
+
readonly '--kui-typography-label-large-size'?: string;
|
|
493
|
+
/** Defaults to `0.1px`. */
|
|
494
|
+
readonly '--kui-typography-label-large-tracking'?: string;
|
|
495
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
496
|
+
readonly '--kui-typography-label-large-weight'?: string;
|
|
497
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
498
|
+
readonly '--kui-typography-label-medium-font'?: string;
|
|
499
|
+
/** Defaults to `16px`. */
|
|
500
|
+
readonly '--kui-typography-label-medium-line-height'?: string;
|
|
501
|
+
/** Defaults to `12px`. */
|
|
502
|
+
readonly '--kui-typography-label-medium-size'?: string;
|
|
503
|
+
/** Defaults to `0.5px`. */
|
|
504
|
+
readonly '--kui-typography-label-medium-tracking'?: string;
|
|
505
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
506
|
+
readonly '--kui-typography-label-medium-weight'?: string;
|
|
507
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
508
|
+
readonly '--kui-typography-label-small-font'?: string;
|
|
509
|
+
/** Defaults to `16px`. */
|
|
510
|
+
readonly '--kui-typography-label-small-line-height'?: string;
|
|
511
|
+
/** Defaults to `11px`. */
|
|
512
|
+
readonly '--kui-typography-label-small-size'?: string;
|
|
513
|
+
/** Defaults to `0.5px`. */
|
|
514
|
+
readonly '--kui-typography-label-small-tracking'?: string;
|
|
515
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
516
|
+
readonly '--kui-typography-label-small-weight'?: string;
|
|
517
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
518
|
+
readonly '--kui-typography-t-body-font'?: string;
|
|
519
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
520
|
+
readonly '--kui-typography-t-body-large-font'?: string;
|
|
521
|
+
/** Defaults to `26px`. */
|
|
522
|
+
readonly '--kui-typography-t-body-large-line-height'?: string;
|
|
523
|
+
/** Defaults to `17px`. */
|
|
524
|
+
readonly '--kui-typography-t-body-large-size'?: string;
|
|
525
|
+
/** Defaults to `0px`. */
|
|
526
|
+
readonly '--kui-typography-t-body-large-tracking'?: string;
|
|
527
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
528
|
+
readonly '--kui-typography-t-body-large-weight'?: string;
|
|
529
|
+
/** Defaults to `20px`. */
|
|
530
|
+
readonly '--kui-typography-t-body-line-height'?: string;
|
|
531
|
+
/** Defaults to `15px`. */
|
|
532
|
+
readonly '--kui-typography-t-body-size'?: string;
|
|
533
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
534
|
+
readonly '--kui-typography-t-body-small-font'?: string;
|
|
535
|
+
/** Defaults to `20px`. */
|
|
536
|
+
readonly '--kui-typography-t-body-small-line-height'?: string;
|
|
537
|
+
/** Defaults to `14px`. */
|
|
538
|
+
readonly '--kui-typography-t-body-small-size'?: string;
|
|
539
|
+
/** Defaults to `0px`. */
|
|
540
|
+
readonly '--kui-typography-t-body-small-tracking'?: string;
|
|
541
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
542
|
+
readonly '--kui-typography-t-body-small-weight'?: string;
|
|
543
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
544
|
+
readonly '--kui-typography-t-body-strong-font'?: string;
|
|
545
|
+
/** Defaults to `22px`. */
|
|
546
|
+
readonly '--kui-typography-t-body-strong-line-height'?: string;
|
|
547
|
+
/** Defaults to `16px`. */
|
|
548
|
+
readonly '--kui-typography-t-body-strong-size'?: string;
|
|
549
|
+
/** Defaults to `0px`. */
|
|
550
|
+
readonly '--kui-typography-t-body-strong-tracking'?: string;
|
|
551
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
552
|
+
readonly '--kui-typography-t-body-strong-weight'?: string;
|
|
553
|
+
/** Defaults to `0px`. */
|
|
554
|
+
readonly '--kui-typography-t-body-tracking'?: string;
|
|
555
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
556
|
+
readonly '--kui-typography-t-body-weight'?: string;
|
|
557
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
558
|
+
readonly '--kui-typography-t-caption-font'?: string;
|
|
559
|
+
/** Defaults to `16px`. */
|
|
560
|
+
readonly '--kui-typography-t-caption-line-height'?: string;
|
|
561
|
+
/** Defaults to `12px`. */
|
|
562
|
+
readonly '--kui-typography-t-caption-size'?: string;
|
|
563
|
+
/** Defaults to `0px`. */
|
|
564
|
+
readonly '--kui-typography-t-caption-tracking'?: string;
|
|
565
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
566
|
+
readonly '--kui-typography-t-caption-weight'?: string;
|
|
567
|
+
/** Defaults to `var(--kui-typography-font-family-voice, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
568
|
+
readonly '--kui-typography-t-display-font'?: string;
|
|
569
|
+
/** Defaults to `52px`. */
|
|
570
|
+
readonly '--kui-typography-t-display-line-height'?: string;
|
|
571
|
+
/** Defaults to `44px`. */
|
|
572
|
+
readonly '--kui-typography-t-display-size'?: string;
|
|
573
|
+
/** Defaults to `-0.66px`. */
|
|
574
|
+
readonly '--kui-typography-t-display-tracking'?: string;
|
|
575
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
576
|
+
readonly '--kui-typography-t-display-weight'?: string;
|
|
577
|
+
/** Defaults to `var(--kui-typography-font-family-mono, 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace)`. */
|
|
578
|
+
readonly '--kui-typography-t-figure-font'?: string;
|
|
579
|
+
/** Defaults to `var(--kui-typography-font-family-mono, 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace)`. */
|
|
580
|
+
readonly '--kui-typography-t-figure-large-font'?: string;
|
|
581
|
+
/** Defaults to `30px`. */
|
|
582
|
+
readonly '--kui-typography-t-figure-large-line-height'?: string;
|
|
583
|
+
/** Defaults to `24px`. */
|
|
584
|
+
readonly '--kui-typography-t-figure-large-size'?: string;
|
|
585
|
+
/** Defaults to `0px`. */
|
|
586
|
+
readonly '--kui-typography-t-figure-large-tracking'?: string;
|
|
587
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
588
|
+
readonly '--kui-typography-t-figure-large-weight'?: string;
|
|
589
|
+
/** Defaults to `20px`. */
|
|
590
|
+
readonly '--kui-typography-t-figure-line-height'?: string;
|
|
591
|
+
/** Defaults to `15px`. */
|
|
592
|
+
readonly '--kui-typography-t-figure-size'?: string;
|
|
593
|
+
/** Defaults to `var(--kui-typography-font-family-mono, 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace)`. */
|
|
594
|
+
readonly '--kui-typography-t-figure-small-font'?: string;
|
|
595
|
+
/** Defaults to `18px`. */
|
|
596
|
+
readonly '--kui-typography-t-figure-small-line-height'?: string;
|
|
597
|
+
/** Defaults to `13px`. */
|
|
598
|
+
readonly '--kui-typography-t-figure-small-size'?: string;
|
|
599
|
+
/** Defaults to `0px`. */
|
|
600
|
+
readonly '--kui-typography-t-figure-small-tracking'?: string;
|
|
601
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
602
|
+
readonly '--kui-typography-t-figure-small-weight'?: string;
|
|
603
|
+
/** Defaults to `0px`. */
|
|
604
|
+
readonly '--kui-typography-t-figure-tracking'?: string;
|
|
605
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
606
|
+
readonly '--kui-typography-t-figure-weight'?: string;
|
|
607
|
+
/** Defaults to `var(--kui-typography-font-family-voice, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
608
|
+
readonly '--kui-typography-t-headline-font'?: string;
|
|
609
|
+
/** Defaults to `40px`. */
|
|
610
|
+
readonly '--kui-typography-t-headline-line-height'?: string;
|
|
611
|
+
/** Defaults to `34px`. */
|
|
612
|
+
readonly '--kui-typography-t-headline-size'?: string;
|
|
613
|
+
/** Defaults to `-0.34px`. */
|
|
614
|
+
readonly '--kui-typography-t-headline-tracking'?: string;
|
|
615
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
616
|
+
readonly '--kui-typography-t-headline-weight'?: string;
|
|
617
|
+
/** Defaults to `var(--kui-typography-font-family-voice, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
618
|
+
readonly '--kui-typography-t-hero-font'?: string;
|
|
619
|
+
/** Defaults to `58px`. */
|
|
620
|
+
readonly '--kui-typography-t-hero-line-height'?: string;
|
|
621
|
+
/** Defaults to `52px`. */
|
|
622
|
+
readonly '--kui-typography-t-hero-size'?: string;
|
|
623
|
+
/** Defaults to `-0.78px`. */
|
|
624
|
+
readonly '--kui-typography-t-hero-tracking'?: string;
|
|
625
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
626
|
+
readonly '--kui-typography-t-hero-weight'?: string;
|
|
627
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
628
|
+
readonly '--kui-typography-t-label-font'?: string;
|
|
629
|
+
/** Defaults to `18px`. */
|
|
630
|
+
readonly '--kui-typography-t-label-line-height'?: string;
|
|
631
|
+
/** Defaults to `13px`. */
|
|
632
|
+
readonly '--kui-typography-t-label-size'?: string;
|
|
633
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
634
|
+
readonly '--kui-typography-t-label-strong-font'?: string;
|
|
635
|
+
/** Defaults to `20px`. */
|
|
636
|
+
readonly '--kui-typography-t-label-strong-line-height'?: string;
|
|
637
|
+
/** Defaults to `15px`. */
|
|
638
|
+
readonly '--kui-typography-t-label-strong-size'?: string;
|
|
639
|
+
/** Defaults to `0px`. */
|
|
640
|
+
readonly '--kui-typography-t-label-strong-tracking'?: string;
|
|
641
|
+
/** Defaults to `var(--kui-typography-weight-semibold, 600)`. */
|
|
642
|
+
readonly '--kui-typography-t-label-strong-weight'?: string;
|
|
643
|
+
/** Defaults to `0px`. */
|
|
644
|
+
readonly '--kui-typography-t-label-tracking'?: string;
|
|
645
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
646
|
+
readonly '--kui-typography-t-label-weight'?: string;
|
|
647
|
+
/** Defaults to `var(--kui-typography-font-family-voice, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
648
|
+
readonly '--kui-typography-t-section-font'?: string;
|
|
649
|
+
/** Defaults to `28px`. */
|
|
650
|
+
readonly '--kui-typography-t-section-line-height'?: string;
|
|
651
|
+
/** Defaults to `22px`. */
|
|
652
|
+
readonly '--kui-typography-t-section-size'?: string;
|
|
653
|
+
/** Defaults to `0px`. */
|
|
654
|
+
readonly '--kui-typography-t-section-tracking'?: string;
|
|
655
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
656
|
+
readonly '--kui-typography-t-section-weight'?: string;
|
|
657
|
+
/** Defaults to `var(--kui-typography-font-family-voice, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
658
|
+
readonly '--kui-typography-t-title-font'?: string;
|
|
659
|
+
/** Defaults to `38px`. */
|
|
660
|
+
readonly '--kui-typography-t-title-line-height'?: string;
|
|
661
|
+
/** Defaults to `32px`. */
|
|
662
|
+
readonly '--kui-typography-t-title-size'?: string;
|
|
663
|
+
/** Defaults to `0px`. */
|
|
664
|
+
readonly '--kui-typography-t-title-tracking'?: string;
|
|
665
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
666
|
+
readonly '--kui-typography-t-title-weight'?: string;
|
|
667
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
668
|
+
readonly '--kui-typography-title-large-font'?: string;
|
|
669
|
+
/** Defaults to `28px`. */
|
|
670
|
+
readonly '--kui-typography-title-large-line-height'?: string;
|
|
671
|
+
/** Defaults to `22px`. */
|
|
672
|
+
readonly '--kui-typography-title-large-size'?: string;
|
|
673
|
+
/** Defaults to `0px`. */
|
|
674
|
+
readonly '--kui-typography-title-large-tracking'?: string;
|
|
675
|
+
/** Defaults to `var(--kui-typography-weight-light, 300)`. */
|
|
676
|
+
readonly '--kui-typography-title-large-weight'?: string;
|
|
677
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
678
|
+
readonly '--kui-typography-title-medium-font'?: string;
|
|
679
|
+
/** Defaults to `24px`. */
|
|
680
|
+
readonly '--kui-typography-title-medium-line-height'?: string;
|
|
681
|
+
/** Defaults to `16px`. */
|
|
682
|
+
readonly '--kui-typography-title-medium-size'?: string;
|
|
683
|
+
/** Defaults to `0.15px`. */
|
|
684
|
+
readonly '--kui-typography-title-medium-tracking'?: string;
|
|
685
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
686
|
+
readonly '--kui-typography-title-medium-weight'?: string;
|
|
687
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
688
|
+
readonly '--kui-typography-title-small-font'?: string;
|
|
689
|
+
/** Defaults to `20px`. */
|
|
690
|
+
readonly '--kui-typography-title-small-line-height'?: string;
|
|
691
|
+
/** Defaults to `14px`. */
|
|
692
|
+
readonly '--kui-typography-title-small-size'?: string;
|
|
693
|
+
/** Defaults to `0.1px`. */
|
|
694
|
+
readonly '--kui-typography-title-small-tracking'?: string;
|
|
695
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
696
|
+
readonly '--kui-typography-title-small-weight'?: string;
|
|
697
|
+
/** Defaults to `700`. */
|
|
698
|
+
readonly '--kui-typography-weight-bold'?: string;
|
|
699
|
+
/** Defaults to `300`. */
|
|
700
|
+
readonly '--kui-typography-weight-light'?: string;
|
|
701
|
+
/** Defaults to `500`. */
|
|
702
|
+
readonly '--kui-typography-weight-medium'?: string;
|
|
703
|
+
/** Defaults to `400`. */
|
|
704
|
+
readonly '--kui-typography-weight-regular'?: string;
|
|
705
|
+
/** Defaults to `600`. */
|
|
706
|
+
readonly '--kui-typography-weight-semibold'?: string;
|
|
707
|
+
};
|
|
708
|
+
/** Every property at its value in the light scheme, as `tokens.css` declares it. */
|
|
709
|
+
declare const light: Required<KuiTheme>;
|
|
710
|
+
/**
|
|
711
|
+
* Every property at its value in the dark scheme: the colours and shadows
|
|
712
|
+
* `tokens.css` declares under `prefers-color-scheme: dark`, over every other
|
|
713
|
+
* property at the one value it has in both.
|
|
714
|
+
*/
|
|
715
|
+
declare const dark: Required<KuiTheme>;
|
|
716
|
+
/**
|
|
717
|
+
* The lower bound of each window size class, in px on the web and dp on
|
|
718
|
+
* native, smallest first. A media query cannot read a custom property, so
|
|
719
|
+
* neither library offers these as one to override, and `tokens.css` leaves
|
|
720
|
+
* them out.
|
|
721
|
+
*/
|
|
722
|
+
declare const breakpoints: {
|
|
723
|
+
readonly compact: 0;
|
|
724
|
+
readonly medium: 600;
|
|
725
|
+
readonly expanded: 840;
|
|
726
|
+
readonly large: 1200;
|
|
727
|
+
readonly extraLarge: 1600;
|
|
728
|
+
};
|
|
729
|
+
/**
|
|
730
|
+
* The roles a product brings its own colour for, in light and in dark: the
|
|
731
|
+
* accent and the spotlight, each with what is drawn on it. The base fills them
|
|
732
|
+
* from the neutrals, since Kanso's brand is ink and paper.
|
|
733
|
+
*/
|
|
734
|
+
declare const productRoles: readonly ["accent", "onAccent", "accentSoft", "onAccentSoft", "accentOnInk", "spotlight", "onSpotlight", "onSpotlightMuted", "spotlightButton", "onSpotlightButton", "spotlightTonal", "spotlightLine"];
|
|
735
|
+
/** A role a product sets: one of {@link productRoles}. */
|
|
736
|
+
type ProductRole = (typeof productRoles)[number];
|
|
737
|
+
/** A pair a product's colours draw below its target. */
|
|
738
|
+
type ContrastFailure = {
|
|
739
|
+
/** The colour drawn, by its name without `--kui-color-`, such as `on-accent`. */
|
|
740
|
+
readonly foreground: string;
|
|
741
|
+
/** The colour the foreground is drawn on, `a over b` for a translucent `a` painted on `b`. */
|
|
742
|
+
readonly ground: string;
|
|
743
|
+
/** The ratio it is drawn at. */
|
|
744
|
+
readonly ratio: number;
|
|
745
|
+
readonly scheme: Scheme;
|
|
746
|
+
/** WCAG 2's bar: 4.5 for text, 3 for everything else. */
|
|
747
|
+
readonly target: number;
|
|
748
|
+
};
|
|
749
|
+
/** One scheme's product colours: a `#rrggbb` or `rgba()` value for every role. */
|
|
750
|
+
type ProductColors = { readonly [Role in ProductRole]: string; };
|
|
751
|
+
/** A product's colours in each scheme: what a product keeps as data. */
|
|
752
|
+
type ProductPalette = {
|
|
753
|
+
readonly dark: ProductColors;
|
|
754
|
+
readonly light: ProductColors;
|
|
755
|
+
};
|
|
756
|
+
/** A product's theme, as {@link defineProductTheme} builds it. */
|
|
757
|
+
type ProductTheme = {
|
|
758
|
+
/**
|
|
759
|
+
* Only the colours the product moves, with the same properties in both
|
|
760
|
+
* schemes, each at its value in that scheme.
|
|
761
|
+
*/
|
|
762
|
+
readonly changes: {
|
|
763
|
+
readonly dark: KuiTheme;
|
|
764
|
+
readonly light: KuiTheme;
|
|
765
|
+
};
|
|
766
|
+
/** Every property at its value in the dark scheme, the product's colours in. */
|
|
767
|
+
readonly dark: Required<KuiTheme>;
|
|
768
|
+
/** Every property at its value in the light scheme, the product's colours in. */
|
|
769
|
+
readonly light: Required<KuiTheme>;
|
|
770
|
+
/** The palette the theme was built from. */
|
|
771
|
+
readonly palette: ProductPalette;
|
|
772
|
+
};
|
|
773
|
+
type Scheme = 'dark' | 'light';
|
|
774
|
+
/** Thrown by {@link defineProductTheme} for a palette below a contrast target. */
|
|
775
|
+
declare class ProductThemeError extends Error {
|
|
776
|
+
/** Every pair below its target, in light and then in dark. */
|
|
777
|
+
readonly failures: readonly ContrastFailure[];
|
|
778
|
+
constructor(failures: readonly ContrastFailure[]);
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* Builds a product's theme from its colours: every colour that follows a
|
|
782
|
+
* product role takes the product's value of it, `primary`, `focus-ring` and
|
|
783
|
+
* the other Material Design roles that alias the accent included, and
|
|
784
|
+
* everything else keeps its default.
|
|
785
|
+
*
|
|
786
|
+
* The colours are held to Kanso's contrast targets, WCAG 2's 4.5:1 for text
|
|
787
|
+
* and 3:1 for the rest, in both schemes, over the same pairs the base clears:
|
|
788
|
+
* those Kanso's usage notes name and those both libraries draw. A palette
|
|
789
|
+
* below one throws a {@link ProductThemeError} naming every pair; one missing
|
|
790
|
+
* a scheme or a role, naming one it does not have, or holding a value that is not a
|
|
791
|
+
* `#rrggbb` or `rgba()` colour throws a `TypeError`.
|
|
792
|
+
*
|
|
793
|
+
* Build it once, as a constant: both libraries' `ThemeScope` is to keep what
|
|
794
|
+
* it resolves for each theme object it is handed.
|
|
795
|
+
*
|
|
796
|
+
* ```ts
|
|
797
|
+
* const productTheme = defineProductTheme({ dark: { accent: '#cdb0f5', … }, light: { accent: '#6b3fa0', … } })
|
|
798
|
+
*
|
|
799
|
+
* <ThemeScope productTheme={productTheme}>…</ThemeScope>
|
|
800
|
+
* ```
|
|
801
|
+
*/
|
|
802
|
+
declare function defineProductTheme(palette: ProductPalette): ProductTheme;
|
|
803
|
+
export { ProductThemeError as a, ProductRole as c, light as d, productRoles as f, ProductTheme as i, breakpoints as l, ProductColors as n, defineProductTheme as o, ProductPalette as r, KuiTheme as s, ContrastFailure as t, dark as u };
|