@beehexa/design-rules 2611.4.1 → 2611.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalog.json +602 -248
- package/dist/docs/public/_redirects +2 -0
- package/dist/docs/scripts/token-utils.d.mts +5 -1
- package/dist/docs/scripts/token-utils.mjs +28 -3
- package/dist/docs/src/brand/structure-proposal.md +1 -1
- package/dist/docs/src/components/ColorDemo.astro +52 -14
- package/dist/docs/src/components/MotionDemo.astro +135 -0
- package/dist/docs/src/components/NativeControlsDemo.astro +279 -0
- package/dist/docs/src/components/OpacityDemo.astro +8 -8
- package/dist/docs/src/components/RoleGuides.astro +2 -2
- package/dist/docs/src/components/ShapeDemo.astro +78 -35
- package/dist/docs/src/components/SiteHeader.astro +19 -4
- package/dist/docs/src/components/SystemAreas.astro +1 -1
- package/dist/docs/src/components/TokenTable.astro +16 -1
- package/dist/docs/src/components/TypeDemo.astro +15 -15
- package/dist/docs/src/components/ZIndexDemo.astro +1 -1
- package/dist/docs/src/components/logos/LogoInUse.astro +3 -3
- package/dist/docs/src/content/components/button/accessibility.mdx +41 -8
- package/dist/docs/src/content/components/button/code.mdx +8 -1
- package/dist/docs/src/content/components/button/examples.mdx +23 -4
- package/dist/docs/src/content/components/button/usage.mdx +26 -0
- package/dist/docs/src/content/components/resizable-panel/accessibility.mdx +61 -0
- package/dist/docs/src/content/components/resizable-panel/changelog.mdx +20 -0
- package/dist/docs/src/content/components/resizable-panel/code.mdx +79 -0
- package/dist/docs/src/content/components/resizable-panel/examples.mdx +85 -0
- package/dist/docs/src/content/components/resizable-panel/meta.json +5 -0
- package/dist/docs/src/content/components/resizable-panel/usage.mdx +101 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/keyboard-and-focus.mdx +75 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +45 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +58 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +100 -11
- package/dist/docs/src/content/foundations/guidelines/content.mdx +11 -2
- package/dist/docs/src/content/foundations/index.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/border.mdx +10 -3
- package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/color/index.mdx +14 -2
- package/dist/docs/src/content/foundations/styles/color/palette.mdx +4 -4
- package/dist/docs/src/content/foundations/styles/color/tokens.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +25 -3
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +76 -0
- package/dist/docs/src/content/foundations/styles/elevation.mdx +7 -1
- package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/code.mdx +6 -18
- package/dist/docs/src/content/foundations/styles/icons/index.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/usage.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/interaction-states.mdx +82 -9
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +2 -4
- package/dist/docs/src/content/foundations/styles/layout/breakpoints.mdx +10 -7
- package/dist/docs/src/content/foundations/styles/layout/grid.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/layout/index.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +28 -37
- package/dist/docs/src/content/foundations/styles/layout/page-widths.mdx +4 -4
- package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +7 -7
- package/dist/docs/src/content/foundations/styles/logos/index.mdx +13 -2
- package/dist/docs/src/content/foundations/styles/logos/placement-and-containers.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/logos/product-logos.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +3 -1
- package/dist/docs/src/content/foundations/styles/motion.mdx +131 -3
- package/dist/docs/src/content/foundations/styles/opacity.mdx +7 -1
- package/dist/docs/src/content/foundations/styles/radius.mdx +63 -15
- package/dist/docs/src/content/foundations/styles/scrollbars.mdx +176 -0
- package/dist/docs/src/content/foundations/styles/size-and-density.mdx +16 -6
- package/dist/docs/src/content/foundations/styles/spacing.mdx +17 -3
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/typography/index.mdx +13 -3
- package/dist/docs/src/content/foundations/styles/typography/usage.mdx +5 -3
- package/dist/docs/src/content/foundations/styles/typography/vietnamese.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/z-index.mdx +4 -0
- package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +11 -0
- package/dist/docs/src/content/foundations/tokens/index.mdx +17 -9
- package/dist/docs/src/content/get-started/design.mdx +1 -1
- package/dist/docs/src/content/get-started/develop.mdx +2 -6
- package/dist/docs/src/content/get-started/index.mdx +1 -1
- package/dist/docs/src/content/release-phases/index.mdx +1 -1
- package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +474 -12
- package/dist/docs/src/content/tools/application-content.mdx +166 -32
- package/dist/docs/src/content/tools/editors.mdx +247 -3
- package/dist/docs/src/content/tools/eslint.mdx +1 -1
- package/dist/docs/src/content/tools/index.mdx +2 -2
- package/dist/docs/src/content/tools/mermaid.mdx +108 -13
- package/dist/docs/src/content/tools/vueflow.mdx +58 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/keyboard-and-focus.mdx +75 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +45 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +58 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility.mdx +108 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +34 -0
- package/dist/docs/src/content-vi/foundations/index.mdx +9 -0
- package/dist/docs/src/content-vi/foundations/styles/border.mdx +9 -3
- package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/color/index.mdx +14 -2
- package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +5 -5
- package/dist/docs/src/content-vi/foundations/styles/color/tokens.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +24 -2
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +7 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +6 -18
- package/dist/docs/src/content-vi/foundations/styles/icons/index.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +22 -8
- package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +3 -1
- package/dist/docs/src/content-vi/foundations/styles/layout/breakpoints.mdx +10 -7
- package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/layout/index.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +36 -0
- package/dist/docs/src/content-vi/foundations/styles/layout/page-widths.mdx +5 -1
- package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +7 -7
- package/dist/docs/src/content-vi/foundations/styles/logos/index.mdx +13 -2
- package/dist/docs/src/content-vi/foundations/styles/logos/placement-and-containers.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/logos/product-logos.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/logos/using-the-logo.mdx +3 -1
- package/dist/docs/src/content-vi/foundations/styles/motion.mdx +139 -0
- package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +8 -2
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +63 -15
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +16 -6
- package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +17 -3
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/typography/index.mdx +14 -4
- package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/typography/vietnamese.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +4 -0
- package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +47 -0
- package/dist/docs/src/content-vi/foundations/tokens/index.mdx +35 -0
- package/dist/docs/src/lib/i18n.ts +0 -1
- package/dist/docs/src/lib/token-descriptions-vi.ts +60 -9
- package/dist/docs/src/lib/tokens.ts +3 -0
- package/dist/docs/src/styles/chrome.css +10 -3
- package/dist/docs/src/styles/color.css +33 -23
- package/dist/docs/src/styles/docs.css +26 -28
- package/dist/docs/src/styles/elevation.css +4 -4
- package/dist/docs/src/styles/global.css +21 -1
- package/dist/docs/src/styles/icons.css +10 -9
- package/dist/docs/src/styles/kit.css +36 -32
- package/dist/docs/src/styles/layout.css +7 -7
- package/dist/docs/src/styles/motion.css +34 -0
- package/dist/docs/src/styles/opacity.css +3 -3
- package/dist/docs/src/styles/scrollbars.css +74 -0
- package/dist/docs/src/styles/shapes.css +21 -11
- package/dist/docs/src/styles/tokens.css +392 -12
- package/dist/docs/src/styles/tokens.js +185 -6
- package/dist/docs/src/styles/typography.css +4 -4
- package/dist/docs/src/styles/zindex.css +10 -7
- package/dist/docs/tokens/color.json +18 -1
- package/dist/docs/tokens/content.json +8 -3
- package/dist/docs/tokens/diagram.json +9 -3
- package/dist/docs/tokens/flow.json +2 -2
- package/dist/docs/tokens/layout.json +4 -0
- package/dist/docs/tokens/motion.json +37 -5
- package/dist/docs/tokens/radius.json +52 -8
- package/dist/docs/tokens/resize.json +12 -0
- package/dist/docs/tokens/scrollbar.json +40 -0
- package/dist/docs/tokens/size.json +1 -1
- package/dist/docs/tokens/spacing.json +31 -1
- package/dist/docs/tokens/switch.json +280 -0
- package/dist/index.js +602 -248
- package/package.json +1 -1
|
@@ -3,42 +3,86 @@
|
|
|
3
3
|
"0": {
|
|
4
4
|
"$type": "dimension",
|
|
5
5
|
"$value": "0",
|
|
6
|
-
"$description": "0. Edges that touch the screen, full-width tables and the
|
|
6
|
+
"$description": "0. Edges that touch the screen: the page header, full-width tables and panels that run to the edge."
|
|
7
7
|
},
|
|
8
8
|
"025": {
|
|
9
9
|
"$type": "dimension",
|
|
10
10
|
"$value": "0.125rem",
|
|
11
|
-
"$description": "2 px.
|
|
11
|
+
"$description": "2 px. Small details: badges, checkboxes and keyboard shortcuts."
|
|
12
12
|
},
|
|
13
13
|
"050": {
|
|
14
14
|
"$type": "dimension",
|
|
15
15
|
"$value": "0.25rem",
|
|
16
|
-
"$description": "4 px.
|
|
16
|
+
"$description": "4 px. Buttons, inputs, selects, menu frames and items, tags and status labels; nested parts where the role or nesting rule gives 4 px."
|
|
17
17
|
},
|
|
18
18
|
"075": {
|
|
19
19
|
"$type": "dimension",
|
|
20
20
|
"$value": "0.375rem",
|
|
21
|
-
"$description": "6 px.
|
|
21
|
+
"$description": "6 px. Side navigation items and other roles that require this scale value; standard buttons, inputs and selects use radius.control (4 px)."
|
|
22
22
|
},
|
|
23
23
|
"100": {
|
|
24
24
|
"$type": "dimension",
|
|
25
25
|
"$value": "0.5rem",
|
|
26
|
-
"$description": "8 px.
|
|
26
|
+
"$description": "8 px. Cards, popovers, tooltips, alerts, select popup surfaces and groups of controls with 4 px padding."
|
|
27
27
|
},
|
|
28
28
|
"150": {
|
|
29
29
|
"$type": "dimension",
|
|
30
30
|
"$value": "0.75rem",
|
|
31
|
-
"$description": "12 px.
|
|
31
|
+
"$description": "12 px. Dialogs, drawers and groups of controls with 8 px padding."
|
|
32
32
|
},
|
|
33
33
|
"200": {
|
|
34
34
|
"$type": "dimension",
|
|
35
35
|
"$value": "1rem",
|
|
36
|
-
"$description": "16 px.
|
|
36
|
+
"$description": "16 px. No current component role; retained as a numeric scale value."
|
|
37
37
|
},
|
|
38
38
|
"full": {
|
|
39
39
|
"$type": "dimension",
|
|
40
40
|
"$value": "999px",
|
|
41
|
-
"$description": "Pill and circle. Avatars, switches and
|
|
41
|
+
"$description": "Pill and circle. Avatars and other user UI, switches and chips."
|
|
42
|
+
},
|
|
43
|
+
"control": {
|
|
44
|
+
"$root": {
|
|
45
|
+
"$type": "dimension",
|
|
46
|
+
"$value": "{radius.050}",
|
|
47
|
+
"$description": "Standard buttons, text fields, selects and their joined frames; 4 px at the native 16 px root.",
|
|
48
|
+
"$extensions": { "design.beehexa": { "family": "control" } }
|
|
49
|
+
},
|
|
50
|
+
"small": {
|
|
51
|
+
"$type": "dimension",
|
|
52
|
+
"$value": "{radius.050}",
|
|
53
|
+
"$description": "24 px controls: compact buttons and their fields.",
|
|
54
|
+
"$extensions": { "design.beehexa": { "family": "control" } }
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"item": {
|
|
58
|
+
"$type": "dimension",
|
|
59
|
+
"$value": "{radius.050}",
|
|
60
|
+
"$description": "Items inside menus and lists. Nests inside 8 px radius.overlay with space.overlay; a 4 px menu frame with 4 px padding retains this item role.",
|
|
61
|
+
"$extensions": { "design.beehexa": { "family": "item" } }
|
|
62
|
+
},
|
|
63
|
+
"card": {
|
|
64
|
+
"$type": "dimension",
|
|
65
|
+
"$value": "{radius.100}",
|
|
66
|
+
"$description": "Cards, alerts, banners and in-page containers.",
|
|
67
|
+
"$extensions": { "design.beehexa": { "family": "card" } }
|
|
68
|
+
},
|
|
69
|
+
"overlay": {
|
|
70
|
+
"$type": "dimension",
|
|
71
|
+
"$value": "{radius.100}",
|
|
72
|
+
"$description": "Floating surfaces: popovers, select lists and toasts. Menu frames use radius.050 (4 px), independently of these 8 px surfaces.",
|
|
73
|
+
"$extensions": { "design.beehexa": { "family": "overlay" } }
|
|
74
|
+
},
|
|
75
|
+
"modal": {
|
|
76
|
+
"$type": "dimension",
|
|
77
|
+
"$value": "{radius.150}",
|
|
78
|
+
"$description": "Dialogs, drawers and full-page containers.",
|
|
79
|
+
"$extensions": { "design.beehexa": { "family": "modal" } }
|
|
80
|
+
},
|
|
81
|
+
"pill": {
|
|
82
|
+
"$type": "dimension",
|
|
83
|
+
"$value": "{radius.full}",
|
|
84
|
+
"$description": "Avatars, switches and chips.",
|
|
85
|
+
"$extensions": { "design.beehexa": { "family": "pill" } }
|
|
42
86
|
}
|
|
43
87
|
}
|
|
44
88
|
}
|
|
@@ -42,6 +42,18 @@
|
|
|
42
42
|
"$description": "Hovered or dragged handle surface paired with resize.activeGrip."
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
+
"dot": {
|
|
46
|
+
"size": {
|
|
47
|
+
"$type": "dimension",
|
|
48
|
+
"$value": "{space.025}",
|
|
49
|
+
"$description": "Diameter of each of the exactly three circular grip dots."
|
|
50
|
+
},
|
|
51
|
+
"pitch": {
|
|
52
|
+
"$type": "dimension",
|
|
53
|
+
"$value": "{space.100}",
|
|
54
|
+
"$description": "Equal center-to-center spacing of three dots, symmetric about the handle center in either orientation."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
45
57
|
"color": {
|
|
46
58
|
"$type": "color",
|
|
47
59
|
"$value": "{color.border.bold}",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scrollbar": {
|
|
3
|
+
"$description": "One application scrollbar appearance family across native DOM framework holders and editor/list virtual adapters, preserving each library's own scrolling geometry and behavior. Based on Ant Design Vue 4 Table scrollbar roles; native and virtual rendering consume the same semantic tokens.",
|
|
4
|
+
"width": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"$value": "{space.100}",
|
|
7
|
+
"$description": "Shared vertical width and horizontal height: 0.5rem, nominal 8px at the native 16px root, matching Ant tableScrollThumbSize. Standards-only browsers use their native thin metric; overlay platforms may retain platform geometry. Never duplicate per-axis or per-application sizes."
|
|
8
|
+
},
|
|
9
|
+
"track": {
|
|
10
|
+
"$type": "color",
|
|
11
|
+
"$value": "{color.border}",
|
|
12
|
+
"$description": "Track in both axes, following Ant tableScrollBg = colorSplit, mapped by the Beehexa Ant factory to color.border. Theme aliases resolve in light and dark."
|
|
13
|
+
},
|
|
14
|
+
"thumb": {
|
|
15
|
+
"$type": "color",
|
|
16
|
+
"$value": "{color.text.subtlest}",
|
|
17
|
+
"$description": "Foreground thumb at rest, following Ant tableScrollThumbBg = colorTextPlaceholder, mapped to color.text.subtlest. Keep the opaque thumb distinguishable from scrollbar.track; do not weaken it with opacity."
|
|
18
|
+
},
|
|
19
|
+
"thumbHover": {
|
|
20
|
+
"$type": "color",
|
|
21
|
+
"$value": "{color.text}",
|
|
22
|
+
"$description": "Hovered thumb, following Ant tableScrollThumbBgHover = colorTextHeading, mapped to color.text. Standards-only browsers expose the scroll host hover state rather than a thumb pseudo-element."
|
|
23
|
+
},
|
|
24
|
+
"thumbActive": {
|
|
25
|
+
"$type": "color",
|
|
26
|
+
"$value": "{scrollbar.thumbHover}",
|
|
27
|
+
"$description": "Dragged/pressed thumb; Ant sticky scrollbar uses the same colorTextHeading role for hover and active. Standards-only browsers expose the scroll host active state rather than thumb drag state."
|
|
28
|
+
},
|
|
29
|
+
"corner": {
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"$value": "{scrollbar.track}",
|
|
32
|
+
"$description": "Junction of horizontal and vertical native tracks. Match the track so one two-axis scroll owner has a continuous surface; no separate app color."
|
|
33
|
+
},
|
|
34
|
+
"radius": {
|
|
35
|
+
"$type": "dimension",
|
|
36
|
+
"$value": "{radius.full}",
|
|
37
|
+
"$description": "Fully rounded thumb and track. Ant sticky scrollbar uses borderRadius 100 to form a pill; use the canonical Beehexa full-radius alias rather than copying its fixed number."
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"target": {
|
|
15
15
|
"minimum": { "$type": "dimension", "$value": "1.5rem", "$description": "24 px. Smallest area that responds to a click or tap (WCAG 2.2 SC 2.5.8). Every control and icon button is at least this size." },
|
|
16
|
-
"touch": { "$type": "dimension", "$value": "2.75rem", "$description": "44 px. Area that responds to a tap on touch screens. Extend the hit area around a smaller control
|
|
16
|
+
"touch": { "$type": "dimension", "$value": "2.75rem", "$description": "44 px. Area that responds to a tap on touch screens. Extend the hit area around a smaller control and keep its visible size; rows in lists and menus grow to this height instead." }
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -13,6 +13,36 @@
|
|
|
13
13
|
"500": { "$type": "dimension", "$value": "2.5rem", "$description": "40 px. Around empty states." },
|
|
14
14
|
"600": { "$type": "dimension", "$value": "3rem", "$description": "48 px. Between page sections." },
|
|
15
15
|
"800": { "$type": "dimension", "$value": "4rem", "$description": "64 px. Between the major sections of a long page. The width of the collapsed side navigation." },
|
|
16
|
-
"1000": { "$type": "dimension", "$value": "5rem", "$description": "80 px. Top and bottom of sign-in and onboarding pages. Use rarely." }
|
|
16
|
+
"1000": { "$type": "dimension", "$value": "5rem", "$description": "80 px. Top and bottom of sign-in and onboarding pages. Use rarely." },
|
|
17
|
+
"control": {
|
|
18
|
+
"x": {
|
|
19
|
+
"$root": { "$type": "dimension", "$value": "{space.150}", "$description": "Side padding of 32 px controls: buttons, text fields, selects.", "$extensions": { "design.beehexa": { "family": "control" } } },
|
|
20
|
+
"small": { "$type": "dimension", "$value": "{space.100}", "$description": "Side padding of 24 px controls.", "$extensions": { "design.beehexa": { "family": "control" } } },
|
|
21
|
+
"large": { "$type": "dimension", "$value": "{space.200}", "$description": "Side padding of 40 px controls on sign-in and onboarding pages.", "$extensions": { "design.beehexa": { "family": "control" } } }
|
|
22
|
+
},
|
|
23
|
+
"gap": { "$type": "dimension", "$value": "{space.050}", "$description": "Between the icon and the label inside a control.", "$extensions": { "design.beehexa": { "family": "control" } } }
|
|
24
|
+
},
|
|
25
|
+
"item": {
|
|
26
|
+
"x": { "$type": "dimension", "$value": "{space.150}", "$description": "Side padding of items in menus, lists and side navigation.", "$extensions": { "design.beehexa": { "family": "item" } } }
|
|
27
|
+
},
|
|
28
|
+
"overlay": {
|
|
29
|
+
"$root": { "$type": "dimension", "$value": "{space.050}", "$description": "Inside menus, selects and popovers, around their items. For 8 px surfaces, radius.overlay = radius.item + space.overlay. A 4 px menu frame has padding equal to its corner, so items keep radius.item.", "$extensions": { "design.beehexa": { "family": "overlay" } } },
|
|
30
|
+
"offset": { "$type": "dimension", "$value": "{space.050}", "$description": "Between a menu, popover or tooltip and the element that opened it.", "$extensions": { "design.beehexa": { "family": "overlay" } } }
|
|
31
|
+
},
|
|
32
|
+
"card": { "$type": "dimension", "$value": "{space.300}", "$description": "Inside cards and panels.", "$extensions": { "design.beehexa": { "family": "card" } } },
|
|
33
|
+
"modal": {
|
|
34
|
+
"$root": { "$type": "dimension", "$value": "{space.300}", "$description": "Inside dialogs and drawers.", "$extensions": { "design.beehexa": { "family": "modal" } } },
|
|
35
|
+
"gap": { "$type": "dimension", "$value": "{space.200}", "$description": "Between the title, body and actions of a dialog or drawer.", "$extensions": { "design.beehexa": { "family": "modal" } } }
|
|
36
|
+
},
|
|
37
|
+
"table": {
|
|
38
|
+
"cell": {
|
|
39
|
+
"x": { "$type": "dimension", "$value": "{space.150}", "$description": "Side padding of table cells.", "$extensions": { "design.beehexa": { "family": "table.cell" } } },
|
|
40
|
+
"y": { "$type": "dimension", "$value": "{space.100}", "$description": "Top and bottom padding of table cells.", "$extensions": { "design.beehexa": { "family": "table.cell" } } }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"stack": {
|
|
44
|
+
"$root": { "$type": "dimension", "$value": "{space.200}", "$description": "Between related items in a column: form fields, list items, cards.", "$extensions": { "design.beehexa": { "family": "stack" } } },
|
|
45
|
+
"group": { "$type": "dimension", "$value": "{space.400}", "$description": "Between groups in a column, such as form sections.", "$extensions": { "design.beehexa": { "family": "stack" } } }
|
|
46
|
+
}
|
|
17
47
|
}
|
|
18
48
|
}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
{
|
|
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 uses explicit opaque disabled pairs.",
|
|
4
|
+
"focus-ring": {
|
|
5
|
+
"$type": "color",
|
|
6
|
+
"$value": "{color.border.focus}",
|
|
7
|
+
"$description": "Keyboard-visible ring for either checked state; keep the existing focused border width and focus offset. Does not replace the ON/OFF track, thumb or label."
|
|
8
|
+
},
|
|
9
|
+
"off": {
|
|
10
|
+
"track": {
|
|
11
|
+
"$root": {
|
|
12
|
+
"$type": "color",
|
|
13
|
+
"$value": "{color.background.neutral}",
|
|
14
|
+
"$description": "OFF track, normal. Neutral boolean-state fill, never business-success green."
|
|
15
|
+
},
|
|
16
|
+
"hover": {
|
|
17
|
+
"$type": "color",
|
|
18
|
+
"$value": "{color.background.neutral.hover}",
|
|
19
|
+
"$description": "OFF track, hover. Neutral boolean-state fill, never business-success green."
|
|
20
|
+
},
|
|
21
|
+
"pressed": {
|
|
22
|
+
"$type": "color",
|
|
23
|
+
"$value": "{color.background.neutral.pressed}",
|
|
24
|
+
"$description": "OFF track, pressed. Neutral boolean-state fill, never business-success green."
|
|
25
|
+
},
|
|
26
|
+
"focus": {
|
|
27
|
+
"$type": "color",
|
|
28
|
+
"$value": "{switch.off.track}",
|
|
29
|
+
"$description": "OFF track, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring."
|
|
30
|
+
},
|
|
31
|
+
"loading": {
|
|
32
|
+
"$type": "color",
|
|
33
|
+
"$value": "{switch.off.track}",
|
|
34
|
+
"$description": "OFF track, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked."
|
|
35
|
+
},
|
|
36
|
+
"disabled": {
|
|
37
|
+
"$type": "color",
|
|
38
|
+
"$value": "{color.background.disabled}",
|
|
39
|
+
"$description": "OFF track, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming."
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"thumb": {
|
|
43
|
+
"$root": {
|
|
44
|
+
"$type": "color",
|
|
45
|
+
"$value": "{color.icon}",
|
|
46
|
+
"$description": "OFF thumb, normal. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
47
|
+
},
|
|
48
|
+
"hover": {
|
|
49
|
+
"$type": "color",
|
|
50
|
+
"$value": "{color.icon}",
|
|
51
|
+
"$description": "OFF thumb, hover. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
52
|
+
},
|
|
53
|
+
"pressed": {
|
|
54
|
+
"$type": "color",
|
|
55
|
+
"$value": "{color.icon}",
|
|
56
|
+
"$description": "OFF thumb, pressed. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
57
|
+
},
|
|
58
|
+
"focus": {
|
|
59
|
+
"$type": "color",
|
|
60
|
+
"$value": "{switch.off.thumb}",
|
|
61
|
+
"$description": "OFF thumb, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring."
|
|
62
|
+
},
|
|
63
|
+
"loading": {
|
|
64
|
+
"$type": "color",
|
|
65
|
+
"$value": "{switch.off.thumb}",
|
|
66
|
+
"$description": "OFF thumb, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked."
|
|
67
|
+
},
|
|
68
|
+
"disabled": {
|
|
69
|
+
"$type": "color",
|
|
70
|
+
"$value": "{color.icon.disabled}",
|
|
71
|
+
"$description": "OFF thumb, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming."
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"label": {
|
|
75
|
+
"$root": {
|
|
76
|
+
"$type": "color",
|
|
77
|
+
"$value": "{color.text}",
|
|
78
|
+
"$description": "OFF label, normal. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
79
|
+
},
|
|
80
|
+
"hover": {
|
|
81
|
+
"$type": "color",
|
|
82
|
+
"$value": "{color.text}",
|
|
83
|
+
"$description": "OFF label, hover. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
84
|
+
},
|
|
85
|
+
"pressed": {
|
|
86
|
+
"$type": "color",
|
|
87
|
+
"$value": "{color.text}",
|
|
88
|
+
"$description": "OFF label, pressed. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
89
|
+
},
|
|
90
|
+
"focus": {
|
|
91
|
+
"$type": "color",
|
|
92
|
+
"$value": "{switch.off.label}",
|
|
93
|
+
"$description": "OFF label, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring."
|
|
94
|
+
},
|
|
95
|
+
"loading": {
|
|
96
|
+
"$type": "color",
|
|
97
|
+
"$value": "{switch.off.label}",
|
|
98
|
+
"$description": "OFF label, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked."
|
|
99
|
+
},
|
|
100
|
+
"disabled": {
|
|
101
|
+
"$type": "color",
|
|
102
|
+
"$value": "{color.text.disabled}",
|
|
103
|
+
"$description": "OFF label, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming."
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"border": {
|
|
107
|
+
"$root": {
|
|
108
|
+
"$type": "color",
|
|
109
|
+
"$value": "{color.border.bold}",
|
|
110
|
+
"$description": "OFF border, normal. Meaningful boundary without changing native geometry."
|
|
111
|
+
},
|
|
112
|
+
"hover": {
|
|
113
|
+
"$type": "color",
|
|
114
|
+
"$value": "{color.border.bold}",
|
|
115
|
+
"$description": "OFF border, hover. Meaningful boundary without changing native geometry."
|
|
116
|
+
},
|
|
117
|
+
"pressed": {
|
|
118
|
+
"$type": "color",
|
|
119
|
+
"$value": "{color.graphite.10}",
|
|
120
|
+
"$description": "OFF border, pressed. Graphite 10 keeps at least 3:1 against the pressed neutral track in both themes without changing native geometry."
|
|
121
|
+
},
|
|
122
|
+
"focus": {
|
|
123
|
+
"$type": "color",
|
|
124
|
+
"$value": "{switch.off.border}",
|
|
125
|
+
"$description": "OFF border, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring."
|
|
126
|
+
},
|
|
127
|
+
"loading": {
|
|
128
|
+
"$type": "color",
|
|
129
|
+
"$value": "{switch.off.border}",
|
|
130
|
+
"$description": "OFF border, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked."
|
|
131
|
+
},
|
|
132
|
+
"disabled": {
|
|
133
|
+
"$type": "color",
|
|
134
|
+
"$value": "{color.border.disabled}",
|
|
135
|
+
"$description": "OFF border, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming."
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"loading-icon": {
|
|
139
|
+
"$type": "color",
|
|
140
|
+
"$value": "{color.icon.inverse}",
|
|
141
|
+
"$description": "Spinner foreground inside the OFF thumb, paired with switch.off.thumb.loading. Keep the native spinning indicator and blocked callback behavior."
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"on": {
|
|
145
|
+
"track": {
|
|
146
|
+
"$root": {
|
|
147
|
+
"$type": "color",
|
|
148
|
+
"$value": "{color.background.neutral.bold}",
|
|
149
|
+
"$description": "ON track, normal. Neutral boolean-state fill, never business-success green."
|
|
150
|
+
},
|
|
151
|
+
"hover": {
|
|
152
|
+
"$type": "color",
|
|
153
|
+
"$value": "{color.background.neutral.bold.hover}",
|
|
154
|
+
"$description": "ON track, hover. Neutral boolean-state fill, never business-success green."
|
|
155
|
+
},
|
|
156
|
+
"pressed": {
|
|
157
|
+
"$type": "color",
|
|
158
|
+
"$value": "{color.background.neutral.bold.pressed}",
|
|
159
|
+
"$description": "ON track, pressed. Neutral boolean-state fill, never business-success green."
|
|
160
|
+
},
|
|
161
|
+
"focus": {
|
|
162
|
+
"$type": "color",
|
|
163
|
+
"$value": "{switch.on.track}",
|
|
164
|
+
"$description": "ON track, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring."
|
|
165
|
+
},
|
|
166
|
+
"loading": {
|
|
167
|
+
"$type": "color",
|
|
168
|
+
"$value": "{switch.on.track}",
|
|
169
|
+
"$description": "ON track, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked."
|
|
170
|
+
},
|
|
171
|
+
"disabled": {
|
|
172
|
+
"$type": "color",
|
|
173
|
+
"$value": "{color.background.disabled}",
|
|
174
|
+
"$description": "ON track, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming."
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"thumb": {
|
|
178
|
+
"$root": {
|
|
179
|
+
"$type": "color",
|
|
180
|
+
"$value": "{color.icon.inverse}",
|
|
181
|
+
"$description": "ON thumb, normal. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
182
|
+
},
|
|
183
|
+
"hover": {
|
|
184
|
+
"$type": "color",
|
|
185
|
+
"$value": "{color.icon.inverse}",
|
|
186
|
+
"$description": "ON thumb, hover. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
187
|
+
},
|
|
188
|
+
"pressed": {
|
|
189
|
+
"$type": "color",
|
|
190
|
+
"$value": "{color.icon.inverse}",
|
|
191
|
+
"$description": "ON thumb, pressed. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
192
|
+
},
|
|
193
|
+
"focus": {
|
|
194
|
+
"$type": "color",
|
|
195
|
+
"$value": "{switch.on.thumb}",
|
|
196
|
+
"$description": "ON thumb, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring."
|
|
197
|
+
},
|
|
198
|
+
"loading": {
|
|
199
|
+
"$type": "color",
|
|
200
|
+
"$value": "{switch.on.thumb}",
|
|
201
|
+
"$description": "ON thumb, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked."
|
|
202
|
+
},
|
|
203
|
+
"disabled": {
|
|
204
|
+
"$type": "color",
|
|
205
|
+
"$value": "{color.icon.disabled}",
|
|
206
|
+
"$description": "ON thumb, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming."
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"label": {
|
|
210
|
+
"$root": {
|
|
211
|
+
"$type": "color",
|
|
212
|
+
"$value": "{color.text.inverse}",
|
|
213
|
+
"$description": "ON label, normal. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
214
|
+
},
|
|
215
|
+
"hover": {
|
|
216
|
+
"$type": "color",
|
|
217
|
+
"$value": "{color.text.inverse}",
|
|
218
|
+
"$description": "ON label, hover. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
219
|
+
},
|
|
220
|
+
"pressed": {
|
|
221
|
+
"$type": "color",
|
|
222
|
+
"$value": "{color.text.inverse}",
|
|
223
|
+
"$description": "ON label, pressed. Paired foreground against this checked-state track; never reuse the opposite checked-state foreground."
|
|
224
|
+
},
|
|
225
|
+
"focus": {
|
|
226
|
+
"$type": "color",
|
|
227
|
+
"$value": "{switch.on.label}",
|
|
228
|
+
"$description": "ON label, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring."
|
|
229
|
+
},
|
|
230
|
+
"loading": {
|
|
231
|
+
"$type": "color",
|
|
232
|
+
"$value": "{switch.on.label}",
|
|
233
|
+
"$description": "ON label, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked."
|
|
234
|
+
},
|
|
235
|
+
"disabled": {
|
|
236
|
+
"$type": "color",
|
|
237
|
+
"$value": "{color.text.disabled}",
|
|
238
|
+
"$description": "ON label, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming."
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"border": {
|
|
242
|
+
"$root": {
|
|
243
|
+
"$type": "color",
|
|
244
|
+
"$value": "{color.background.neutral.bold}",
|
|
245
|
+
"$description": "ON border, normal. Meaningful boundary without changing native geometry."
|
|
246
|
+
},
|
|
247
|
+
"hover": {
|
|
248
|
+
"$type": "color",
|
|
249
|
+
"$value": "{color.background.neutral.bold.hover}",
|
|
250
|
+
"$description": "ON border, hover. Meaningful boundary without changing native geometry."
|
|
251
|
+
},
|
|
252
|
+
"pressed": {
|
|
253
|
+
"$type": "color",
|
|
254
|
+
"$value": "{color.background.neutral.bold.pressed}",
|
|
255
|
+
"$description": "ON border, pressed. Meaningful boundary without changing native geometry."
|
|
256
|
+
},
|
|
257
|
+
"focus": {
|
|
258
|
+
"$type": "color",
|
|
259
|
+
"$value": "{switch.on.border}",
|
|
260
|
+
"$description": "ON border, focus. Normal pair under the independent keyboard focus ring; pointer hover/pressed feedback may coexist with the ring."
|
|
261
|
+
},
|
|
262
|
+
"loading": {
|
|
263
|
+
"$type": "color",
|
|
264
|
+
"$value": "{switch.on.border}",
|
|
265
|
+
"$description": "ON border, loading. Preserve the normal checked-state pair while the native spinner signals pending work; native interaction stays blocked."
|
|
266
|
+
},
|
|
267
|
+
"disabled": {
|
|
268
|
+
"$type": "color",
|
|
269
|
+
"$value": "{color.border.disabled}",
|
|
270
|
+
"$description": "ON border, disabled. Opaque disabled role; checked position and visible labels remain. No opacity dimming."
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"loading-icon": {
|
|
274
|
+
"$type": "color",
|
|
275
|
+
"$value": "{color.icon}",
|
|
276
|
+
"$description": "Spinner foreground inside the ON thumb, paired with switch.on.thumb.loading. Keep the native spinning indicator and blocked callback behavior."
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|