@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
@@ -0,0 +1,176 @@
1
+ ---
2
+ title: Scrollbars and scroll ownership
3
+ description: One native and virtual scrollbar appearance family, native ownership, root scaling and accessible platform fallbacks.
4
+ order: 11
5
+ ---
6
+ import TokenTable from '../../../components/TokenTable.astro';
7
+
8
+ ## Active application contract
9
+
10
+ All native-DOM scroll owners share one Beehexa scrollbar appearance, including
11
+ framework Table bodies, Tree/list holders, drawers and native popup portals.
12
+ Import the explicit application-wide module once beside the source tokens:
13
+
14
+ ```js
15
+ import '@beehexa/design-tokens/css';
16
+ import '@beehexa/design-tokens/css/scrollbars';
17
+ ```
18
+
19
+ Keep `bh-scroll-region` on actual application-created overflow owners as an
20
+ ownership marker, not an enclosing presentation wrapper. Native framework
21
+ holders need no consumer class or internal-node patch: importing the module
22
+ opts their native-DOM bars into the same appearance, including offscreen native
23
+ measurement probes. The recipe changes no overflow, height, forced gutter,
24
+ events or virtual geometry. Layout supplies the actual bound and `overflow:auto`
25
+ where needed; never force an empty bar to make the recipe visible.
26
+
27
+ ```html
28
+ <!-- Existing application layout owns the bounded height and overflow:auto. -->
29
+ <section class="inspection-pane bh-scroll-region" aria-label="Inspection results">
30
+ <!-- The complete logical pane content, including its horizontal extent. -->
31
+ </section>
32
+ ```
33
+
34
+ Use one scroll owner per logical pane with a continuous track across all its
35
+ scrolling content. A resizable pane's frame and slot wrappers must not accidentally
36
+ become additional scroll owners. Non-scrolling flex/grid ancestors need shrinkable
37
+ geometry (`min-width: 0` / `min-height: 0`) where appropriate. Keep headers outside
38
+ the owner only when they are intentionally fixed; do not split a pane into multiple
39
+ scrolling strips just to style its bar. Independently scrolling editors or lists
40
+ are deliberate child viewports, not a reason to put `overflow: auto` on every
41
+ wrapper. Verify both long and short content, both axes together, resize and mobile
42
+ layouts; short content must not acquire an empty scrollbar.
43
+
44
+ The recipe does not change `scroll-behavior`, `overscroll-behavior`, touch action,
45
+ wheel handling or keyboard handling. Continuous appearance means shared paint and
46
+ continuous ownership, not a smooth-scroll animation requirement. Preserve normal
47
+ page scroll chaining; do not add default `overscroll-behavior: contain`. Never hide
48
+ bars with `scrollbar-width: none`, WebKit `display: none`, zero dimensions or legacy
49
+ MS hiding rules. Keep scroll-only content out of drag/pan gesture ownership.
50
+
51
+ ## Native ownership and supported virtual adapters
52
+
53
+ Ant Table bodies, Tree holders, panels, lists, drawers and document owners use
54
+ the same native-DOM appearance. The old direct-child `scrollbar-color:auto`
55
+ appearance exemption is removed. Native component internals still own bounds,
56
+ scrolling, keyboard/wheel/touch and header/body synchronization. In particular,
57
+ native measurement probes see the same themed scrollbar width as Table bodies.
58
+ Do not apply an application overflow utility to native roots or replace their
59
+ scroll mechanism simply to style it.
60
+
61
+ AntD4 caches the native fixed-header gutter and sticky offsets only at Table
62
+ mount. The existing provider/root-font observer reconciles that gutter with the
63
+ body's actual physical width after reader-root or forced-colors changes; a media
64
+ listener shares its existing lifecycle. There is no new table observer, scroll
65
+ engine, wrapper, remount or guessed platform width. The source adapter corrects
66
+ only the existing gutter column and its cached fixed-header offset. Native ping
67
+ classes identify horizontal overflow; smaller/overlay gutters also compensate
68
+ the native sticky constraint when all columns fit. Both directions preserve
69
+ native body geometry, scrolling and sort/action hitboxes. The evidenced inline
70
+ column width requires one scoped `!important`; forced-colors paint stays native.
71
+
72
+ AntD4's normal cells consume `paddingContentVerticalLG`, but fixed empty/expanded
73
+ wrappers negate `padding` for both axes. These source aliases intentionally differ
74
+ in the block axis. The adapter aligns only the normal wrapper's block margins to
75
+ the cell role, removing measured false empty overflow without hiding bars,
76
+ clipping content or changing native small/middle, inline or scrolling geometry.
77
+
78
+ Browser scrollbar pseudo-elements cannot paint virtual scrollbar divs. The
79
+ AntD4 source adapter therefore maps `rc-virtual-list`, Tree and TreeSelect bars
80
+ to these same roles. AntD4's `vc-virtual-list/ScrollBar.js` exposes no public
81
+ scrollbar style/size prop and hardcodes inline8px width, translucent thumb and
82
+ 99px radius. The adapter's narrowly scoped `!important` declarations override
83
+ only those evidenced inline inputs, never display, thumb top/height or drag
84
+ handlers. Native hover and moving classes retain native lifecycle.
85
+
86
+ Monaco uses `beehexaEditorOptions(locale, observedRootFontSize)` for native
87
+ scrollbar/slider sizes and arrow/shadow options, plus its official
88
+ `scrollbarSlider` theme colors for normal/hover/active. Its API has no track
89
+ or radius theme input; paint-only source CSS is scoped to the existing
90
+ renderer surface for those gaps. All read-only/editable/diff callers reuse
91
+ the root observer; model identity, selection, undo, scroll and disposal stay
92
+ native. Forced-colors mode retains system DOM paint and a visible native
93
+ virtual-list thumb. Do not copy these recipes into consumers.
94
+ Change a retained viewer's display language with Monaco's `setModelLanguage` on
95
+ its existing model. Replacing the model also replaces its native view subtree;
96
+ language changes are not a reason to discard retained editor/model identity.
97
+
98
+ ## Source roles and Ant Design Vue 4 evidence
99
+
100
+ These are reusable semantic roles, not an application palette. The installed Ant
101
+ Design Vue 4 source `es/table/style/index.js`, in the Table token factory under
102
+ `Virtual Scroll Bar`, defines:
103
+
104
+ | Ant role | Ant value | Beehexa source role |
105
+ | --- | --- | --- |
106
+ | `tableScrollThumbSize` | `8` | `scrollbar.width` → `space.100` → `0.5rem` (nominal 8px) |
107
+ | `tableScrollThumbBg` | `colorTextPlaceholder` | `scrollbar.thumb` → `color.text.subtlest` |
108
+ | `tableScrollThumbBgHover` | `colorTextHeading` | `scrollbar.thumbHover` → `color.text` |
109
+ | `tableScrollBg` | `colorSplit` | `scrollbar.track` → `color.border` |
110
+
111
+ The Beehexa `createAntDesignVueTheme` factory already maps those three Ant colors
112
+ to the listed semantic roles. Ant's `es/table/style/sticky.js` uses
113
+ `tableScrollThumbBgHover` for both `&:hover` and `&-active` and a `borderRadius: 100`
114
+ pill. Accordingly `scrollbar.thumbActive` aliases the hover role and
115
+ `scrollbar.radius` aliases `radius.full`, not a copied application number.
116
+ `scrollbar.corner` aliases the track to join both axes without a color seam.
117
+ The same roles feed native DOM, Ant virtual bars and Monaco; ownership stays native.
118
+
119
+ Both-axis thickness uses the **same** `scrollbar.width`. Do not introduce
120
+ per-consumer widths, separate horizontal/vertical recipes or token overrides to
121
+ match a local palette. All colors resolve their existing semantic aliases through
122
+ light and dark mode. Vietnamese uses the same geometry and colors; no locale-only
123
+ scrollbar override is needed. Keep the native reader root size; `0.5rem` is nominal
124
+ 8px, not a hardcoded root-font mandate.
125
+
126
+ ## Contrast, interaction and native fallbacks
127
+
128
+ The thumb is the foreground, not the track. Keep its opaque source color visibly
129
+ distinguishable from the track in both themes; validate at least 3:1 for the
130
+ thumb/track pair when changing their source aliases. Hover and active use the
131
+ stronger text role, not transparency or an invented shade. Text and focus around
132
+ the scroller still use their own semantic foreground and focus roles. A thin bar
133
+ is not the only input mechanism: preserve wheel, touch, keyboard and assistive
134
+ technology access. Give an otherwise unreachable scroll viewport an appropriate
135
+ accessible name and keyboard focus as needed; do not add redundant tab stops to
136
+ already reachable native components.
137
+
138
+ Engines with WebKit scrollbar pseudo-elements use the token dimension for both
139
+ width and height, track/corner colors, full radius and real thumb hover/active.
140
+ The stylesheet selects that renderer with a feature query and leaves the standard
141
+ scrollbar properties at `auto`, because non-auto standard properties suppress
142
+ pseudo-element rendering in modern Chromium. Standards-only engines use native
143
+ `thin` geometry and the same thumb/track colors; their API does not expose radius,
144
+ corner or thumb hover/drag pseudo-elements, so hover/active colors follow the
145
+ scroll host's corresponding state. Do not claim pixel-identical geometry or
146
+ simulate missing thumb events in JavaScript.
147
+
148
+ OS overlay scrollbars may keep their native visibility, hit area or geometry.
149
+ Keep that platform behavior rather than forcing a persistent gutter, hiding bars
150
+ or drawing a substitute. In forced-colors mode the custom paint/geometry recipe
151
+ is inactive: native system scrollbar colors and dimensions remain available.
152
+ Unsupported engines retain their native scrollbar. None of these fallbacks is
153
+ permission for an application-owned competing scrollbar recipe.
154
+
155
+ ## Verification
156
+
157
+ Use the built/packed imports, never copied generated CSS. Compare actual Revisions
158
+ Tree and Content side by side, and Settings Members/Profile Admin plus Invitations
159
+ native Table body vertical/horizontal tracks and corners. Cover short/long/empty
160
+ data, tree expansion/collapse,1/2-axis overflow, resize, normal/nested/fullscreen,
161
+ light/dark, reader roots16/20 and relevant desktop/mobile allocations.
162
+ In WebKit-pseudo-element engines inspect both token-sized axes, arrow omission
163
+ and actual thumb hover/active/corner paint; in standards-only engines check the
164
+ supported thin metric/colors. Verify native Table header/body column alignment
165
+ and preserved pagination. Exercise wheel/keyboard/touch and virtual thumb drag,
166
+ forced colors, and long-to-short transitions without a second owner, hidden
167
+ columns or fake empty scrollbar. Source/build alone is not visual proof.
168
+
169
+ The package payload checker requires the typed `css/scrollbars` export, resolves a
170
+ strict side-effect import from a real extracted tarball and compares its CSS bytes
171
+ against `src/styles/scrollbars.css`. The complete active rule is discoverable as
172
+ `en/foundations/styles/scrollbars` through `@beehexa/design-rules`.
173
+
174
+ ## Tokens
175
+
176
+ <TokenTable prefix="scrollbar" />
@@ -1,13 +1,17 @@
1
1
  ---
2
2
  title: Size and density
3
- description: The three control heights, the size of a target people can click or tap, and how dense Beehexa screens are.
3
+ description: Three control heights, targets that fingers can hit, and one density that keeps Beehexa screens easy to scan.
4
4
  order: 5
5
5
  ---
6
6
  import LayoutDemo from '../../../components/LayoutDemo.astro';
7
7
  import TokenTable from '../../../components/TokenTable.astro';
8
8
 
9
+ A row of controls that line up looks calm and is quick to use. Choosing heights from a short list makes that automatic.
10
+
9
11
  **Every control comes in three heights: 24, 32 and 40 px. Controls in one row share one height.**
10
12
 
13
+ ## Control heights
14
+
11
15
  Controls are the things people click or type in: buttons, text fields, selects, segmented controls and tabs. A fixed height keeps a row of them lined up, whatever their text.
12
16
 
13
17
  <LayoutDemo kind="controls" />
@@ -21,21 +25,34 @@ Controls are the things people click or type in: buttons, text fields, selects,
21
25
  - Keep controls of one height in one row. A 24 px button next to a 32 px field looks misaligned.
22
26
  - Set heights with the size tokens, not with padding. The text sits in the middle of the height.
23
27
 
28
+ Two other parts have a fixed size:
29
+
30
+ | Part | Size |
31
+ |---|---|
32
+ | Switch | 20 px high, 36 px wide; knob 16 px |
33
+ | Avatar | 32 px; 24 px in dense tables and lists |
34
+
24
35
  ## Target size
25
36
 
26
37
  **Every control can be clicked in an area of at least 24 × 24 px, and tapped in 44 × 44 px on touch screens.**
27
38
 
28
39
  - 24 px is the minimum target size of WCAG 2.2 (SC 2.5.8). Every control height meets it.
29
- - On touch screens, keep the visible height and make the area that responds to a tap at least 44 × 44 px (`size.target.touch`).
40
+ - On touch screens (phones and tablets), every control responds to a tap in at least 44 × 44 px (`size.target.touch`). Mouse and keyboard screens keep the 24 px minimum.
41
+ - A control that stands alone, such as an icon button, keeps its visible size and gets an invisible tap area around it. Leave at least 12 px between two 32 px controls so their tap areas do not overlap.
42
+ - Rows in lists and menus, such as navigation items, menu items and tabs, sit next to each other, so an invisible area would cover the next row. Make the rows themselves 44 px high on touch screens.
30
43
 
31
44
  ## Density
32
45
 
33
- **Beehexa has one density for now: default.**
46
+ **Beehexa has one density: default.**
34
47
 
35
- One density means every screen is designed and checked at one size. A compact density may come later; it would lower control heights and spacing together, and screens that use the tokens will need no change.
36
-
37
- Until then, make a dense table with small (24 px) controls and rows, not with smaller spacing tokens.
48
+ One density means every screen is designed and checked at one size, and people see the same layout in every product. For a dense table, use small (24 px) controls and rows, not smaller spacing tokens. Screens built on the tokens will follow any future density without changes.
38
49
 
39
50
  ## Tokens
40
51
 
41
52
  <TokenTable prefix="size" />
53
+
54
+ ## Related
55
+
56
+ - [Spacing](/foundations/styles/spacing/): the space inside and between controls.
57
+ - [Typography](/foundations/styles/typography/usage/): the text style each control uses.
58
+ - [Accessibility](/foundations/guidelines/accessibility/#beehexa-rules): the Beehexa rule for touch targets.
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  title: Spacing
3
- description: A spacing scale of 14 steps on an 8 px base for padding, gaps and margins, and how to choose a step.
3
+ description: Space shows what belongs together. A 14-step scale on an 8 px base gives every gap, padding and margin a reason.
4
4
  order: 3
5
5
  ---
6
6
  import SpacingDemo from '../../../components/SpacingDemo.astro';
7
+ import TokenTable from '../../../components/TokenTable.astro';
7
8
 
8
- **Every space is a spacing token. Pick the step by how closely two things belong together.**
9
+ Things that belong together sit close; separate groups sit further apart. People see the groups before they read a word, so good spacing does half the work of a heading.
9
10
 
10
- Things that belong together sit close. Separate groups sit further apart. Readers see the groups before they read a word.
11
+ **Every space is a spacing token. Pick the step by how closely two things belong together.**
11
12
 
12
13
  <SpacingDemo kind="anatomy" />
13
14
 
@@ -63,6 +64,19 @@ Vietnamese text needs taller lines for its accents. The text styles add that hei
63
64
 
64
65
  Vietnamese labels are often longer than English ones. Let them wrap, or give the container room. Do not take space away to make a label fit.
65
66
 
67
+ ## Tokens
68
+
69
+ Most spacing comes from a token named after the kind of element, not from the scale. A family token points to a step of the scale, so every element of that kind changes together. Take a step from the scale only when no family covers the case.
70
+
71
+ - **Controls:** `space.control.x` (and `.small`, `.large`) beside the label, `space.control.gap` between icon and label.
72
+ - **Items:** `space.item.x` in menus, lists and side navigation.
73
+ - **Overlays:** `space.overlay` inside menus and popovers, `space.overlay.offset` from the element that opened them.
74
+ - **Cards and dialogs:** `space.card`, `space.modal` and `space.modal.gap`.
75
+ - **Tables:** `space.table.cell.x` and `space.table.cell.y`.
76
+ - **Columns:** `space.stack` between fields, list items and cards; `space.stack.group` between groups.
77
+
78
+ <TokenTable prefix="space" only="family" />
79
+
66
80
  ## Related
67
81
 
68
82
  - [App frame](/foundations/styles/layout/app-frame/): the spacing that lines up the header, side navigation and page header.
@@ -1,11 +1,13 @@
1
1
  ---
2
2
  title: Code
3
- description: Font stacks, getting the fonts, OpenType features for numbers and codes, and the type tokens.
3
+ description: Load the fonts, use the type tokens and turn on the OpenType features that keep order numbers and codes easy to read.
4
4
  order: 3
5
5
  ---
6
6
  import TokenTable from '../../../../components/TokenTable.astro';
7
7
  import TypeDemo from '../../../../components/TypeDemo.astro';
8
8
 
9
+ Everything you need to set Beehexa type in code. Use the tokens, and the fonts, fallbacks and features come with them.
10
+
9
11
  ## Font stacks
10
12
 
11
13
  Use the tokens, not your own lists.
@@ -18,7 +20,7 @@ font-family: Inter, "Noto Sans", system-ui, sans-serif;
18
20
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
19
21
  ```
20
22
 
21
- Noto Sans is the fallback because it covers Vietnamese and ₫ and is close to Inter in size (x-height 0.536 em against Inter's 0.546), so a page that falls back keeps its layout.
23
+ Noto Sans is the fallback because it covers Vietnamese and ₫ and is almost the same size as Inter, so a page that falls back keeps its layout.
22
24
 
23
25
  ## Getting the fonts
24
26
 
@@ -37,7 +39,7 @@ Noto Sans is the fallback because it covers Vietnamese and ₫ and is close to I
37
39
 
38
40
  <TypeDemo kind="features" />
39
41
 
40
- Every text style is applied with the `font` shorthand, and the shorthand resets `font-feature-settings`. So the features are set on every element from one variable, `--bh-font-features`; to add a feature, change the variable, not the property.
42
+ Every text style uses the `font` shorthand, which resets `font-feature-settings`. The source token `font.features` owns `"cv05", "cv08"`; generated token CSS applies `--bh-font-features` universally with `!important`. Consumers import that CSS rather than copy the base rule below. Add features through the variable, not a competing property. Keep a native 16px root and the 14px `font.body.default` role on the body.
41
43
 
42
44
  ```css
43
45
  /* Base: on every element */
@@ -1,18 +1,20 @@
1
1
  ---
2
2
  title: Typography
3
- description: Two typefaces and fourteen text styles, with their weights, letter spacing and line heights.
3
+ description: Most of what people do in Beehexa is read. Two typefaces and fourteen text styles keep it clear, in English and in Vietnamese.
4
4
  order: 2
5
5
  sidebarLabel: Overview
6
6
  ---
7
7
  import TypeDemo from '../../../../components/TypeDemo.astro';
8
8
 
9
+ Most of what people do in Beehexa is read: order numbers, statuses, error messages, settings. Clear type makes that reading fast and less tiring, in English and in Vietnamese.
10
+
9
11
  ## Typefaces
10
12
 
11
13
  Two typefaces cover everything: Inter for interface and reading text, JetBrains Mono for code.
12
14
 
13
15
  <TypeDemo kind="faces" />
14
16
 
15
- Inter was chosen because:
17
+ Why Inter:
16
18
 
17
19
  - Its tall x-height keeps small interface text legible.
18
20
  - It covers Vietnamese in full, the ₫ sign included.
@@ -43,7 +45,7 @@ Text is set with **text styles**, not loose sizes. Each style is one token that
43
45
  | 600 | `font.weight.semibold` | Headings |
44
46
  | 700 | `font.weight.bold` | Display only |
45
47
 
46
- Don't go lighter than 400: thin strokes break up on small text. Bold body text is not a heading; for emphasis that matters to the meaning, use `<strong>` or `<em>`, so screen readers get it too.
48
+ Don't go lighter than 400: thin strokes break up on small text. Bold body text is not a heading; for emphasis that matters to the meaning, use `<strong>` or `<em>`, so the meaning is in the text itself, not only in how it looks.
47
49
 
48
50
  ## Letter spacing
49
51
 
@@ -56,3 +58,11 @@ Line heights are part of each text style and sit on the 4 px grid: every one is
56
58
  - Body and label styles use 1.3–1.5 times the size (14/20, 12/16, 16/24), which leave room between lines of interface text without spreading a paragraph apart.
57
59
  - Headings tighten as they grow, to about 1.1–1.25 for display sizes, so large type stays one block.
58
60
  - Vietnamese text uses taller values; see [Vietnamese](/foundations/styles/typography/vietnamese/).
61
+
62
+ ## In this section
63
+
64
+ | Page | What is in it |
65
+ |---|---|
66
+ | [Usage](/foundations/styles/typography/usage/) | The text style for each part of a screen, hierarchy, readability and long text. |
67
+ | [Vietnamese](/foundations/styles/typography/vietnamese/) | Taller line heights that keep Vietnamese marks whole. |
68
+ | [Code](/foundations/styles/typography/code/) | Font stacks, getting the fonts, OpenType features and the type tokens. |
@@ -1,10 +1,12 @@
1
1
  ---
2
2
  title: Usage
3
- description: Which text style each part of a screen uses, and the rules for hierarchy, readability and long text.
3
+ description: Which text style to use for each part of a screen, so headings, labels and body text look the same everywhere.
4
4
  order: 1
5
5
  ---
6
6
  import TypeDemo from '../../../../components/TypeDemo.astro';
7
7
 
8
+ A clear hierarchy lets people scan a page and find what they need before reading a word. Use the same style for the same job, on every screen.
9
+
8
10
  ## Where each style goes
9
11
 
10
12
  Product UI uses these styles; component pages name the style each part uses. When a part isn't listed, use the style of the nearest one with the same role.
@@ -103,7 +105,7 @@ In CSS, each style is one `font` declaration:
103
105
  ```
104
106
 
105
107
  - Use a style as a whole. Don't take its size and set your own weight or line height: a near-miss style looks like a mistake next to the real one.
106
- - Don't make a new style for one screen. If a role is missing, add it here first.
108
+ - Don't make a new style for one screen. If a role is missing, ask the design system team to add it.
107
109
  - Set colour separately, with `color.text.*` tokens.
108
110
  - Show the selected item, such as the current page or tab, with colour and an indicator bar, not with a heavier weight: a bolder word gets wider and shifts its neighbours.
109
111
  - Bold inside text (`<strong>`, `<b>`) is semibold, 600. Weight 700 stays with the display styles.
@@ -120,7 +122,7 @@ In CSS, each style is one `font` declaration:
120
122
 
121
123
  - One page title (`h1`) per page. Go down the heading levels in order, without skipping one.
122
124
  - Mark up structure with headings, not with bold or larger paragraphs.
123
- - Show importance with size and weight first. Don't rely on color alone.
125
+ - Show importance with size and weight first. Don't rely on colour alone.
124
126
 
125
127
  ## Readability
126
128
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Vietnamese
3
- description: Taller line heights for Vietnamese text, and how to keep its marks from being cut off.
3
+ description: Vietnamese stacks marks above some letters. Taller line heights keep every mark visible and never cut off.
4
4
  order: 2
5
5
  ---
6
6
  import TypeDemo from '../../../../components/TypeDemo.astro';
@@ -37,7 +37,7 @@ Each box below is one line that clips its overflow, with the line box outlined.
37
37
  <TypeDemo kind="vietnamese" />
38
38
 
39
39
  - **Mark the language.** Set `lang="vi"` on `<html>` for a Vietnamese page, or on the element that holds Vietnamese text. Text marked with another language inside it, such as `lang="en"`, goes back to the English values.
40
- - **Use the tokens.** The text style tokens switch on their own under `lang="vi"` (`:lang(vi)` in `tokens.css`). Code that can't read CSS variables, such as an Ant Design Vue theme, takes the `vi` values from `tokens.js`.
40
+ - **Use the tokens.** The text style tokens switch on their own under `lang="vi"` (`:lang(vi)` in `tokens.css`). Code that can't read CSS variables, such as a theme object in JavaScript, takes the `vi` values from `tokens.js`.
41
41
  - **Let components grow.** A control or row that sets a fixed height must fit the Vietnamese line height: a 14 px label needs 24 px of line, so set heights from padding plus line height, not as a fixed number.
42
42
  - **Don't clip text vertically.** Avoid `overflow: hidden` on a box with no vertical padding; when you must truncate, clip horizontally and let the line box hold the marks.
43
43
  - **Test with this string** in every component and state: **ỔN ĐỊNH · ẤN ĐỘ · ẪM · Ở ĐÂY CÓ ƯU ĐÃI**.
@@ -1,9 +1,71 @@
1
1
  ---
2
2
  title: "Z-index"
3
- description: "The stacking order of layers: what sits above what, from sticky headers to dialogs and toasts."
3
+ description: "Which element is drawn on top when two overlap. Seven base layers and explicit fullscreen/readiness roles keep floating things in the same order everywhere."
4
4
  order: 8.5
5
- planned:
6
- - "Layer names and their order"
7
- - "Which layer each overlay uses: dropdown, popover, tooltip, dialog, drawer, toast"
8
- - "How layering pairs with elevation"
9
5
  ---
6
+ import ZIndexDemo from '../../../components/ZIndexDemo.astro';
7
+ import TokenTable from '../../../components/TokenTable.astro';
8
+
9
+ Z-index decides which element is drawn on top when two overlap. Beehexa uses seven named base layers instead of free numbers, so a menu never opens behind a dialog and a toast never hides under the scrim.
10
+
11
+ <ZIndexDemo kind="stack" />
12
+
13
+ ## How it works
14
+
15
+ - **A higher layer covers a lower one.** Base values run from 100 to 700 in steps of 100, leaving room for explicit fullscreen and readiness roles.
16
+ - **Pick the layer by what the element does**, not by how high a number you need.
17
+ - **A layer only competes with its neighbours.** An element with its own z-index, transform, filter or opacity below 1 starts a new stacking context; nothing inside can rise above it. That is why a list inside a dialog is rendered inside the dialog.
18
+
19
+ [Elevation](/foundations/styles/elevation/) shows how high a surface looks; z-index makes sure it is drawn on top. A menu needs both.
20
+
21
+ | Layer | Token | Value | Elevation | Use for |
22
+ |---|---|---|---|---|
23
+ | Sticky | `z-index.sticky` | 100 | Page | Sticky table headers and toolbars |
24
+ | Navigation | `z-index.navigation` | 200 | Page | App header, side navigation |
25
+ | Overlay | `z-index.overlay` | 300 | Overlay | Menus, select lists, popovers |
26
+ | Modal | `z-index.modal` | 400 | Modal | Dialogs, drawers and their scrim |
27
+ | Spotlight | `z-index.spotlight` | 500 | Modal | Product tour, onboarding spotlight |
28
+ | Tooltip | `z-index.tooltip` | 600 | none | Tooltips |
29
+ | Toast | `z-index.toast` | 700 | Overlay | Toasts, the skip link |
30
+
31
+ ## Why this order
32
+
33
+ - Menus cover the navigation they open from.
34
+ - A modal blocks the whole page, menus included.
35
+ - A tour can point at something inside a dialog.
36
+ - A tooltip explains a control, wherever that control is.
37
+ - A toast reports on the whole app, so nothing covers it.
38
+
39
+ ## On a screen
40
+
41
+ <ZIndexDemo kind="screen" />
42
+
43
+ Inside one component, values from 1 to 9 need no token, for example to lift the focused button in a button group.
44
+
45
+ ## Do and don’t
46
+
47
+ <ZIndexDemo kind="dodont" item="toast" />
48
+ <ZIndexDemo kind="dodont" item="inside" />
49
+ <ZIndexDemo kind="dodont" item="scrim" />
50
+
51
+ ## Tokens
52
+
53
+ <TokenTable prefix="z-index" />
54
+
55
+ ## Fullscreen and framework integration
56
+
57
+ The extended roles `z-index.fullscreen` (450) and `z-index.loading` (650) cover editor/code/image takeovers and blocking application readiness respectively. Fullscreen stays below spotlight, tooltip and toast feedback; readiness covers interactive surfaces and tooltips while toast feedback and the skip link remain on top at 700.
58
+
59
+ A fullscreen operational graph uses `z-index.modal` in an isolated local stacking context, not the editor takeover role. Child graph chrome uses private local ordering, so a global inspector can appear above it.
60
+
61
+ The Ant Design Vue adapter owns native component stacking: menus and select lists use the overlay band, dialogs and drawers use modal, tooltips use tooltip, and feedback uses toast. Bind its contextual `getPopupContainer` at the root ConfigProvider so a popup inside a dialog, drawer or fullscreen surface is rendered inside its owner, above the owner's scrim. Do not raise every popup globally to compensate for an incorrect container. Mark custom fullscreen hosts with `data-bh-overlay-owner`.
62
+
63
+ Root native Modal/Drawer surfaces remain in the document body for viewport geometry. Set root modal defaults from the adapter's invocation-time `getAntDesignVueModalZIndex()` (preserving an explicit caller value), and pass the live parent layer to `getAntDesignVueOverlayZIndex(fullscreen, ownerZIndex)` for nested drawers. A child uses the highest owner bound plus one, not a sum of ancestor z-index values; this keeps native confirmations above a fullscreen editor without crossing into the spotlight/feedback tiers.
64
+
65
+ Monaco's detached hover, completion and parameter-hint widgets use `z-index.tooltip`. Keep the editor takeover isolated so its child chrome cannot cover global feedback. Use one `color.surface.scrim` behind a modal or image inspector, not multiple translucent layers.
66
+
67
+ Preserve focus containment, focus return, Escape handling and scroll locking. Exercise the actual graph, editor hints, nested menus, inspector and loading stack; numeric ordering alone is not visual or accessibility proof.
68
+ ## Related
69
+
70
+ - [Elevation](/foundations/styles/elevation/): how high a surface looks.
71
+ - [Motion](/foundations/styles/motion/): how menus, dialogs and toasts appear and leave.
@@ -5,6 +5,8 @@ order: 2
5
5
  ---
6
6
  import TokenTable from '../../../components/TokenTable.astro';
7
7
 
8
+ Look up any token here: its name, its value in light and dark, and what it is for. To choose a token, start from the page of its style, such as [Color usage](/foundations/styles/color/usage/) or [Spacing](/foundations/styles/spacing/).
9
+
8
10
  ## Color
9
11
  <TokenTable prefix="color" />
10
12
 
@@ -23,14 +25,23 @@ import TokenTable from '../../../components/TokenTable.astro';
23
25
  ## Border
24
26
  <TokenTable prefix="border" />
25
27
 
28
+ ## Opacity
29
+ <TokenTable prefix="opacity" />
30
+
26
31
  ## Elevation
27
32
  <TokenTable prefix="elevation" />
28
33
 
34
+ ## Z-index
35
+ <TokenTable prefix="z-index" />
36
+
29
37
  ## Motion
30
38
  <TokenTable prefix="motion" />
31
39
 
32
40
  ## Breakpoints
33
41
  <TokenTable prefix="breakpoint" />
34
42
 
43
+ ## Layout
44
+ <TokenTable prefix="layout" />
45
+
35
46
  ## Interaction states
36
47
  <TokenTable prefix="state" />
@@ -1,27 +1,35 @@
1
1
  ---
2
2
  title: Tokens overview
3
- description: Design tokens are named design decisions, such as a color or a spacing step, shared by design and code.
3
+ description: "Tokens give every design decision a name, so design and code use the same colours, sizes and spacing."
4
4
  order: 1
5
5
  ---
6
6
 
7
- ## Why tokens
7
+ When a designer picks "text subtle" in a design file and a developer writes `var(--bh-color-text-subtle)`, they mean the same grey. That shared name is a design token. Change its value once and every product follows, so screens never drift apart.
8
8
 
9
- A token gives a design decision a name. Design files and code both use the name, so a change to the value reaches every product at once and nothing drifts.
9
+ ## How tokens are layered
10
+
11
+ Tokens come in three layers. Use the most specific one that fits.
12
+
13
+ | Layer | Example | Use it |
14
+ | --- | --- | --- |
15
+ | Scale | `color.graphite.11`, `space.200`, `radius.100` | The raw steps. Colour scales are never used directly. Spacing and radius steps are used when no role token fits. |
16
+ | Role | `color.text.subtle`, `space.control.x` | In products and components. Each is named for its job, so it stays right when the scale changes. |
17
+ | Component | `color.code.background` | Only where no role fits. |
18
+
19
+ A role token points at a step of a scale, for example `color.text` points at `{color.graphite.12}`. Use the role token in products, not the step it points at.
10
20
 
11
21
  ## Naming
12
22
 
13
- Tokens are named from general to specific, separated by dots in the source and by dashes in CSS:
23
+ Tokens are named from general to specific, separated by dots in design and documentation, and by hyphens in CSS:
14
24
 
15
- | Source name | CSS custom property |
25
+ | Token | CSS custom property |
16
26
  | --- | --- |
17
27
  | `color.text` | `--bh-color-text` |
18
28
  | `space.200` | `--bh-space-200` |
19
29
  | `color.border.focus` | `--bh-color-border-focus` |
20
30
 
21
- ## Where tokens live
22
-
23
- Every token has one value, kept in one place. The token tables on this site and the CSS variables in products come from that same source, so they never drift apart.
31
+ ## One source
24
32
 
25
- A token can point at another token, for example `{color.graphite.12}`. Use the role token (`color.text`) in products rather than the raw palette token (`color.graphite.12`) when one exists.
33
+ Every token has one value, kept in one place. The token tables on this site and the CSS variables in products come from that same source, so they always match.
26
34
 
27
35
  See [All design tokens](/foundations/tokens/all-tokens/) for the full list.
@@ -18,7 +18,7 @@ Specify hover, focus, pressed, selected and disabled for every interactive eleme
18
18
 
19
19
  ## Check accessibility early
20
20
 
21
- Beehexa products meet WCAG 2.2 AA. Read the [accessibility guidelines](/foundations/guidelines/accessibility/) and the Accessibility tab of every component you use.
21
+ Beehexa components are built to WCAG 2.2 AA, and your screen should reach the same level. Read the [accessibility guidelines](/foundations/guidelines/accessibility/) and the Accessibility tab of every component you use.
22
22
 
23
23
  ## Check colour before handoff
24
24
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Develop
3
- description: How developers use the token CSS, the Ant Design Vue theme and the lint rules.
3
+ description: How developers use the token CSS, the lint rules and the docs for AI agents.
4
4
  order: 2
5
5
  ---
6
6
 
@@ -40,16 +40,12 @@ Tokens ship as CSS custom properties with the `--bh-` prefix:
40
40
  .panel {
41
41
  padding: var(--bh-space-300);
42
42
  border: var(--bh-border-width-default) solid var(--bh-color-border);
43
- border-radius: var(--bh-radius-150);
43
+ border-radius: var(--bh-radius-100);
44
44
  }
45
45
  ```
46
46
 
47
47
  Do not write raw hex colors, arbitrary sizes or durations. Choose installed tokens by semantic role and read their usage rules. The [Stylelint](/tools/stylelint/) and [ESLint](/tools/eslint/) integrations are planned; their documentation is not proof that enforcement is installed.
48
48
 
49
- ## Theme Ant Design Vue
50
-
51
- Beehexa apps are built on Ant Design Vue. Apply the [Beehexa theme](/tools/ant-design-vue-theme/) so its components use the same tokens.
52
-
53
49
  ## Working with AI agents
54
50
 
55
51
  Start with `@beehexa/design-rules/agent` (installed `dist/AGENTS.md`), then use the package's
@@ -33,7 +33,7 @@ Use tokens instead of raw values. Tokens ship as CSS custom properties with the
33
33
  .panel {
34
34
  padding: var(--bh-space-300);
35
35
  border: var(--bh-border-width-default) solid var(--bh-color-border);
36
- border-radius: var(--bh-radius-150);
36
+ border-radius: var(--bh-radius-100);
37
37
  }
38
38
  ```
39
39
 
@@ -9,4 +9,4 @@ import PhaseTable from '../../components/PhaseTable.astro';
9
9
 
10
10
  <PhaseTable />
11
11
 
12
- Every page and component shows its phase in a chip. When every page in a section shares one phase, the sidebar says so once instead. Changes are recorded in each component's Changelog tab and in [News](/news/).
12
+ Every page and component shows its phase in a label. When every page in a section shares one phase, the sidebar says so once instead. Changes are recorded in each component's Changelog tab and in [News](/news/).