@eos-ui/tokens 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +40 -2
- package/dist/color.d.ts +22 -0
- package/dist/color.js +98 -0
- package/dist/generated/defaults.d.ts +85 -0
- package/dist/generated/defaults.js +279 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/theme.d.ts +83 -0
- package/dist/theme.js +278 -0
- package/dist/tokens.css +75 -0
- package/package.json +56 -3
- package/src/tokens.json +544 -0
package/src/tokens.json
ADDED
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Eos",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"color": {
|
|
5
|
+
"themes": [
|
|
6
|
+
{
|
|
7
|
+
"id": "light",
|
|
8
|
+
"name": "Light"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"tokens": [
|
|
12
|
+
{
|
|
13
|
+
"name": "brand-blue",
|
|
14
|
+
"value": "#2c95b4",
|
|
15
|
+
"usage": "The logo blue, exact. Decorative and brand surfaces only (the cover, illustrations). Never carries text: black on it is 6.1:1 but only APCA Lc 42, and white on it is 3.5:1. Use `primary` for anything interactive.",
|
|
16
|
+
"from": "brand",
|
|
17
|
+
"input": true
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "brand-green",
|
|
21
|
+
"value": "#72c451",
|
|
22
|
+
"usage": "The logo green, exact. Decorative and brand surfaces only. Never carries text: white on it is 2.2:1.",
|
|
23
|
+
"from": "accent",
|
|
24
|
+
"input": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "primary",
|
|
28
|
+
"value": "#17586d",
|
|
29
|
+
"usage": "Action blue: the fill of the primary Button and of every selected or checked state (selected day, page, segment, time slot, checkbox, switch), with `on-primary` (white) text at 7.9:1. Also small blue text and links on `surface` and `surface-tint` (7.9:1 and 7.1:1), the information tone, and the filled part of progress and loading bars. A deep teal derived from the logo blue (`brand-blue`) so that white text passes WCAG AAA.",
|
|
30
|
+
"from": "brand,surface"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "on-primary",
|
|
34
|
+
"value": "#ffffff",
|
|
35
|
+
"usage": "White text and icons on `primary` fills (7.9:1).",
|
|
36
|
+
"from": "surface"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "secondary",
|
|
40
|
+
"value": "#2b5c1b",
|
|
41
|
+
"usage": "Action green: the fill of the secondary Button (a positive action), with `on-secondary` (white) text at 7.9:1. Also the success tone's text and outline. Derived from the logo green (`brand-green`).",
|
|
42
|
+
"from": "accent,surface"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "on-secondary",
|
|
46
|
+
"value": "#ffffff",
|
|
47
|
+
"usage": "White text and icons on `secondary` fills (7.9:1).",
|
|
48
|
+
"from": "surface"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "secondary-soft",
|
|
52
|
+
"value": "#e8f5e1",
|
|
53
|
+
"usage": "Tinted backdrop of a paid chip or notice.",
|
|
54
|
+
"from": "accent,surface"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "danger",
|
|
58
|
+
"value": "#962019",
|
|
59
|
+
"usage": "Danger red: the fill of the danger Button, with `on-danger` (white) text at 8.3:1. Also the danger tone's text and outline, error text and invalid input edges, on `surface` (8.3:1) and `danger-soft` (7.1:1). Derived from the `danger` input of `defineTheme`: deepened until `on-danger` text reaches 7:1.",
|
|
60
|
+
"from": "danger,surface"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "on-danger",
|
|
64
|
+
"value": "#ffffff",
|
|
65
|
+
"usage": "White text and icons on `danger` fills (8.3:1).",
|
|
66
|
+
"from": "danger,surface"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "danger-soft",
|
|
70
|
+
"value": "#fbe9e7",
|
|
71
|
+
"usage": "Tinted backdrop of a danger chip, stamp, notice or toast.",
|
|
72
|
+
"from": "danger,surface"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "warning-strong",
|
|
76
|
+
"value": "#714a00",
|
|
77
|
+
"usage": "Small amber text on `surface` (7.8:1) and `warning-soft` (7.1:1): AAA. Derived from the `warning` input of `defineTheme`.",
|
|
78
|
+
"from": "warning,surface"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "warning-soft",
|
|
82
|
+
"value": "#fdf3dc",
|
|
83
|
+
"usage": "Tinted backdrop of a warning chip, stamp, notice or toast.",
|
|
84
|
+
"from": "warning,surface"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "background",
|
|
88
|
+
"value": "#ffffff",
|
|
89
|
+
"usage": "The page ground: the colour behind everything, painted by the app shell and the page. White by default, the same as `surface`. The `background` input of `defineTheme` sets it; when only `surface` is given the page ground follows the surface.",
|
|
90
|
+
"from": "background,surface",
|
|
91
|
+
"input": true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "surface",
|
|
95
|
+
"value": "#ffffff",
|
|
96
|
+
"usage": "What sits on the page: cards, fields, popovers, dialogs, panels and headers. Every screen starts on white. The `surface` input of `defineTheme` sets it, and with it derives `surface-tint`, the soft tone backdrops and, on a dark surface, the light action colours.",
|
|
97
|
+
"from": "surface",
|
|
98
|
+
"input": true
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "surface-tint",
|
|
102
|
+
"value": "#eaf4f8",
|
|
103
|
+
"usage": "The surface's second step: wells, hovered rows, table headers, footers, empty slots and the information tone's tint. Derived from `surface` by shifting its lightness 0.045 toward the foreground (0.06 the other way on a dark surface) in the brand hue. About 1.1:1 against white, so never a boundary on its own.",
|
|
104
|
+
"from": "surface,brand"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "ink",
|
|
108
|
+
"value": "#000000",
|
|
109
|
+
"usage": "Body copy, headings and icons on `surface`, `surface-tint`, `primary`, `secondary`, `danger` and the soft tints. Also the neutral chip colour. Set by the `foreground` input of `defineTheme`, which also drives `muted`, `border` and `border-strong`.",
|
|
110
|
+
"from": "foreground,surface",
|
|
111
|
+
"input": true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "scrim",
|
|
115
|
+
"value": "rgb(11 40 52 / 0.55)",
|
|
116
|
+
"usage": "The dimmed backdrop behind a dialog or drawer.",
|
|
117
|
+
"from": "surface"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "muted",
|
|
121
|
+
"value": "#515151",
|
|
122
|
+
"usage": "Secondary text, kickers and captions on `surface` (7.9:1) and `surface-tint` (7.1:1): AAA. Close to the grey of the logo's tagline. From a `foreground` input, `ink` softened toward `surface` until it just holds 7:1.",
|
|
123
|
+
"from": "foreground,surface"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "border",
|
|
127
|
+
"value": "#7f8f96",
|
|
128
|
+
"usage": "Hairlines between rows, the outline of cards and popovers, and the underside of clickable rows. 3.4:1 on `surface` and 3.0:1 on `surface-tint`, so every edge is visible on white. Control edges use `border-strong`. From a `foreground` input, `ink` softened toward `surface` until it just holds 3.4:1.",
|
|
129
|
+
"from": "foreground,surface"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "border-strong",
|
|
133
|
+
"value": "#767676",
|
|
134
|
+
"usage": "Input, checkbox and other control borders on `surface` (4.5:1, above the 3:1 floor). From a `foreground` input, `ink` softened toward `surface` until it just holds 4.5:1.",
|
|
135
|
+
"from": "foreground,surface"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "focus-ring",
|
|
139
|
+
"value": "{ink}",
|
|
140
|
+
"usage": "Solid 2px focus outline with 2px offset on buttons, links, tabs, rows and every control that is not a text input; 3:1 or better on every surface and fill.",
|
|
141
|
+
"from": "foreground"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "focus-field",
|
|
145
|
+
"value": "{primary}",
|
|
146
|
+
"usage": "The focus outline and edge of text inputs and everything built on them (Field, Select, Combobox, DatePicker, NumberField, SearchBar, OtpField). Primary teal, 7.9:1 on `surface`. An invalid input keeps `danger`. Buttons and links use `focus-ring`.",
|
|
147
|
+
"from": "brand"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"type": {
|
|
152
|
+
"fonts": [],
|
|
153
|
+
"families": {
|
|
154
|
+
"sans": "\"Jost\", Futura, \"Century Gothic\", \"Avenir Next\", system-ui, sans-serif",
|
|
155
|
+
"mono": "\"Spline Sans Mono\", ui-monospace, Menlo, Consolas, monospace"
|
|
156
|
+
},
|
|
157
|
+
"groups": [
|
|
158
|
+
{
|
|
159
|
+
"name": "Headings",
|
|
160
|
+
"family": "sans",
|
|
161
|
+
"styles": [
|
|
162
|
+
{
|
|
163
|
+
"name": "h1",
|
|
164
|
+
"fontSize": "36px",
|
|
165
|
+
"lineHeight": "40px",
|
|
166
|
+
"fontWeight": 500,
|
|
167
|
+
"usage": "Page title.",
|
|
168
|
+
"sample": "Your account"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "h2",
|
|
172
|
+
"fontSize": "24px",
|
|
173
|
+
"lineHeight": "32px",
|
|
174
|
+
"fontWeight": 500,
|
|
175
|
+
"usage": "Section title.",
|
|
176
|
+
"sample": "Upcoming visits"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "h3",
|
|
180
|
+
"fontSize": "20px",
|
|
181
|
+
"lineHeight": "28px",
|
|
182
|
+
"fontWeight": 500,
|
|
183
|
+
"usage": "Card and panel title.",
|
|
184
|
+
"sample": "Visit on Oct 2"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "Text",
|
|
190
|
+
"family": "sans",
|
|
191
|
+
"styles": [
|
|
192
|
+
{
|
|
193
|
+
"name": "deck",
|
|
194
|
+
"fontSize": "18px",
|
|
195
|
+
"lineHeight": "26px",
|
|
196
|
+
"fontWeight": 400,
|
|
197
|
+
"usage": "The one-sentence reading of a statement: what it is and what to do next.",
|
|
198
|
+
"sample": "Your balance is due November 1."
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "body",
|
|
202
|
+
"fontSize": "16px",
|
|
203
|
+
"lineHeight": "24px",
|
|
204
|
+
"fontWeight": 400,
|
|
205
|
+
"usage": "Default copy, 62 characters wide at most.",
|
|
206
|
+
"sample": "Pay online in about a minute."
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "small",
|
|
210
|
+
"fontSize": "14px",
|
|
211
|
+
"lineHeight": "20px",
|
|
212
|
+
"fontWeight": 400,
|
|
213
|
+
"usage": "Table cells, helper text, secondary copy.",
|
|
214
|
+
"sample": "Statement 4471, sent Oct 14"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "Labels and figures",
|
|
220
|
+
"family": "mono",
|
|
221
|
+
"styles": [
|
|
222
|
+
{
|
|
223
|
+
"name": "kicker",
|
|
224
|
+
"fontSize": "12px",
|
|
225
|
+
"lineHeight": "14px",
|
|
226
|
+
"fontWeight": 600,
|
|
227
|
+
"letterSpacing": "0.08em",
|
|
228
|
+
"usage": "Uppercase mono labels, and the text inside chips and stamps.",
|
|
229
|
+
"sample": "HISTORY"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "button",
|
|
233
|
+
"fontSize": "16px",
|
|
234
|
+
"lineHeight": "15px",
|
|
235
|
+
"fontWeight": 600,
|
|
236
|
+
"usage": "Button labels.",
|
|
237
|
+
"sample": "Pay now"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "numeral",
|
|
241
|
+
"fontSize": "14px",
|
|
242
|
+
"lineHeight": "18px",
|
|
243
|
+
"fontWeight": 500,
|
|
244
|
+
"usage": "Amounts, counts, statement numbers and dates in a row. Tabular.",
|
|
245
|
+
"sample": "$162.40"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "numeral-l",
|
|
249
|
+
"fontSize": "30px",
|
|
250
|
+
"lineHeight": "30px",
|
|
251
|
+
"fontWeight": 500,
|
|
252
|
+
"letterSpacing": "-0.02em",
|
|
253
|
+
"usage": "The one amount a statement card leads with.",
|
|
254
|
+
"sample": "$162.40"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"spacing": {
|
|
261
|
+
"tokens": [
|
|
262
|
+
{
|
|
263
|
+
"name": "space-1",
|
|
264
|
+
"value": "4px",
|
|
265
|
+
"usage": "Icon-to-text gaps, gap inside a chip.",
|
|
266
|
+
"from": "spaceScale"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "space-2",
|
|
270
|
+
"value": "8px",
|
|
271
|
+
"usage": "Tight stacks, chip padding.",
|
|
272
|
+
"from": "spaceScale"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "space-3",
|
|
276
|
+
"value": "12px",
|
|
277
|
+
"usage": "Control padding, compact rows.",
|
|
278
|
+
"from": "spaceScale"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "space-4",
|
|
282
|
+
"value": "16px",
|
|
283
|
+
"usage": "Card padding, default gap, side gutter.",
|
|
284
|
+
"from": "spaceScale"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "space-6",
|
|
288
|
+
"value": "24px",
|
|
289
|
+
"usage": "Between related groups and parts of a statement.",
|
|
290
|
+
"from": "spaceScale"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "space-8",
|
|
294
|
+
"value": "32px",
|
|
295
|
+
"usage": "Section padding.",
|
|
296
|
+
"from": "spaceScale"
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
"radius": {
|
|
301
|
+
"tokens": [
|
|
302
|
+
{
|
|
303
|
+
"name": "radius-sm",
|
|
304
|
+
"value": "4px",
|
|
305
|
+
"usage": "Stamps and tags.",
|
|
306
|
+
"from": "radius"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "radius-md",
|
|
310
|
+
"value": "8px",
|
|
311
|
+
"usage": "Buttons, inputs, cards, notices.",
|
|
312
|
+
"from": "radius"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "radius-lg",
|
|
316
|
+
"value": "16px",
|
|
317
|
+
"usage": "Dialogs.",
|
|
318
|
+
"from": "radius"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "radius-pill",
|
|
322
|
+
"value": "999px",
|
|
323
|
+
"usage": "Chips and round buttons, echoing the logo's round caps.",
|
|
324
|
+
"constant": true
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
"shadow": {
|
|
329
|
+
"tokens": [
|
|
330
|
+
{
|
|
331
|
+
"name": "edge",
|
|
332
|
+
"value": "0 0 0 1px #7f8f96",
|
|
333
|
+
"usage": "The flat outline of everything that is not clickable: cards, summaries, the SearchBar. A 1px `border` ring (3.4:1 on white), no depth.",
|
|
334
|
+
"from": "elevation,strokes,foreground,background"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "well",
|
|
338
|
+
"value": "inset 0 2px 0 0 rgba(0, 0, 0, 0.1)",
|
|
339
|
+
"usage": "Inputs, meters and empty slots pressed into the page.",
|
|
340
|
+
"from": "elevation,surface"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "float",
|
|
344
|
+
"value": "0 0 0 1px #7f8f96, 0 1px 2px 0px rgba(36, 36, 36, 0.08), 0 4px 8px -2px rgba(36, 36, 36, 0.1), 0 12px 24px -6px rgba(36, 36, 36, 0.14), 0 24px 48px -12px rgba(36, 36, 36, 0.18)",
|
|
345
|
+
"usage": "Popovers, menus and toasts: the surfaces that float over the page. Four stacked, low-opacity shadows of growing size read as one soft shadow, so it never looks like a hard black edge. Nothing in the flow of the page uses it.",
|
|
346
|
+
"from": "elevation,strokes,foreground,surface,background"
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"fontSize": {
|
|
351
|
+
"note": "One scale for every piece of text. Components read these; nothing sets a size in raw pixels.",
|
|
352
|
+
"tokens": [
|
|
353
|
+
{
|
|
354
|
+
"name": "text-xs",
|
|
355
|
+
"value": "12px",
|
|
356
|
+
"usage": "Kickers, chips, stamps, micro labels and other mono labels. Never smaller.",
|
|
357
|
+
"from": "textScale"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "text-sm",
|
|
361
|
+
"value": "14px",
|
|
362
|
+
"usage": "Secondary copy, table cells, helper text, small buttons.",
|
|
363
|
+
"from": "textScale"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "text-md",
|
|
367
|
+
"value": "16px",
|
|
368
|
+
"usage": "Body copy, input text and button labels. Inputs must stay at 16px or more so phones do not zoom in on focus.",
|
|
369
|
+
"from": "textScale"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "text-lg",
|
|
373
|
+
"value": "18px",
|
|
374
|
+
"usage": "The deck: a one-sentence reading of a statement. Calendar headings.",
|
|
375
|
+
"from": "textScale"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "text-xl",
|
|
379
|
+
"value": "20px",
|
|
380
|
+
"usage": "Card and panel titles (h3).",
|
|
381
|
+
"from": "textScale"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "text-2xl",
|
|
385
|
+
"value": "24px",
|
|
386
|
+
"usage": "Section titles (h2).",
|
|
387
|
+
"from": "textScale"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "text-3xl",
|
|
391
|
+
"value": "30px",
|
|
392
|
+
"usage": "The one amount a statement leads with.",
|
|
393
|
+
"from": "textScale"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "text-4xl",
|
|
397
|
+
"value": "36px",
|
|
398
|
+
"usage": "Page titles (h1).",
|
|
399
|
+
"from": "textScale"
|
|
400
|
+
}
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
"size": {
|
|
404
|
+
"note": "Sizes that components share.",
|
|
405
|
+
"tokens": [
|
|
406
|
+
{
|
|
407
|
+
"name": "control-height",
|
|
408
|
+
"value": "48px",
|
|
409
|
+
"usage": "Height of every control that can be tapped: buttons, inputs, selects, date fields, slots, and one row of a multi-select. One height everywhere, so a Button beside an input lines up and a field never shifts when it changes type.",
|
|
410
|
+
"from": "controlHeight",
|
|
411
|
+
"input": true
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "chip-height",
|
|
415
|
+
"value": "24px",
|
|
416
|
+
"usage": "Height of a Chip or a small Stamp.",
|
|
417
|
+
"from": "controlHeight"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "measure",
|
|
421
|
+
"value": "62ch",
|
|
422
|
+
"usage": "Longest comfortable line of copy.",
|
|
423
|
+
"constant": true
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
"stroke": {
|
|
428
|
+
"note": "Line weights and the gap between a control and its focus outline.",
|
|
429
|
+
"tokens": [
|
|
430
|
+
{
|
|
431
|
+
"name": "stroke-hair",
|
|
432
|
+
"value": "1px",
|
|
433
|
+
"usage": "Dividers and the rule between rows.",
|
|
434
|
+
"from": "strokes",
|
|
435
|
+
"input": true
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "stroke-card",
|
|
439
|
+
"value": "1px",
|
|
440
|
+
"usage": "The outline of a card, panel, table or other container that is not clickable, and of a chip or stamp. Follows the hairline; a bold elevation draws it at 2px.",
|
|
441
|
+
"from": "strokes,elevation"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "stroke-edge",
|
|
445
|
+
"value": "1.5px",
|
|
446
|
+
"usage": "The outline of a control, chip or stamp.",
|
|
447
|
+
"from": "strokes"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "stroke-focus",
|
|
451
|
+
"value": "2px",
|
|
452
|
+
"usage": "The focus outline.",
|
|
453
|
+
"from": "strokes",
|
|
454
|
+
"input": true
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "focus-gap",
|
|
458
|
+
"value": "2px",
|
|
459
|
+
"usage": "Space between a button or link and its focus outline.",
|
|
460
|
+
"from": "strokes"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "focus-gap-field",
|
|
464
|
+
"value": "-1px",
|
|
465
|
+
"usage": "Space between a text input and its focus outline: a 1px overlap, so the outline sits over the border with no seam.",
|
|
466
|
+
"from": "strokes"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "depth",
|
|
470
|
+
"value": "2px",
|
|
471
|
+
"usage": "How far a raised or pressed edge reaches. A button, a statement row and a selected time slot stand out by this much of extra thickness on the bottom edge; a pressed button, the selected item of a list or segmented control and a notice are pressed in by the same amount on the top edge.",
|
|
472
|
+
"constant": true
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
"duration": {
|
|
477
|
+
"note": "How long state changes take. They stop under reduced motion.",
|
|
478
|
+
"tokens": [
|
|
479
|
+
{
|
|
480
|
+
"name": "duration-tap",
|
|
481
|
+
"value": "80ms",
|
|
482
|
+
"usage": "Hover and press feedback.",
|
|
483
|
+
"from": "motion"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "duration-move",
|
|
487
|
+
"value": "220ms",
|
|
488
|
+
"usage": "Things that move: a progress fill, a drawer.",
|
|
489
|
+
"from": "motion"
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
"easing": {
|
|
494
|
+
"tokens": [
|
|
495
|
+
{
|
|
496
|
+
"name": "easing-out",
|
|
497
|
+
"value": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
498
|
+
"usage": "Fast start, soft landing. The only easing in the system.",
|
|
499
|
+
"from": "motion"
|
|
500
|
+
}
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
"zIndex": {
|
|
504
|
+
"note": "Layers above the page. Native dialogs and popovers sit in the browser's top layer and need none.",
|
|
505
|
+
"tokens": [
|
|
506
|
+
{
|
|
507
|
+
"name": "z-raised",
|
|
508
|
+
"value": "1",
|
|
509
|
+
"usage": "A part that must sit above its sibling inside one component.",
|
|
510
|
+
"constant": true
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "z-sticky",
|
|
514
|
+
"value": "5",
|
|
515
|
+
"usage": "Sticky table headers and columns.",
|
|
516
|
+
"constant": true
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "z-tooltip",
|
|
520
|
+
"value": "55",
|
|
521
|
+
"usage": "Tooltip bubbles: above everything, including dialogs, popovers and toasts.",
|
|
522
|
+
"constant": true
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "z-modal",
|
|
526
|
+
"value": "40",
|
|
527
|
+
"usage": "Dialogs and drawers with their scrim.",
|
|
528
|
+
"constant": true
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "z-popover",
|
|
532
|
+
"value": "45",
|
|
533
|
+
"usage": "Popovers, menus and option lists. Above modals, so a Select inside a Dialog opens over it.",
|
|
534
|
+
"constant": true
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "z-toast",
|
|
538
|
+
"value": "50",
|
|
539
|
+
"usage": "The toast region: above modals and popovers.",
|
|
540
|
+
"constant": true
|
|
541
|
+
}
|
|
542
|
+
]
|
|
543
|
+
}
|
|
544
|
+
}
|