@beehexa/design-tokens 2611.6.1 → 2611.8.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/dist/dtcg/button.json +51 -0
- package/dist/dtcg/color.json +11 -16
- package/dist/dtcg/motion.json +3 -0
- package/dist/dtcg/switch.json +15 -15
- package/dist/index.d.ts +210 -105
- package/dist/index.js +210 -105
- package/dist/tokens.css +15 -13
- package/dist/tokens.pixels.css +15 -13
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"button": {
|
|
3
|
+
"$description": "Button paint that differs from its family. Survey 55 (18 design systems): a no-fill or bordered neutral button darkens 4–12% on hover and 8–16% when pressed; the row and menu family (color.background.neutral.subtle) stays lighter so a hovered row never looks selected.",
|
|
4
|
+
"background": {
|
|
5
|
+
"subtle": {
|
|
6
|
+
"hover": {
|
|
7
|
+
"$type": "color",
|
|
8
|
+
"$value": "{color.background.neutral}",
|
|
9
|
+
"$description": "Subtle and Default buttons on hover: one neutral step (graphite 3 in light, about 5% darker than white). Rows and menu items keep color.background.neutral.subtle.hover.",
|
|
10
|
+
"$extensions": {
|
|
11
|
+
"design.beehexa": {
|
|
12
|
+
"component": "button"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"pressed": {
|
|
17
|
+
"$type": "color",
|
|
18
|
+
"$value": "{color.background.neutral.hover}",
|
|
19
|
+
"$description": "Subtle and Default buttons while pressed: two neutral steps (graphite 4 in light, about 9% darker than white). Not in the contrast check; text and border keep their rest colour.",
|
|
20
|
+
"$extensions": {
|
|
21
|
+
"design.beehexa": {
|
|
22
|
+
"component": "button"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"selected": {
|
|
28
|
+
"$type": "color",
|
|
29
|
+
"$value": "{color.background.neutral.pressed}",
|
|
30
|
+
"$description": "A toggle button that is on (aria-pressed=\"true\"): two neutral steps above the button hover (graphite 5 in light), so it never looks like a hovered button. Always with color.border.bold as the second cue.",
|
|
31
|
+
"$extensions": {
|
|
32
|
+
"design.beehexa": {
|
|
33
|
+
"component": "button"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"border": {
|
|
39
|
+
"selected": {
|
|
40
|
+
"$type": "color",
|
|
41
|
+
"$value": "{color.border.bold}",
|
|
42
|
+
"$description": "Edge of a toggle button that is on. The second cue next to button.background.selected.",
|
|
43
|
+
"$extensions": {
|
|
44
|
+
"design.beehexa": {
|
|
45
|
+
"component": "button"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
package/dist/dtcg/color.json
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"9": {
|
|
117
117
|
"$type": "color",
|
|
118
118
|
"$value": "#878582",
|
|
119
|
-
"$description": "
|
|
119
|
+
"$description": "Edge of controls (border.bold): 3:1 on every neutral fill, selected rows included.",
|
|
120
120
|
"$extensions": {
|
|
121
121
|
"design.beehexa": {
|
|
122
122
|
"dark": "#878682"
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"10": {
|
|
127
127
|
"$type": "color",
|
|
128
128
|
"$value": "#676663",
|
|
129
|
-
"$description": "
|
|
129
|
+
"$description": "Tertiary text (text.subtlest) and secondary icons (icon.subtle). The primary button when pressed.",
|
|
130
130
|
"$extensions": {
|
|
131
131
|
"design.beehexa": {
|
|
132
132
|
"dark": "#a8a6a3"
|
|
@@ -783,13 +783,8 @@
|
|
|
783
783
|
},
|
|
784
784
|
"subtlest": {
|
|
785
785
|
"$type": "color",
|
|
786
|
-
"$value": "{color.graphite.
|
|
787
|
-
"$description": "Tertiary metadata, timestamps, placeholders, helper text
|
|
788
|
-
"$extensions": {
|
|
789
|
-
"design.beehexa": {
|
|
790
|
-
"dark": "{color.graphite.10}"
|
|
791
|
-
}
|
|
792
|
-
}
|
|
786
|
+
"$value": "{color.graphite.10}",
|
|
787
|
+
"$description": "Tertiary text: metadata, timestamps, placeholders, helper text, breadcrumbs. Meets 4.5:1 but not 7:1, so never use it for body text."
|
|
793
788
|
},
|
|
794
789
|
"disabled": {
|
|
795
790
|
"$type": "color",
|
|
@@ -1288,13 +1283,13 @@
|
|
|
1288
1283
|
},
|
|
1289
1284
|
"bold": {
|
|
1290
1285
|
"$type": "color",
|
|
1291
|
-
"$value": "{color.graphite.
|
|
1292
|
-
"$description": "
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1286
|
+
"$value": "{color.graphite.9}",
|
|
1287
|
+
"$description": "Edges of inputs, checkboxes and selects. 3:1 (WCAG 1.4.11) on every surface and neutral fill, selected rows included."
|
|
1288
|
+
},
|
|
1289
|
+
"hover": {
|
|
1290
|
+
"$type": "color",
|
|
1291
|
+
"$value": "{color.graphite.7}",
|
|
1292
|
+
"$description": "Border of a bordered button on hover and while pressed, one step darker than color.border. Survey 55: 8 of 11 bordered buttons darken their edge on hover."
|
|
1298
1293
|
},
|
|
1299
1294
|
"disabled": {
|
|
1300
1295
|
"$type": "color",
|
package/dist/dtcg/motion.json
CHANGED
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
"action": { "$type": "duration", "$value": "10000ms", "$description": "10 s. A toast with an action closes after this long. The timer pauses while the pointer or focus is on it." }
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
"loop": {
|
|
23
|
+
"spinner": { "$type": "duration", "$value": "1000ms", "$description": "1 s. One full turn of a loading spinner, at constant speed. Under reduced motion it turns at half speed but never stops, because it is the only sign that work is running." }
|
|
24
|
+
},
|
|
22
25
|
"easing": {
|
|
23
26
|
"standard": { "$type": "cubicBezier", "$value": "cubic-bezier(0.4, 0, 0.2, 1)", "$description": "Speeds up, then slows down. Things that move within the screen, and changes the system makes on its own." },
|
|
24
27
|
"enter": { "$type": "cubicBezier", "$value": "cubic-bezier(0, 0, 0.2, 1)", "$description": "Starts fast and slows to a stop. Things that come onto the screen: menus, dialogs, drawers, toasts." },
|
package/dist/dtcg/switch.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"switch": {
|
|
3
|
-
"$description": "Paired paint for a real boolean Switch in normal/small native geometry. Checked means ON, not success. Light/dark aliases resolve through approved color roles; locale changes labels, never state colors. Focus adds the source ring; loading preserves checked paint and blocks native changes; disabled
|
|
3
|
+
"$description": "Paired paint for a real boolean Switch in normal/small native geometry. Checked means ON, not success. Light/dark aliases resolve through approved color roles; locale changes labels, never state colors. Focus adds the source ring; loading preserves checked paint and blocks native changes; disabled uses explicit opaque disabled pairs.",
|
|
4
4
|
"focus-ring": {
|
|
5
5
|
"$type": "color",
|
|
6
6
|
"$value": "{color.border.focus}",
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
},
|
|
128
128
|
"disabled": {
|
|
129
129
|
"$type": "color",
|
|
130
|
-
"$value": "{color.icon.
|
|
131
|
-
"$description": "OFF thumb, disabled.
|
|
130
|
+
"$value": "{color.icon.disabled}",
|
|
131
|
+
"$description": "OFF thumb, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.",
|
|
132
132
|
"$extensions": {
|
|
133
133
|
"design.beehexa": {
|
|
134
134
|
"component": "switch"
|
|
@@ -189,8 +189,8 @@
|
|
|
189
189
|
},
|
|
190
190
|
"disabled": {
|
|
191
191
|
"$type": "color",
|
|
192
|
-
"$value": "{color.text.
|
|
193
|
-
"$description": "OFF label, disabled.
|
|
192
|
+
"$value": "{color.text.disabled}",
|
|
193
|
+
"$description": "OFF label, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.",
|
|
194
194
|
"$extensions": {
|
|
195
195
|
"design.beehexa": {
|
|
196
196
|
"component": "switch"
|
|
@@ -251,8 +251,8 @@
|
|
|
251
251
|
},
|
|
252
252
|
"disabled": {
|
|
253
253
|
"$type": "color",
|
|
254
|
-
"$value": "{color.border.
|
|
255
|
-
"$description": "OFF border, disabled.
|
|
254
|
+
"$value": "{color.border.disabled}",
|
|
255
|
+
"$description": "OFF border, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.",
|
|
256
256
|
"$extensions": {
|
|
257
257
|
"design.beehexa": {
|
|
258
258
|
"component": "switch"
|
|
@@ -325,8 +325,8 @@
|
|
|
325
325
|
},
|
|
326
326
|
"disabled": {
|
|
327
327
|
"$type": "color",
|
|
328
|
-
"$value": "{color.background.
|
|
329
|
-
"$description": "ON track, disabled.
|
|
328
|
+
"$value": "{color.background.disabled}",
|
|
329
|
+
"$description": "ON track, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.",
|
|
330
330
|
"$extensions": {
|
|
331
331
|
"design.beehexa": {
|
|
332
332
|
"component": "switch"
|
|
@@ -387,8 +387,8 @@
|
|
|
387
387
|
},
|
|
388
388
|
"disabled": {
|
|
389
389
|
"$type": "color",
|
|
390
|
-
"$value": "{color.icon.
|
|
391
|
-
"$description": "ON thumb, disabled.
|
|
390
|
+
"$value": "{color.icon.disabled}",
|
|
391
|
+
"$description": "ON thumb, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.",
|
|
392
392
|
"$extensions": {
|
|
393
393
|
"design.beehexa": {
|
|
394
394
|
"component": "switch"
|
|
@@ -449,8 +449,8 @@
|
|
|
449
449
|
},
|
|
450
450
|
"disabled": {
|
|
451
451
|
"$type": "color",
|
|
452
|
-
"$value": "{color.text.
|
|
453
|
-
"$description": "ON label, disabled.
|
|
452
|
+
"$value": "{color.text.disabled}",
|
|
453
|
+
"$description": "ON label, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.",
|
|
454
454
|
"$extensions": {
|
|
455
455
|
"design.beehexa": {
|
|
456
456
|
"component": "switch"
|
|
@@ -511,8 +511,8 @@
|
|
|
511
511
|
},
|
|
512
512
|
"disabled": {
|
|
513
513
|
"$type": "color",
|
|
514
|
-
"$value": "{
|
|
515
|
-
"$description": "ON border, disabled.
|
|
514
|
+
"$value": "{color.border.disabled}",
|
|
515
|
+
"$description": "ON border, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming.",
|
|
516
516
|
"$extensions": {
|
|
517
517
|
"design.beehexa": {
|
|
518
518
|
"component": "switch"
|