@beehexa/design-tokens 2611.5.5 → 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/README.md +2 -3
- package/dist/dtcg/button.json +51 -0
- package/dist/dtcg/color.json +13 -8
- package/dist/dtcg/components.json +39 -0
- package/dist/dtcg/content.json +103 -10
- package/dist/dtcg/diagram.json +490 -49
- package/dist/dtcg/editor.json +128 -22
- package/dist/dtcg/flow.json +412 -80
- package/dist/dtcg/layout.json +13 -4
- package/dist/dtcg/motion.json +14 -0
- package/dist/dtcg/radius.json +9 -9
- package/dist/dtcg/renderer.json +8 -0
- package/dist/dtcg/resize.json +84 -15
- package/dist/dtcg/scrollbar.json +42 -7
- package/dist/dtcg/size.json +6 -6
- package/dist/dtcg/spacing.json +1 -1
- package/dist/dtcg/switch.json +306 -51
- package/dist/dtcg/typography.json +1 -1
- package/dist/dtcg/visualization.json +465 -53
- package/dist/dtcg/z-index.json +0 -10
- package/dist/index.d.ts +1085 -271
- package/dist/index.js +1085 -271
- package/dist/tokens.css +71 -40
- package/dist/tokens.pixels.css +71 -40
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,9 +73,8 @@ hover/active; standards-only engines use native `thin` geometry and host
|
|
|
73
73
|
hover/active colors because their API has no thumb-state pseudo-elements. Platform
|
|
74
74
|
overlay visibility/geometry remains native, and forced-colors mode retains native
|
|
75
75
|
system scrollbar paint and geometry. Keyboard, wheel and touch scrolling remain
|
|
76
|
-
natural. Full ownership, accessibility
|
|
77
|
-
|
|
78
|
-
`@beehexa/design-rules` (source `src/content/foundations/styles/scrollbars.mdx`).
|
|
76
|
+
natural. Full ownership, accessibility and fallback guidance is the Scrollbar
|
|
77
|
+
component (source `src/content/components/scrollbar/`).
|
|
79
78
|
|
|
80
79
|
## Source authority and limits
|
|
81
80
|
|
|
@@ -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
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"2": {
|
|
47
47
|
"$type": "color",
|
|
48
48
|
"$value": "#f8f8f8",
|
|
49
|
-
"$description": "Subtle background:
|
|
49
|
+
"$description": "Subtle background: table headers, quiet areas.",
|
|
50
50
|
"$extensions": {
|
|
51
51
|
"design.beehexa": {
|
|
52
52
|
"dark": "#201f1f"
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"2": {
|
|
170
170
|
"$type": "color",
|
|
171
171
|
"$value": "#fff9dd",
|
|
172
|
-
"$description": "Subtle background:
|
|
172
|
+
"$description": "Subtle background: table headers, quiet areas.",
|
|
173
173
|
"$extensions": {
|
|
174
174
|
"design.beehexa": {
|
|
175
175
|
"dark": "#1d170f"
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"2": {
|
|
293
293
|
"$type": "color",
|
|
294
294
|
"$value": "#f4faff",
|
|
295
|
-
"$description": "Subtle background:
|
|
295
|
+
"$description": "Subtle background: table headers, quiet areas.",
|
|
296
296
|
"$extensions": {
|
|
297
297
|
"design.beehexa": {
|
|
298
298
|
"dark": "#111927"
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
"2": {
|
|
416
416
|
"$type": "color",
|
|
417
417
|
"$value": "#f4fbf6",
|
|
418
|
-
"$description": "Subtle background:
|
|
418
|
+
"$description": "Subtle background: table headers, quiet areas.",
|
|
419
419
|
"$extensions": {
|
|
420
420
|
"design.beehexa": {
|
|
421
421
|
"dark": "#121b17"
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
"2": {
|
|
539
539
|
"$type": "color",
|
|
540
540
|
"$value": "#fff7ed",
|
|
541
|
-
"$description": "Subtle background:
|
|
541
|
+
"$description": "Subtle background: table headers, quiet areas.",
|
|
542
542
|
"$extensions": {
|
|
543
543
|
"design.beehexa": {
|
|
544
544
|
"dark": "#1e160f"
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
"2": {
|
|
662
662
|
"$type": "color",
|
|
663
663
|
"$value": "#fff7f6",
|
|
664
|
-
"$description": "Subtle background:
|
|
664
|
+
"$description": "Subtle background: table headers, quiet areas.",
|
|
665
665
|
"$extensions": {
|
|
666
666
|
"design.beehexa": {
|
|
667
667
|
"dark": "#201312"
|
|
@@ -1193,7 +1193,7 @@
|
|
|
1193
1193
|
"page": {
|
|
1194
1194
|
"$type": "color",
|
|
1195
1195
|
"$value": "{color.brand.white}",
|
|
1196
|
-
"$description": "Page background.",
|
|
1196
|
+
"$description": "Page background. The app header and side navigation sit on it too, separated by a border line.",
|
|
1197
1197
|
"$extensions": {
|
|
1198
1198
|
"design.beehexa": {
|
|
1199
1199
|
"dark": "{color.graphite.1}"
|
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
"subtle": {
|
|
1204
1204
|
"$type": "color",
|
|
1205
1205
|
"$value": "{color.graphite.2}",
|
|
1206
|
-
"$description": "
|
|
1206
|
+
"$description": "Table headers and quiet areas."
|
|
1207
1207
|
},
|
|
1208
1208
|
"overlay": {
|
|
1209
1209
|
"$root": {
|
|
@@ -1286,6 +1286,11 @@
|
|
|
1286
1286
|
"$value": "{color.graphite.9}",
|
|
1287
1287
|
"$description": "Edges of inputs, checkboxes and selects. 3:1 (WCAG 1.4.11) on every surface and neutral fill, selected rows included."
|
|
1288
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."
|
|
1293
|
+
},
|
|
1289
1294
|
"disabled": {
|
|
1290
1295
|
"$type": "color",
|
|
1291
1296
|
"$value": "{color.graphite.6}",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"switch": {
|
|
3
|
+
"size": {
|
|
4
|
+
"track": {
|
|
5
|
+
"height": { "$type": "dimension", "$value": "1.25rem", "$description": "20 px. Height of the switch track.", "$extensions": { "design.beehexa": { "component": "switch" } } },
|
|
6
|
+
"width": { "$type": "dimension", "$value": "2.25rem", "$description": "36 px. Width of the switch track.", "$extensions": { "design.beehexa": { "component": "switch" } } }
|
|
7
|
+
},
|
|
8
|
+
"thumb": { "$type": "dimension", "$value": "1rem", "$description": "16 px. Diameter of the switch knob.", "$extensions": { "design.beehexa": { "component": "switch" } } }
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"avatar": {
|
|
12
|
+
"size": {
|
|
13
|
+
"default": { "$type": "dimension", "$value": "{size.control.default}", "$description": "32 px. Avatar everywhere except dense tables and lists; the same height as a default control.", "$extensions": { "design.beehexa": { "component": "avatar" } } },
|
|
14
|
+
"small": { "$type": "dimension", "$value": "{size.control.small}", "$description": "24 px. Avatar in dense tables and lists; the same height as a small control.", "$extensions": { "design.beehexa": { "component": "avatar" } } }
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"label": {
|
|
18
|
+
"height": {
|
|
19
|
+
"default": { "$type": "dimension", "$value": "1.25rem", "$description": "20 px. Height of a status label in table rows and lists.", "$extensions": { "design.beehexa": { "component": "label" } } },
|
|
20
|
+
"large": { "$type": "dimension", "$value": "{size.control.small}", "$description": "24 px. Height of a large status label.", "$extensions": { "design.beehexa": { "component": "label" } } },
|
|
21
|
+
"state": { "$type": "dimension", "$value": "{size.control.default}", "$description": "32 px. Height of the state label: one per page, the status the page is about.", "$extensions": { "design.beehexa": { "component": "label" } } }
|
|
22
|
+
},
|
|
23
|
+
"padding": {
|
|
24
|
+
"default": { "$type": "dimension", "$value": "{space.075}", "$description": "6 px. Side padding of a status label.", "$extensions": { "design.beehexa": { "component": "label" } } },
|
|
25
|
+
"large": { "$type": "dimension", "$value": "{space.100}", "$description": "8 px. Side padding of a large status label.", "$extensions": { "design.beehexa": { "component": "label" } } },
|
|
26
|
+
"state": { "$type": "dimension", "$value": "{space.150}", "$description": "12 px. Side padding of the state label.", "$extensions": { "design.beehexa": { "component": "label" } } }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"tag": {
|
|
30
|
+
"height": { "$type": "dimension", "$value": "{size.control.small}", "$description": "24 px. Height of a tag.", "$extensions": { "design.beehexa": { "component": "tag" } } },
|
|
31
|
+
"padding": { "$type": "dimension", "$value": "{space.100}", "$description": "8 px. Side padding of a tag.", "$extensions": { "design.beehexa": { "component": "tag" } } }
|
|
32
|
+
},
|
|
33
|
+
"chip": {
|
|
34
|
+
"height": {
|
|
35
|
+
"small": { "$type": "dimension", "$value": "{size.control.small}", "$description": "24 px. Chip in dense toolbars.", "$extensions": { "design.beehexa": { "component": "chip" } } },
|
|
36
|
+
"default": { "$type": "dimension", "$value": "{size.control.default}", "$description": "32 px. Chip everywhere else.", "$extensions": { "design.beehexa": { "component": "chip" } } }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/dist/dtcg/content.json
CHANGED
|
@@ -1,24 +1,117 @@
|
|
|
1
1
|
{
|
|
2
2
|
"content": {
|
|
3
|
-
"$description": "Reusable application-content identity, empty-state and read-only step-progress geometry. Identity colours never encode operational status.",
|
|
3
|
+
"$description": "Reusable application-content identity, empty-state, structured Tooltip and read-only step-progress geometry. Identity colours never encode operational status.",
|
|
4
4
|
"partner-logo": {
|
|
5
|
-
"size": {
|
|
6
|
-
|
|
5
|
+
"size": {
|
|
6
|
+
"$type": "dimension",
|
|
7
|
+
"$value": "{space.500}",
|
|
8
|
+
"$description": "Non-image partner-group placeholder extent, not a brand-image width or fixed-square Avatar recipe.",
|
|
9
|
+
"$extensions": {
|
|
10
|
+
"design.beehexa": {
|
|
11
|
+
"component": "content"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"image-size": {
|
|
16
|
+
"$type": "dimension",
|
|
17
|
+
"$value": "{space.300}",
|
|
18
|
+
"$description": "Common rendered height of connector and partner brand images. Width is always intrinsic/auto at this height; no square frame, width cap, crop or distortion.",
|
|
19
|
+
"$extensions": {
|
|
20
|
+
"design.beehexa": {
|
|
21
|
+
"component": "content"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
7
25
|
},
|
|
8
26
|
"avatar": {
|
|
9
|
-
"size": {
|
|
27
|
+
"size": {
|
|
28
|
+
"$type": "dimension",
|
|
29
|
+
"$value": "{size.control.default}",
|
|
30
|
+
"$description": "Default person or permission-member identity avatar; a visual identity, not a hit target.",
|
|
31
|
+
"$extensions": {
|
|
32
|
+
"design.beehexa": {
|
|
33
|
+
"component": "content"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
10
37
|
},
|
|
11
38
|
"identity-mark": {
|
|
12
|
-
"size": {
|
|
13
|
-
|
|
39
|
+
"size": {
|
|
40
|
+
"$type": "dimension",
|
|
41
|
+
"$value": "{size.target.touch}",
|
|
42
|
+
"$description": "System/provider identity container when shown beside content labels.",
|
|
43
|
+
"$extensions": {
|
|
44
|
+
"design.beehexa": {
|
|
45
|
+
"component": "content"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"image-size": {
|
|
50
|
+
"$type": "dimension",
|
|
51
|
+
"$value": "{space.300}",
|
|
52
|
+
"$description": "Contained system/provider identity glyph within the identity-mark container.",
|
|
53
|
+
"$extensions": {
|
|
54
|
+
"design.beehexa": {
|
|
55
|
+
"component": "content"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
14
59
|
},
|
|
15
60
|
"empty-illustration": {
|
|
16
|
-
"size": {
|
|
61
|
+
"size": {
|
|
62
|
+
"$type": "dimension",
|
|
63
|
+
"$value": "6rem",
|
|
64
|
+
"$description": "Empty-state illustration container. Standard icons inside retain their own source icon sizes.",
|
|
65
|
+
"$extensions": {
|
|
66
|
+
"design.beehexa": {
|
|
67
|
+
"component": "content"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"tooltip": {
|
|
73
|
+
"metric-max-inline-size": {
|
|
74
|
+
"$type": "dimension",
|
|
75
|
+
"$value": "28rem",
|
|
76
|
+
"$description": "Maximum readable width for an opt-in native date/metric Tooltip. The actual popup also stays within the viewport with space.200 on either side; not a global Tooltip width or a minimum.",
|
|
77
|
+
"$extensions": {
|
|
78
|
+
"design.beehexa": {
|
|
79
|
+
"component": "content"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
17
83
|
},
|
|
18
84
|
"step-progress": {
|
|
19
|
-
"segment-width": {
|
|
20
|
-
|
|
21
|
-
|
|
85
|
+
"segment-width": {
|
|
86
|
+
"$type": "dimension",
|
|
87
|
+
"$value": "{space.200}",
|
|
88
|
+
"$description": "16px horizontal mark in an opt-in read-only native segmented Progress; not a navigation step or status dot.",
|
|
89
|
+
"$extensions": {
|
|
90
|
+
"design.beehexa": {
|
|
91
|
+
"component": "content"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"segment-height": {
|
|
96
|
+
"$type": "dimension",
|
|
97
|
+
"$value": "{space.050}",
|
|
98
|
+
"$description": "4px thickness of each horizontal step-progress mark; scales with the reader's root.",
|
|
99
|
+
"$extensions": {
|
|
100
|
+
"design.beehexa": {
|
|
101
|
+
"component": "content"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"gap": {
|
|
106
|
+
"$type": "dimension",
|
|
107
|
+
"$value": "{space.050}",
|
|
108
|
+
"$description": "Space between adjacent read-only step-progress marks; no trailing native item margin.",
|
|
109
|
+
"$extensions": {
|
|
110
|
+
"design.beehexa": {
|
|
111
|
+
"component": "content"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
22
115
|
}
|
|
23
116
|
}
|
|
24
117
|
}
|