@beehexa/design-rules 2611.3.3 → 2611.5.2

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.
Files changed (171) hide show
  1. package/README.md +1 -1
  2. package/dist/AGENTS.md +1 -7
  3. package/dist/catalog.json +703 -321
  4. package/dist/docs/public/_redirects +2 -0
  5. package/dist/docs/scripts/color-pairs.mjs +5 -1
  6. package/dist/docs/scripts/token-utils.d.mts +5 -1
  7. package/dist/docs/scripts/token-utils.mjs +44 -4
  8. package/dist/docs/src/brand/structure-proposal.md +1 -1
  9. package/dist/docs/src/components/ColorDemo.astro +56 -18
  10. package/dist/docs/src/components/ElevationDemo.astro +196 -0
  11. package/dist/docs/src/components/LayoutDemo.astro +1 -1
  12. package/dist/docs/src/components/MotionDemo.astro +135 -0
  13. package/dist/docs/src/components/NativeControlsDemo.astro +279 -0
  14. package/dist/docs/src/components/OpacityDemo.astro +95 -0
  15. package/dist/docs/src/components/RoleGuides.astro +2 -2
  16. package/dist/docs/src/components/ShapeDemo.astro +88 -44
  17. package/dist/docs/src/components/ShapePin.astro +5 -3
  18. package/dist/docs/src/components/SiteHeader.astro +19 -4
  19. package/dist/docs/src/components/SystemAreas.astro +1 -1
  20. package/dist/docs/src/components/TokenTable.astro +16 -1
  21. package/dist/docs/src/components/TypeDemo.astro +15 -15
  22. package/dist/docs/src/components/ZIndexDemo.astro +102 -0
  23. package/dist/docs/src/components/logos/LogoInUse.astro +3 -3
  24. package/dist/docs/src/content/components/button/accessibility.mdx +41 -8
  25. package/dist/docs/src/content/components/button/code.mdx +8 -1
  26. package/dist/docs/src/content/components/button/examples.mdx +23 -4
  27. package/dist/docs/src/content/components/button/usage.mdx +26 -0
  28. package/dist/docs/src/content/components/resizable-panel/accessibility.mdx +61 -0
  29. package/dist/docs/src/content/components/resizable-panel/changelog.mdx +20 -0
  30. package/dist/docs/src/content/components/resizable-panel/code.mdx +79 -0
  31. package/dist/docs/src/content/components/resizable-panel/examples.mdx +85 -0
  32. package/dist/docs/src/content/components/resizable-panel/meta.json +5 -0
  33. package/dist/docs/src/content/components/resizable-panel/usage.mdx +101 -0
  34. package/dist/docs/src/content/foundations/guidelines/accessibility/keyboard-and-focus.mdx +75 -0
  35. package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +45 -0
  36. package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +58 -0
  37. package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +100 -11
  38. package/dist/docs/src/content/foundations/guidelines/content.mdx +11 -2
  39. package/dist/docs/src/content/foundations/index.mdx +3 -3
  40. package/dist/docs/src/content/foundations/styles/border.mdx +13 -6
  41. package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +4 -2
  42. package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +2 -2
  43. package/dist/docs/src/content/foundations/styles/color/index.mdx +14 -2
  44. package/dist/docs/src/content/foundations/styles/color/palette.mdx +4 -4
  45. package/dist/docs/src/content/foundations/styles/color/tokens.mdx +2 -2
  46. package/dist/docs/src/content/foundations/styles/color/usage.mdx +34 -5
  47. package/dist/docs/src/content/foundations/styles/data-visualization.mdx +150 -6
  48. package/dist/docs/src/content/foundations/styles/elevation.mdx +72 -3
  49. package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
  50. package/dist/docs/src/content/foundations/styles/icons/code.mdx +6 -18
  51. package/dist/docs/src/content/foundations/styles/icons/index.mdx +2 -2
  52. package/dist/docs/src/content/foundations/styles/icons/usage.mdx +13 -8
  53. package/dist/docs/src/content/foundations/styles/interaction-states.mdx +82 -9
  54. package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +12 -4
  55. package/dist/docs/src/content/foundations/styles/layout/breakpoints.mdx +10 -7
  56. package/dist/docs/src/content/foundations/styles/layout/grid.mdx +4 -2
  57. package/dist/docs/src/content/foundations/styles/layout/index.mdx +3 -3
  58. package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +28 -37
  59. package/dist/docs/src/content/foundations/styles/layout/page-widths.mdx +4 -4
  60. package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +7 -7
  61. package/dist/docs/src/content/foundations/styles/logos/index.mdx +13 -2
  62. package/dist/docs/src/content/foundations/styles/logos/placement-and-containers.mdx +4 -2
  63. package/dist/docs/src/content/foundations/styles/logos/product-logos.mdx +2 -2
  64. package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +3 -1
  65. package/dist/docs/src/content/foundations/styles/motion.mdx +131 -3
  66. package/dist/docs/src/content/foundations/styles/opacity.mdx +49 -5
  67. package/dist/docs/src/content/foundations/styles/radius.mdx +63 -15
  68. package/dist/docs/src/content/foundations/styles/scrollbars.mdx +176 -0
  69. package/dist/docs/src/content/foundations/styles/size-and-density.mdx +23 -6
  70. package/dist/docs/src/content/foundations/styles/spacing.mdx +17 -3
  71. package/dist/docs/src/content/foundations/styles/typography/code.mdx +5 -3
  72. package/dist/docs/src/content/foundations/styles/typography/index.mdx +13 -3
  73. package/dist/docs/src/content/foundations/styles/typography/usage.mdx +5 -3
  74. package/dist/docs/src/content/foundations/styles/typography/vietnamese.mdx +2 -2
  75. package/dist/docs/src/content/foundations/styles/z-index.mdx +67 -5
  76. package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +11 -0
  77. package/dist/docs/src/content/foundations/tokens/index.mdx +17 -9
  78. package/dist/docs/src/content/get-started/design.mdx +1 -1
  79. package/dist/docs/src/content/get-started/develop.mdx +2 -6
  80. package/dist/docs/src/content/get-started/index.mdx +1 -1
  81. package/dist/docs/src/content/release-phases/index.mdx +1 -1
  82. package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +571 -19
  83. package/dist/docs/src/content/tools/application-content.mdx +176 -0
  84. package/dist/docs/src/content/tools/editors.mdx +271 -0
  85. package/dist/docs/src/content/tools/eslint.mdx +1 -1
  86. package/dist/docs/src/content/tools/index.mdx +2 -2
  87. package/dist/docs/src/content/tools/mermaid.mdx +190 -0
  88. package/dist/docs/src/content/tools/vueflow.mdx +179 -0
  89. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/keyboard-and-focus.mdx +75 -0
  90. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +45 -0
  91. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +58 -0
  92. package/dist/docs/src/content-vi/foundations/guidelines/accessibility.mdx +108 -0
  93. package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +34 -0
  94. package/dist/docs/src/content-vi/foundations/index.mdx +9 -0
  95. package/dist/docs/src/content-vi/foundations/styles/border.mdx +12 -6
  96. package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +4 -2
  97. package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +2 -2
  98. package/dist/docs/src/content-vi/foundations/styles/color/index.mdx +14 -2
  99. package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +5 -5
  100. package/dist/docs/src/content-vi/foundations/styles/color/tokens.mdx +2 -2
  101. package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +34 -5
  102. package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +75 -6
  103. package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +81 -0
  104. package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +1 -1
  105. package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +6 -18
  106. package/dist/docs/src/content-vi/foundations/styles/icons/index.mdx +2 -2
  107. package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +13 -8
  108. package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +22 -8
  109. package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +13 -1
  110. package/dist/docs/src/content-vi/foundations/styles/layout/breakpoints.mdx +10 -7
  111. package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +4 -2
  112. package/dist/docs/src/content-vi/foundations/styles/layout/index.mdx +3 -3
  113. package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +36 -0
  114. package/dist/docs/src/content-vi/foundations/styles/layout/page-widths.mdx +5 -1
  115. package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +7 -7
  116. package/dist/docs/src/content-vi/foundations/styles/logos/index.mdx +13 -2
  117. package/dist/docs/src/content-vi/foundations/styles/logos/placement-and-containers.mdx +4 -2
  118. package/dist/docs/src/content-vi/foundations/styles/logos/product-logos.mdx +2 -2
  119. package/dist/docs/src/content-vi/foundations/styles/logos/using-the-logo.mdx +3 -1
  120. package/dist/docs/src/content-vi/foundations/styles/motion.mdx +139 -0
  121. package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +49 -5
  122. package/dist/docs/src/content-vi/foundations/styles/radius.mdx +63 -15
  123. package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +23 -6
  124. package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +17 -3
  125. package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +5 -3
  126. package/dist/docs/src/content-vi/foundations/styles/typography/index.mdx +14 -4
  127. package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +4 -2
  128. package/dist/docs/src/content-vi/foundations/styles/typography/vietnamese.mdx +2 -2
  129. package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +67 -5
  130. package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +47 -0
  131. package/dist/docs/src/content-vi/foundations/tokens/index.mdx +35 -0
  132. package/dist/docs/src/lib/i18n.ts +0 -1
  133. package/dist/docs/src/lib/token-descriptions-vi.ts +81 -14
  134. package/dist/docs/src/lib/tokens.ts +3 -0
  135. package/dist/docs/src/styles/chrome.css +21 -14
  136. package/dist/docs/src/styles/color.css +50 -53
  137. package/dist/docs/src/styles/docs.css +37 -55
  138. package/dist/docs/src/styles/elevation.css +83 -0
  139. package/dist/docs/src/styles/global.css +21 -10
  140. package/dist/docs/src/styles/icons.css +20 -23
  141. package/dist/docs/src/styles/kit.css +116 -0
  142. package/dist/docs/src/styles/layout.css +8 -13
  143. package/dist/docs/src/styles/motion.css +34 -0
  144. package/dist/docs/src/styles/opacity.css +43 -0
  145. package/dist/docs/src/styles/scrollbars.css +74 -0
  146. package/dist/docs/src/styles/shapes.css +35 -29
  147. package/dist/docs/src/styles/tokens.css +1663 -4
  148. package/dist/docs/src/styles/tokens.js +538 -4
  149. package/dist/docs/src/styles/typography.css +8 -11
  150. package/dist/docs/src/styles/zindex.css +59 -0
  151. package/dist/docs/tokens/border.json +1 -1
  152. package/dist/docs/tokens/color.json +75 -4
  153. package/dist/docs/tokens/content.json +24 -0
  154. package/dist/docs/tokens/diagram.json +54 -0
  155. package/dist/docs/tokens/editor.json +129 -0
  156. package/dist/docs/tokens/elevation.json +15 -5
  157. package/dist/docs/tokens/flow.json +497 -0
  158. package/dist/docs/tokens/layout.json +4 -0
  159. package/dist/docs/tokens/motion.json +37 -5
  160. package/dist/docs/tokens/opacity.json +9 -0
  161. package/dist/docs/tokens/radius.json +52 -8
  162. package/dist/docs/tokens/resize.json +79 -0
  163. package/dist/docs/tokens/scrollbar.json +40 -0
  164. package/dist/docs/tokens/size.json +7 -1
  165. package/dist/docs/tokens/spacing.json +35 -5
  166. package/dist/docs/tokens/switch.json +280 -0
  167. package/dist/docs/tokens/typography.json +5 -0
  168. package/dist/docs/tokens/visualization.json +123 -0
  169. package/dist/docs/tokens/z-index.json +49 -0
  170. package/dist/index.js +703 -321
  171. 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 page header."
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. A part inside a control, 6 px from its edge."
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. Checkboxes, tags, badges and menu items; a part inside a control, 4 px from its edge."
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. No component by default. Use only when the nesting rule gives 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. Buttons, inputs, selects, menus, popovers, tooltips and alerts."
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. Cards, and groups of controls with 4 px padding."
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. Dialogs and drawers, and groups of controls with 8 px padding."
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 pill-shaped chips."
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
  }
@@ -0,0 +1,79 @@
1
+ {
2
+ "resize": {
3
+ "divider": {
4
+ "$type": "dimension",
5
+ "$value": "{border.width.accent}",
6
+ "$description": "Visible divider thickness; do not use as the sole pointer hit area."
7
+ },
8
+ "target": {
9
+ "$type": "dimension",
10
+ "$value": "{size.target.minimum}",
11
+ "$description": "Minimum pointer/keyboard target around a resize divider."
12
+ },
13
+ "touchTarget": {
14
+ "$type": "dimension",
15
+ "$value": "{size.target.touch}",
16
+ "$description": "Touch target around a resize divider."
17
+ },
18
+ "handle": {
19
+ "width": {
20
+ "$type": "dimension",
21
+ "$value": "{space.200}",
22
+ "$description": "Visible handle width."
23
+ },
24
+ "height": {
25
+ "$type": "dimension",
26
+ "$value": "{space.400}",
27
+ "$description": "Visible handle height."
28
+ },
29
+ "radius": {
30
+ "$type": "dimension",
31
+ "$value": "{radius.050}",
32
+ "$description": "Visible handle corner radius."
33
+ },
34
+ "background": {
35
+ "$type": "color",
36
+ "$value": "{color.surface}",
37
+ "$description": "Handle surface paired with resize.grip."
38
+ },
39
+ "activeBackground": {
40
+ "$type": "color",
41
+ "$value": "{color.background.neutral.bold}",
42
+ "$description": "Hovered or dragged handle surface paired with resize.activeGrip."
43
+ }
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
+ },
57
+ "color": {
58
+ "$type": "color",
59
+ "$value": "{color.border.bold}",
60
+ "$description": "Resize divider and grip at rest."
61
+ },
62
+ "active": {
63
+ "$type": "color",
64
+ "$value": "{color.border.focus}",
65
+ "$description": "Hovered, keyboard-focused or dragged resize divider."
66
+ },
67
+ "grip": {
68
+ "$type": "color",
69
+ "$value": "{color.icon}",
70
+ "$description": "Grip mark on surface."
71
+ },
72
+ "activeGrip": {
73
+ "$type": "color",
74
+ "$value": "{color.text.inverse}",
75
+ "$description": "Grip marks on the active neutral bold handle surface."
76
+ }
77
+ }
78
+ }
79
+
@@ -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
+ }
@@ -1,5 +1,11 @@
1
1
  {
2
2
  "size": {
3
+ "icon": {
4
+ "default": { "$type": "dimension", "$value": "1rem", "$description": "16 px. Default icon beside 14px text, in buttons, menus, tables and form fields." },
5
+ "medium": { "$type": "dimension", "$value": "1.25rem", "$description": "20 px. Icon beside 16px text, in toolbars and page headers." },
6
+ "large": { "$type": "dimension", "$value": "1.5rem", "$description": "24 px. Standalone status icon in a card or small empty state." },
7
+ "empty": { "$type": "dimension", "$value": "2rem", "$description": "32 px. Empty-state icons only; never scale a standard icon to an arbitrary illustration size." }
8
+ },
3
9
  "control": {
4
10
  "small": { "$type": "dimension", "$value": "1.5rem", "$description": "24 px. Height of small controls: dense tables and their toolbars, filters, tags. Side padding space.100." },
5
11
  "default": { "$type": "dimension", "$value": "2rem", "$description": "32 px. Height of buttons, text fields, selects, segmented controls and tabs everywhere else: forms, the header, toolbars. Side padding space.150." },
@@ -7,7 +13,7 @@
7
13
  },
8
14
  "target": {
9
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." },
10
- "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; its visible height stays the same." }
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." }
11
17
  }
12
18
  }
13
19
  }
@@ -2,17 +2,47 @@
2
2
  "space": {
3
3
  "0": { "$type": "dimension", "$value": "0", "$description": "0. Joined items, such as the buttons of a segmented group." },
4
4
  "025": { "$type": "dimension", "$value": "0.125rem", "$description": "2 px. A badge on an icon, a status dot beside text. Never between controls or as padding." },
5
- "050": { "$type": "dimension", "$value": "0.25rem", "$description": "4 px. Between an icon and 14 px text; between a title and its description." },
5
+ "050": { "$type": "dimension", "$value": "0.25rem", "$description": "4 px. Between an icon and 14 px text; between a title and its description; above and below the text of a tooltip and of a compact table cell." },
6
6
  "075": { "$type": "dimension", "$value": "0.375rem", "$description": "6 px. Inside components only: above and below the label of a 32 px control, and the sides of a tooltip. Never for layout, sections or card padding." },
7
- "100": { "$type": "dimension", "$value": "0.5rem", "$description": "8 px. Between an icon and 16 px text; between buttons; between a label and its field; side padding of 24 px controls." },
8
- "150": { "$type": "dimension", "$value": "0.75rem", "$description": "12 px. Side padding of 32 px controls, such as text fields and buttons." },
7
+ "100": { "$type": "dimension", "$value": "0.5rem", "$description": "8 px. Between an icon and 16 px text; between buttons; between a label and its field; side padding of 24 px controls; above and below the text of a table cell." },
8
+ "150": { "$type": "dimension", "$value": "0.75rem", "$description": "12 px. Side padding of 32 px controls, such as text fields and buttons, and of table cells." },
9
9
  "200": { "$type": "dimension", "$value": "1rem", "$description": "16 px. Between related items: fields, list items, cards. Page margin and grid gutter below 768 px." },
10
10
  "250": { "$type": "dimension", "$value": "1.25rem", "$description": "20 px. Between a section heading and its content. The edge of the logo and the side navigation icons." },
11
- "300": { "$type": "dimension", "$value": "1.5rem", "$description": "24 px. Inside cards, panels and dialogs. Page margin and grid gutter from 768 px." },
11
+ "300": { "$type": "dimension", "$value": "1.5rem", "$description": "24 px. Inside cards, panels and dialogs. Between tabs. Page margin and grid gutter from 768 px." },
12
12
  "400": { "$type": "dimension", "$value": "2rem", "$description": "32 px. Between groups, such as form sections. Page margin from 1440 px." },
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
+ }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "font": {
3
+ "features": {
4
+ "$type": "string",
5
+ "$value": "\"cv05\", \"cv08\"",
6
+ "$description": "Global Inter character variants distinguish l, I and 1. Applied per element by token CSS because font shorthands reset font-feature-settings; code fonts ignore unsupported variants."
7
+ },
3
8
  "family": {
4
9
  "sans": {
5
10
  "$type": "fontFamily",