@beehexa/design-rules 2611.5.4 → 2611.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/catalog.json +908 -208
- package/dist/docs/public/_redirects +2 -2
- package/dist/docs/scripts/color-pairs.mjs +4 -0
- package/dist/docs/src/components/ChildPages.astro +8 -1
- package/dist/docs/src/components/ColorDemo.astro +12 -9
- package/dist/docs/src/components/DocsFooter.astro +1 -1
- package/dist/docs/src/components/HelpOptions.astro +8 -6
- package/dist/docs/src/components/IconBrowser.astro +2 -2
- package/dist/docs/src/components/LayoutDemo.astro +178 -99
- package/dist/docs/src/components/NativeControlsDemo.astro +165 -40
- package/dist/docs/src/components/NativeFlowDemo.astro +206 -0
- package/dist/docs/src/components/PhaseTable.astro +9 -5
- package/dist/docs/src/components/RoleGuides.astro +30 -22
- package/dist/docs/src/components/RuleDemo.astro +111 -0
- package/dist/docs/src/components/ShapeDemo.astro +24 -36
- package/dist/docs/src/components/SiteHeader.astro +1 -1
- package/dist/docs/src/components/SpacingDemo.astro +2 -0
- package/dist/docs/src/components/SwitchToggle.astro +13 -0
- package/dist/docs/src/components/SystemAreas.astro +9 -6
- package/dist/docs/src/components/TableOfContents.astro +1 -1
- package/dist/docs/src/components/TokenSearch.astro +64 -0
- package/dist/docs/src/components/TokenTable.astro +14 -9
- package/dist/docs/src/components/TypeDemo.astro +1 -1
- package/dist/docs/src/components/logos/LogoClearSpace.astro +1 -1
- package/dist/docs/src/content/components/button/accessibility.mdx +3 -3
- package/dist/docs/src/content/components/button/changelog.mdx +1 -1
- package/dist/docs/src/content/components/button/examples.mdx +10 -23
- package/dist/docs/src/content/components/button/meta.json +5 -1
- package/dist/docs/src/content/components/button/usage.mdx +13 -26
- package/dist/docs/src/content/components/resizable-panel/meta.json +5 -1
- package/dist/docs/src/content/{foundations/styles/scrollbars.mdx → components/scrollbar/code.mdx} +20 -39
- package/dist/docs/src/content/components/scrollbar/meta.json +9 -0
- package/dist/docs/src/content/components/scrollbar/usage.mdx +36 -0
- package/dist/docs/src/content/components/switch/accessibility.mdx +28 -0
- package/dist/docs/src/content/components/switch/examples.mdx +35 -0
- package/dist/docs/src/content/components/switch/meta.json +9 -0
- package/dist/docs/src/content/components/switch/usage.mdx +44 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +4 -2
- package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +1 -1
- package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +1 -1
- package/dist/docs/src/content/foundations/guidelines/content/messages.mdx +67 -0
- package/dist/docs/src/content/foundations/guidelines/content/numbers-dates-and-currency.mdx +72 -0
- package/dist/docs/src/content/foundations/guidelines/content/style-and-grammar.mdx +92 -0
- package/dist/docs/src/content/foundations/guidelines/content/terms.mdx +57 -0
- package/dist/docs/src/content/foundations/guidelines/content/voice-and-tone.mdx +48 -0
- package/dist/docs/src/content/foundations/guidelines/content.mdx +22 -17
- package/dist/docs/src/content/foundations/styles/border.mdx +5 -6
- package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +31 -7
- package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +66 -6
- package/dist/docs/src/content/foundations/styles/color/palette.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +5 -5
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +33 -78
- package/dist/docs/src/content/foundations/styles/elevation.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/code.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/library.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/usage.mdx +0 -3
- package/dist/docs/src/content/foundations/styles/interaction-states.mdx +40 -14
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +4 -9
- package/dist/docs/src/content/foundations/styles/layout/grid.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +3 -0
- package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/motion.mdx +2 -0
- package/dist/docs/src/content/foundations/styles/radius.mdx +38 -27
- package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -6
- package/dist/docs/src/content/foundations/styles/spacing.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/typography/usage.mdx +7 -0
- package/dist/docs/src/content/foundations/styles/z-index.mdx +3 -16
- package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +51 -2
- package/dist/docs/src/content/foundations/tokens/index.mdx +91 -6
- package/dist/docs/src/content/get-started/content.mdx +25 -3
- package/dist/docs/src/content/get-started/design.mdx +34 -15
- package/dist/docs/src/content/get-started/develop.mdx +83 -28
- package/dist/docs/src/content/get-started/get-help.mdx +21 -5
- package/dist/docs/src/content/get-started/index.mdx +11 -12
- package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +176 -48
- package/dist/docs/src/content/tools/application-content.mdx +52 -13
- package/dist/docs/src/content/tools/editors.mdx +36 -28
- package/dist/docs/src/content/tools/mermaid.mdx +42 -9
- package/dist/docs/src/content/tools/vueflow.mdx +66 -7
- package/dist/docs/src/content-vi/components/button/accessibility.mdx +51 -0
- package/dist/docs/src/content-vi/components/button/changelog.mdx +6 -0
- package/dist/docs/src/content-vi/components/button/examples.mdx +27 -0
- package/dist/docs/src/content-vi/components/button/usage.mdx +31 -0
- package/dist/docs/src/content-vi/components/resizable-panel/accessibility.mdx +58 -0
- package/dist/docs/src/content-vi/components/resizable-panel/changelog.mdx +20 -0
- package/dist/docs/src/content-vi/components/resizable-panel/code.mdx +78 -0
- package/dist/docs/src/content-vi/components/resizable-panel/examples.mdx +83 -0
- package/dist/docs/src/content-vi/components/resizable-panel/usage.mdx +97 -0
- package/dist/docs/src/content-vi/components/scrollbar/code.mdx +71 -0
- package/dist/docs/src/content-vi/components/scrollbar/usage.mdx +36 -0
- package/dist/docs/src/content-vi/components/switch/accessibility.mdx +28 -0
- package/dist/docs/src/content-vi/components/switch/examples.mdx +35 -0
- package/dist/docs/src/content-vi/components/switch/usage.mdx +44 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/guidelines/content/messages.mdx +67 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/numbers-dates-and-currency.mdx +71 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/style-and-grammar.mdx +91 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/terms.mdx +57 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/voice-and-tone.mdx +48 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +24 -19
- package/dist/docs/src/content-vi/foundations/styles/border.mdx +5 -5
- package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +30 -7
- package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +65 -6
- package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +5 -5
- package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +31 -1
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/library.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +0 -3
- package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +54 -12
- package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +4 -9
- package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +3 -0
- package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/motion.mdx +2 -0
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +38 -27
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -6
- package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +7 -0
- package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +3 -16
- package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +51 -2
- package/dist/docs/src/content-vi/foundations/tokens/index.mdx +90 -5
- package/dist/docs/src/content-vi/get-started/content.mdx +36 -0
- package/dist/docs/src/content-vi/get-started/design.mdx +49 -0
- package/dist/docs/src/content-vi/get-started/develop.mdx +110 -0
- package/dist/docs/src/content-vi/get-started/get-help.mdx +35 -0
- package/dist/docs/src/content-vi/get-started/index.mdx +49 -0
- package/dist/docs/src/content-vi/release-phases/index.mdx +11 -0
- package/dist/docs/src/content-vi/tools/ai-agents.mdx +36 -0
- package/dist/docs/src/content-vi/tools/ant-design-vue-theme.mdx +676 -0
- package/dist/docs/src/content-vi/tools/application-content.mdx +171 -0
- package/dist/docs/src/content-vi/tools/editors.mdx +254 -0
- package/dist/docs/src/content-vi/tools/eslint.mdx +15 -0
- package/dist/docs/src/content-vi/tools/index.mdx +7 -0
- package/dist/docs/src/content-vi/tools/mermaid.mdx +179 -0
- package/dist/docs/src/content-vi/tools/stylelint.mdx +18 -0
- package/dist/docs/src/content-vi/tools/vueflow.mdx +189 -0
- package/dist/docs/src/content.config.ts +12 -1
- package/dist/docs/src/lib/dates.ts +8 -0
- package/dist/docs/src/lib/i18n.ts +1 -0
- package/dist/docs/src/lib/navigation.ts +6 -4
- package/dist/docs/src/lib/token-descriptions-vi.ts +247 -11
- package/dist/docs/src/lib/tokens.ts +3 -0
- package/dist/docs/src/styles/chrome.css +8 -8
- package/dist/docs/src/styles/color.css +31 -31
- package/dist/docs/src/styles/docs.css +55 -40
- package/dist/docs/src/styles/elevation.css +1 -1
- package/dist/docs/src/styles/global.css +13 -4
- package/dist/docs/src/styles/icons.css +16 -16
- package/dist/docs/src/styles/kit.css +29 -10
- package/dist/docs/src/styles/layout.css +16 -11
- package/dist/docs/src/styles/logos.css +24 -24
- package/dist/docs/src/styles/opacity.css +3 -3
- package/dist/docs/src/styles/rules.css +24 -0
- package/dist/docs/src/styles/shapes.css +2 -2
- package/dist/docs/src/styles/tokens.css +228 -147
- package/dist/docs/src/styles/tokens.js +88 -62
- package/dist/docs/src/styles/typography.css +9 -9
- package/dist/docs/src/styles/zindex.css +6 -5
- package/dist/docs/tokens/color.json +24 -14
- package/dist/docs/tokens/components.json +39 -0
- package/dist/docs/tokens/content.json +103 -10
- package/dist/docs/tokens/diagram.json +490 -49
- package/dist/docs/tokens/editor.json +128 -22
- package/dist/docs/tokens/flow.json +412 -80
- package/dist/docs/tokens/layout.json +13 -4
- package/dist/docs/tokens/motion.json +11 -0
- package/dist/docs/tokens/radius.json +9 -9
- package/dist/docs/tokens/renderer.json +8 -0
- package/dist/docs/tokens/resize.json +84 -15
- package/dist/docs/tokens/scrollbar.json +42 -7
- package/dist/docs/tokens/size.json +6 -6
- package/dist/docs/tokens/spacing.json +1 -1
- package/dist/docs/tokens/switch.json +314 -59
- package/dist/docs/tokens/typography.json +1 -1
- package/dist/docs/tokens/visualization.json +465 -53
- package/dist/docs/tokens/z-index.json +0 -10
- package/dist/index.js +908 -208
- package/package.json +1 -1
- package/dist/docs/src/brand/structure-proposal.md +0 -227
- package/dist/docs/src/content/components/button/code.mdx +0 -34
|
@@ -47,7 +47,7 @@ When an icon is the only sign of something, such as a status icon in a narrow ta
|
|
|
47
47
|
|
|
48
48
|
**Icons that carry meaning need 3:1 against their background** (WCAG 1.4.11). Every `color.icon.*` token meets 3:1 on the backgrounds it is paired with, in light and dark; the build checks it. Decorative icons and icons in disabled controls have no minimum.
|
|
49
49
|
|
|
50
|
-
See every pair in [
|
|
50
|
+
See every pair in [colour accessibility](/foundations/styles/color/accessibility/).
|
|
51
51
|
|
|
52
52
|
## Target size
|
|
53
53
|
|
|
@@ -89,7 +89,7 @@ Use the `size` prop, or set the size in CSS on the `svg`. Both keep the stroke i
|
|
|
89
89
|
|
|
90
90
|
## Spacing
|
|
91
91
|
|
|
92
|
-
Set the gap on the control, from its size: 4 px (`space.050`) with a 16 px icon in small and default controls, 8 px (`space.100`) with a 20 or 24 px icon. See [
|
|
92
|
+
Set the gap on the control, from its size: 4 px (`space.050`) with a 16 px icon in small and default controls, 8 px (`space.100`) with a 20 or 24 px icon. See [spacing in icon usage](/foundations/styles/icons/usage/#spacing).
|
|
93
93
|
|
|
94
94
|
```css
|
|
95
95
|
.bh-button {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Library
|
|
3
|
-
description: Every Lucide icon Beehexa can use. Search by name or tag, filter by category, switch the size and
|
|
3
|
+
description: Every Lucide icon Beehexa can use. Search by name or tag, filter by category, switch the size and select an icon to copy its name.
|
|
4
4
|
order: 1
|
|
5
5
|
---
|
|
6
6
|
import IconBrowser from '../../../../components/IconBrowser.astro';
|
|
7
7
|
|
|
8
|
-
**
|
|
8
|
+
**Select an icon to copy its name.** Names are kebab-case, such as `circle-check`. In code, the icon component is `CircleCheck`.
|
|
9
9
|
|
|
10
10
|
Before you pick an icon, check [Common actions](/foundations/styles/icons/usage/#common-actions): if the meaning is listed there, use that icon. The library opens on the category **Common actions**, which shows only those icons; a search looks through every icon, and **All** lists them all. They are Lucide icons chosen for common Beehexa actions. None is redrawn or renamed.
|
|
11
11
|
|
|
@@ -23,9 +23,6 @@ An icon works when people learn it once and recognise it everywhere after that.
|
|
|
23
23
|
|
|
24
24
|
Don’t use other sizes. Don’t scale an icon to fit a box: change the box.
|
|
25
25
|
|
|
26
|
-
Bind these roles through CSS variables or convert them at numeric icon APIs;
|
|
27
|
-
the documented pixel sizes are not separate consumer constants.
|
|
28
|
-
|
|
29
26
|
<IconDemo kind="dodont" item="size" />
|
|
30
27
|
|
|
31
28
|
## Stroke
|
|
@@ -4,6 +4,7 @@ description: Every control shows when it is hovered, focused, pressed, selected
|
|
|
4
4
|
order: 10
|
|
5
5
|
---
|
|
6
6
|
import TokenTable from '../../../components/TokenTable.astro';
|
|
7
|
+
import RuleDemo from '../../../components/RuleDemo.astro';
|
|
7
8
|
import NativeControlsDemo from '../../../components/NativeControlsDemo.astro';
|
|
8
9
|
|
|
9
10
|
People need to see that a button is under the pointer, that the keyboard is on it, that it was pressed, or that it cannot be used right now. Every interactive element has all of these states. Each state has its own colour token, so every component shows it the same way, in light and dark, without extra code.
|
|
@@ -26,7 +27,9 @@ People need to see that a button is under the pointer, that the keyboard is on i
|
|
|
26
27
|
| Selected | The element is chosen, like a table row, a tab or a menu item. | `color.background.selected`, and `color.background.selected.hover` on hover | Unchanged, and a second cue: a check in a menu, or the yellow indicator bar (`color.border.selected`) | Unchanged |
|
|
27
28
|
| Disabled | The element cannot be used now. | `color.background.disabled` | `color.text.disabled`, `color.icon.disabled` | `color.border.disabled` |
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
The primary button and an ON [switch](/components/switch/usage/) use the neutral-bold family. Their hover and pressed tokens already define the appropriate light/dark steps; do not derive state colours from palette indices.
|
|
31
|
+
|
|
32
|
+
Contrast is checked on the rest, hover and selected fills. The pressed fill is not checked, because it shows only while the pointer or finger is down; text and borders keep their rest colour.
|
|
30
33
|
|
|
31
34
|
## Rows, menu items and ghost buttons
|
|
32
35
|
|
|
@@ -61,22 +64,21 @@ label and border. Never put one shared white thumb/text pair over both tracks.
|
|
|
61
64
|
| --- | --- | --- | --- |
|
|
62
65
|
| Normal | Track `background.neutral`; thumb `icon`; label `text`; edge `border.bold` | Track/edge `background.neutral.bold`; thumb `icon.inverse`; label `text.inverse` | Native thumb position and `aria-checked`; concise On/Off or Bật/Tắt labels |
|
|
63
66
|
| Hover | Track `.hover`; same paired thumb/label and edge | Track/edge `.hover`; same paired inverse thumb/label | Pointer affordance without changing checked state |
|
|
64
|
-
| Pressed | Track `.pressed`;
|
|
67
|
+
| Pressed | Track `.pressed`; paired thumb/label and pressed border | Track/edge `.pressed`; paired inverse thumb/label | Native press/handle feedback; verify the meaningful boundary against its effective fill |
|
|
65
68
|
| Focus | `.focus` aliases the normal pair; hover/pressed may coexist | `.focus` aliases the normal pair; hover/pressed may coexist | Independent `switch.focus-ring`, existing focused width and gap; never replace state with ring color |
|
|
66
69
|
| Loading | `.loading` preserves the current normal OFF pair | `.loading` preserves the current normal ON pair | Native spinner with the paired `switch.{off,on}.loading-icon`; native button disabled until work settles. Loading paint takes precedence while the spinner is present, including when disabled is also set. |
|
|
67
|
-
| Disabled |
|
|
70
|
+
| Disabled | Track `background.disabled`; thumb `icon.subtle`; label `text.subtle`; edge `border.bold` | Track/edge `background.neutral.bold.pressed`; thumb `icon.inverse`; label `text.inverse` | Native disabled behavior and cursor, no opacity dimming or change callbacks; native checked position and readable labels distinguish ON/OFF |
|
|
68
71
|
|
|
69
72
|
All names in the table's color pairs have the `color.` prefix. The exported
|
|
70
73
|
Switch roles are `switch.{off,on}.{track,thumb,label,border}` at rest, plus
|
|
71
74
|
`.hover`, `.pressed`, `.focus`, `.loading` and `.disabled`. They resolve through
|
|
72
75
|
the existing palette in light and dark; there are no copied hex colors, mixed
|
|
73
|
-
states or transparent state overlays.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
overlay surfaces. Disabled pairs are intentionally lower contrast and exempt.
|
|
76
|
+
states or transparent state overlays. Check every effective label/background pair
|
|
77
|
+
against the [contrast requirements](/foundations/styles/color/accessibility/),
|
|
78
|
+
including disabled read-only settings. A disabled-control WCAG exception is not
|
|
79
|
+
permission to erase a business value or make ON and OFF indistinguishable.
|
|
78
80
|
|
|
79
|
-
Normal and small Switches share these paints and `radius.
|
|
81
|
+
Normal and small Switches share these paints and `radius.pill`; their existing
|
|
80
82
|
native height, handle size, travel and label spacing do not change. EN and VI use
|
|
81
83
|
the existing source typography and short On/Off or Bật/Tắt labels. Keep the native
|
|
82
84
|
button, controlled `checked`/`v-model:checked`, `change` callback, keyboard handling
|
|
@@ -88,8 +90,9 @@ documents the actual adapter API and its narrow native gaps.
|
|
|
88
90
|
### Live native Switch states
|
|
89
91
|
|
|
90
92
|
This is the real AntD4 Switch under the public theme and companion CSS, not a
|
|
91
|
-
static imitation. Both sizes show initially OFF/ON available, loading
|
|
92
|
-
examples, localized labels and a visible change
|
|
93
|
+
static imitation. Both sizes show initially OFF/ON available, loading, disabled
|
|
94
|
+
and combined loading/disabled examples, localized labels and a visible change
|
|
95
|
+
counter. The explicitly simulated
|
|
93
96
|
save keeps its checked binding unchanged while pending, then commits it once;
|
|
94
97
|
attempting another activation during loading must not add a save. Use the site's
|
|
95
98
|
light/dark and EN/VI controls, then hover, press and keyboard-focus the examples.
|
|
@@ -100,14 +103,37 @@ light/dark and EN/VI controls, then hover, press and keyboard-focus the examples
|
|
|
100
103
|
|
|
101
104
|
## Disabled
|
|
102
105
|
|
|
103
|
-
- Use
|
|
106
|
+
- Use Source disabled roles only for unavailable actions; Switch uses the checked-specific pairs above. Never dim read-only business data.
|
|
104
107
|
- Remove the pointer and keyboard interaction (`disabled` on native controls, `aria-disabled="true"` plus blocked events on others) and show `cursor: not-allowed`.
|
|
105
|
-
- WCAG
|
|
108
|
+
- WCAG exempts truly inactive controls, not read-only content. Preserve readable state values and explain unavailable actions.
|
|
106
109
|
- Prefer telling people why something can't be used, for example in helper text, over a silent disabled control.
|
|
107
110
|
|
|
111
|
+
## Label, spacing and motion invariants
|
|
112
|
+
|
|
113
|
+
Keep labels readable at rest, hover, pressed, selected and selected-hover; use the
|
|
114
|
+
[Source contrast rules](/foundations/styles/color/accessibility/) rather than local palettes.
|
|
115
|
+
Reserve space for icons, labels, tags and trailing actions using Source spacing and
|
|
116
|
+
typography roles. Keep shrinkable text tracks (`min-width: 0`) separate from fixed
|
|
117
|
+
actions; wrap when possible. If truncation is necessary, preserve the full value
|
|
118
|
+
through an accessible name and a keyboard/touch-accessible disclosure, not hover alone.
|
|
119
|
+
|
|
120
|
+
Hover must not move, clip, cover, fade or replace text. Do not add opaque pseudo-element
|
|
121
|
+
overlays above labels, scale titles into neighbours, or reveal essential information
|
|
122
|
+
only on hover. Native Segmented keeps its moving selection thumb and keyboard behavior;
|
|
123
|
+
paired item state backgrounds must not obscure labels while it moves. Honor reduced
|
|
124
|
+
motion and keep spacing, hit targets and text metrics stable across states. The live
|
|
125
|
+
matrix above offers native Segmented in all sizes, enabled/disabled, with selected and
|
|
126
|
+
unselected items for hover, press, click and keyboard checks in both themes.
|
|
127
|
+
|
|
108
128
|
## Dark mode
|
|
109
129
|
|
|
110
|
-
The same tokens work in dark.
|
|
130
|
+
The same tokens work in dark. State aliases already resolve the paired light/dark fills and foregrounds; use them unchanged instead of calculating lighter or darker palette steps.
|
|
131
|
+
|
|
132
|
+
## Do and don’t
|
|
133
|
+
|
|
134
|
+
<RuleDemo item="selected" />
|
|
135
|
+
<RuleDemo item="focus" />
|
|
136
|
+
<RuleDemo item="opacity" />
|
|
111
137
|
|
|
112
138
|
## Tokens
|
|
113
139
|
|
|
@@ -7,15 +7,9 @@ import LayoutDemo from '../../../../components/LayoutDemo.astro';
|
|
|
7
7
|
|
|
8
8
|
**The header, the side navigation and the page header repeat on every page, in the same place and at the same size.**
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
`surface.subtle` (`--bh-color-surface-subtle`) in light and dark themes. The mobile
|
|
12
|
-
navigation drawer, including its logo row, uses that same surface. Do not give the
|
|
13
|
-
header `surface` while the sidebar uses `surface.subtle`. Page headers belong to
|
|
14
|
-
the content surface, not this global shell.
|
|
10
|
+
## Colour
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
remaining height and scrolls only when its contents do not fit. Do not give a menu
|
|
18
|
-
below a logo row `min-height: 100%`: that adds the logo height to a full-height menu.
|
|
12
|
+
The header and the side navigation sit on the page background, `color.surface.page`, like the content. A 1 px `color.border` line (`border.width.default`) separates them from the content: under the header and to the right of the side navigation. Below 1024 px the side navigation opens as a drawer on `color.surface.overlay` with `elevation.shadow.modal`, over the scrim.
|
|
19
13
|
|
|
20
14
|
## Header
|
|
21
15
|
|
|
@@ -42,6 +36,7 @@ In code, the header height is `layout.header.height` and the side navigation wid
|
|
|
42
36
|
- **The same width in every product**, so the page starts in the same place when people move between products.
|
|
43
37
|
- **No resizing.** One width keeps products alike. A resizable panel would also need a way to resize it without dragging (WCAG 2.5.7).
|
|
44
38
|
- **The rail** shows icons only. Each label appears in a tooltip.
|
|
39
|
+
- **In the drawer**, the logo row keeps its height and the menu takes the rest. Only the menu scrolls, and only when its items don't fit. Don't give the menu `min-height: 100%`: the logo row would push it past the bottom of the screen.
|
|
45
40
|
|
|
46
41
|
### Long labels
|
|
47
42
|
|
|
@@ -70,7 +65,7 @@ In code, the header height is `layout.header.height` and the side navigation wid
|
|
|
70
65
|
|
|
71
66
|
## Side panel
|
|
72
67
|
|
|
73
|
-
A panel beside the main content, such as details of a selected row, takes grid columns: 4 of 12 from 1024 px and 3 of 12 from 1440 px. Below 1024 px it opens as a drawer over the page. See the spans on [Grid](/foundations/styles/layout/grid/#spans).
|
|
68
|
+
A panel beside the main content, such as details of a selected row, takes grid columns: 4 of 12 from 1024 px and 3 of 12 from 1440 px (`layout.panel.columns.default` and `.large`). Below 1024 px it opens as a drawer over the page. See the spans on [Grid](/foundations/styles/layout/grid/#spans).
|
|
74
69
|
|
|
75
70
|
## Spacing of the frame
|
|
76
71
|
|
|
@@ -20,7 +20,7 @@ A grid gives every page the same rhythm, so cards, forms and tables line up and
|
|
|
20
20
|
| 1024 to 1439 px | 12 | 24 px | 24 px |
|
|
21
21
|
| 1440 px and up | 12 | 24 px | 32 px |
|
|
22
22
|
|
|
23
|
-
The values are spacing tokens: 16 px is `space.200`, 24 px is `space.300` and 32 px is `space.400`. The ranges start at the `md`, `lg` and `xl` breakpoints.
|
|
23
|
+
The values are spacing tokens: 16 px is `space.200`, 24 px is `space.300` and 32 px is `space.400`. The ranges start at the `md`, `lg` and `xl` breakpoints. The column counts are `layout.grid.columns.small`, `.medium` and `.large`.
|
|
24
24
|
|
|
25
25
|
- **12 columns** divide into halves, thirds, quarters and sixths.
|
|
26
26
|
- **4 columns on phones** give two halves or four quarters. **8 on tablets** keep the same halves and quarters with more room.
|
|
@@ -3,6 +3,7 @@ title: Detail overlays
|
|
|
3
3
|
description: How wide a drawer or panel should be when people inspect a record without leaving the page.
|
|
4
4
|
order: 5
|
|
5
5
|
---
|
|
6
|
+
import LayoutDemo from '../../../../components/LayoutDemo.astro';
|
|
6
7
|
|
|
7
8
|
When people open an order, a sync log or the settings of a connection, they usually want the list behind it to stay where it is. A detail overlay, a drawer or panel that opens over the page, lets them inspect the record and go straight back to where they were.
|
|
8
9
|
|
|
@@ -14,6 +15,8 @@ A short confirmation, such as "Delete this store?", is a dialog, not a detail ov
|
|
|
14
15
|
|
|
15
16
|
## Widths
|
|
16
17
|
|
|
18
|
+
<LayoutDemo kind="overlays" />
|
|
19
|
+
|
|
17
20
|
| Width | Token | Size |
|
|
18
21
|
| --- | --- | --- |
|
|
19
22
|
| Default | `layout.overlay.default` | From 1024 px: half the window, and at least 900 px |
|
|
@@ -41,7 +41,7 @@ import LogoHero from '../../../../components/logos/LogoHero.astro';
|
|
|
41
41
|
| Graphite | #2B2A28 | 43 42 40 |
|
|
42
42
|
| White | #FFFFFF | 255 255 255 |
|
|
43
43
|
|
|
44
|
-
For print,
|
|
44
|
+
For print, ask the printer for **Pantone 1235 C** (PMS 1235 C), the ready-mixed ink closest to the Beehexa yellow, as set in the 2025 brand guide. Approve a printed proof before the full run: this yellow often prints dull in CMYK on uncoated paper. On white paper, the white version is the paper itself.
|
|
45
45
|
|
|
46
46
|
## Typeface
|
|
47
47
|
|
|
@@ -49,11 +49,11 @@ The wordmark is set in Inter Display and converted to outlines, so you don't nee
|
|
|
49
49
|
|
|
50
50
|
## Trademark
|
|
51
51
|
|
|
52
|
-
The Beehexa logo is registered as a trademark in Viet Nam, no. 4-0358730-000, in classes 9, 35 and 42.
|
|
52
|
+
The Beehexa logo is registered as a trademark in Viet Nam, no. 4-0358730-000, in classes 9, 35 and 42.
|
|
53
53
|
|
|
54
54
|
## Terms of use
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
For questions about using the logo, email [hello@beehexa.com](mailto:hello@beehexa.com?subject=Logo%20use).
|
|
57
57
|
|
|
58
58
|
You may use the Beehexa and HexaSync logos to refer to Beehexa, to show that your product integrates with HexaSync, or in news and reviews about us, as long as you:
|
|
59
59
|
|
|
@@ -27,7 +27,7 @@ Keep an empty margin of **x** on all four sides: no text, images or page edges i
|
|
|
27
27
|
|
|
28
28
|
<LogoClearSpace />
|
|
29
29
|
|
|
30
|
-
The master files already include this margin in their artboard. Align the artboard, not the artwork, and the space
|
|
30
|
+
The master files already include this margin in their artboard. Align the artboard, not the artwork, and the clear space is already there.
|
|
31
31
|
|
|
32
32
|
## Minimum size
|
|
33
33
|
|
|
@@ -69,6 +69,8 @@ Things that open and close in place, such as an accordion, take the same time bo
|
|
|
69
69
|
- **Loading**: show a spinner only when a wait passes 300 ms. Load a whole page with a skeleton.
|
|
70
70
|
- **Toast**: closes after 5 seconds, or 10 seconds when it has an action. The timer pauses while the pointer or focus is on it.
|
|
71
71
|
|
|
72
|
+
These waits have their own tokens: `motion.wait.tooltip.show`, `motion.wait.tooltip.hide`, `motion.wait.spinner`, `motion.wait.toast` and `motion.wait.toast.action`. They are waiting times, not durations, so they stay the same under reduced motion.
|
|
73
|
+
|
|
72
74
|
## What does not move
|
|
73
75
|
|
|
74
76
|
- Tab content swaps at once; only the indicator slides.
|
|
@@ -13,8 +13,9 @@ Radius tells people what an element is before they read it. Rounding by role kee
|
|
|
13
13
|
## How it works
|
|
14
14
|
|
|
15
15
|
- **Small details get the smallest radius.** Badges, checkboxes and keyboard shortcuts are tiny, so 2 px is enough to soften them.
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
16
|
+
- **Supporting elements come next.** Tags, status labels, tooltips and dates sit beside the content they describe. 4 px keeps them quiet.
|
|
17
|
+
- **Interactive elements sit in the middle.** Buttons, inputs, selects and navigation items share 6 px, so anything people can click or type in has one shape.
|
|
18
|
+
- **Containers are rounder than what they hold.** Cards, alerts, menus and popovers use 8 px; dialogs, drawers and large page containers use 12 px. The radius grows with the surface, so nested corners stay concentric.
|
|
18
19
|
- **Full is for people and chips.** Avatars and other user UI, switches and chips are fully round, so anything people can remove or turn on and off reads as one shape.
|
|
19
20
|
- **Every radius has a matching focus ring.** The ring is the element's radius + 2 px, so its corners follow the element.
|
|
20
21
|
|
|
@@ -24,20 +25,25 @@ Eight steps. The token number follows the spacing scale: `radius.100` is 8 px, l
|
|
|
24
25
|
|
|
25
26
|
<ShapeDemo kind="radius-scale" />
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|---|---|---|
|
|
29
|
-
| Edge | `radius.0` | The page header, full-width tables, panels that run to the edge |
|
|
30
|
-
| Small details | `radius.025` · 2 px | Badges, checkboxes, keyboard shortcuts |
|
|
31
|
-
| Controls and supporting elements | `radius.050` · 4 px | Buttons, inputs, text areas, selects, menu frames and items, tags, status labels, dates and timestamps |
|
|
32
|
-
| Navigation | `radius.075` · 6 px | Side navigation items; nested content when the nesting rule gives 6 px |
|
|
33
|
-
| Containment | `radius.100` · 8 px | Cards, alerts and banners, in-page containers, popovers, tooltips, select popups, toasts |
|
|
34
|
-
| Large page elements | `radius.150` · 12 px | Dialogs, drawers, full-page containers, tables in their own frame |
|
|
35
|
-
| Retained scale value | `radius.200` · 16 px | No current component role |
|
|
36
|
-
| People and chips | `radius.full` | Avatars and user UI, switches, chips |
|
|
28
|
+
## By role
|
|
37
29
|
|
|
38
|
-
|
|
30
|
+
Use the role token when there is one. It points to a step of the scale, so a role can move to another step without changing every component. A role without its own token uses the scale step directly.
|
|
31
|
+
|
|
32
|
+
| Role | Token | Step | Elements |
|
|
33
|
+
|---|---|---|---|
|
|
34
|
+
| Edge | `radius.0` | 0 | The page header, full-width tables, panels that run to the edge |
|
|
35
|
+
| Small details | `radius.025` | 2 px | Badges, checkboxes, keyboard shortcuts |
|
|
36
|
+
| Supporting | `radius.050` | 4 px | Tags, status labels, tooltips, dates and timestamps |
|
|
37
|
+
| Items | `radius.item` | 4 px | Items inside a menu or a list |
|
|
38
|
+
| Small controls | `radius.control.small` | 4 px | 24 px controls: compact buttons and their fields |
|
|
39
|
+
| Controls | `radius.control` | 6 px | Buttons, inputs, text areas, selects, side navigation items |
|
|
40
|
+
| Containment | `radius.card` | 8 px | Cards, alerts and banners, in-page containers |
|
|
41
|
+
| Floating UI | `radius.overlay` | 8 px | Menus, popovers, select lists, toasts |
|
|
42
|
+
| Large page elements | `radius.modal` | 12 px | Dialogs, drawers, full-page containers; a table in its own frame uses `radius.150` |
|
|
43
|
+
| Large media | `radius.200` | 16 px | Video and image preview containers |
|
|
44
|
+
| People and chips | `radius.pill` | Fully round | Avatars and user UI, switches, chips |
|
|
39
45
|
|
|
40
|
-
|
|
46
|
+
Labels, tags and chips are three different elements. [Color usage](/foundations/styles/color/usage/#label-tag-or-chip) says which is which.
|
|
41
47
|
|
|
42
48
|
## Examples
|
|
43
49
|
|
|
@@ -55,31 +61,31 @@ Small details: badges, checkboxes and keyboard shortcuts.
|
|
|
55
61
|
|
|
56
62
|
### `radius.050` · 4 px
|
|
57
63
|
|
|
58
|
-
|
|
64
|
+
Supporting elements: tags, status labels, tooltips, compact buttons and the items inside a menu.
|
|
59
65
|
|
|
60
66
|
<ShapeDemo kind="radius-use" item="050" />
|
|
61
67
|
|
|
62
68
|
### `radius.075` · 6 px
|
|
63
69
|
|
|
64
|
-
|
|
70
|
+
Interactive elements: buttons, inputs, text areas, selects and side navigation items. Inputs and buttons always share this value.
|
|
65
71
|
|
|
66
72
|
<ShapeDemo kind="radius-use" item="075" />
|
|
67
73
|
|
|
68
74
|
### `radius.100` · 8 px
|
|
69
75
|
|
|
70
|
-
Containment and floating UI: cards, alerts and banners,
|
|
76
|
+
Containment and floating UI: cards, alerts and banners, menus, popovers, toasts, and a group of controls with 4 px padding.
|
|
71
77
|
|
|
72
78
|
<ShapeDemo kind="radius-use" item="100" />
|
|
73
79
|
|
|
74
80
|
### `radius.150` · 12 px
|
|
75
81
|
|
|
76
|
-
Large page elements: dialogs, drawers, full-page containers and a table in its own frame.
|
|
82
|
+
Large page elements: dialogs, drawers, full-page containers and a table in its own frame.
|
|
77
83
|
|
|
78
84
|
<ShapeDemo kind="radius-use" item="150" />
|
|
79
85
|
|
|
80
86
|
### `radius.200` · 16 px
|
|
81
87
|
|
|
82
|
-
|
|
88
|
+
Large media: video and image previews. No component takes it by default.
|
|
83
89
|
|
|
84
90
|
<ShapeDemo kind="radius-use" item="200" />
|
|
85
91
|
|
|
@@ -91,7 +97,16 @@ Avatars and other user UI, switches and chips.
|
|
|
91
97
|
|
|
92
98
|
## Shapes inside shapes
|
|
93
99
|
|
|
94
|
-
**An element with a role keeps its role radius, wherever it sits.** A button is
|
|
100
|
+
**An element with a role keeps its role radius, wherever it sits.** A button is 6 px in a card, a dialog or a toolbar, and a chip stays fully round inside an input.
|
|
101
|
+
|
|
102
|
+
**Joined controls share one exterior.** Native Input/Search and compact Button/field
|
|
103
|
+
groups keep their role radius (`radius.control`, or `radius.control.small` for
|
|
104
|
+
24 px controls) only on exposed corners and `radius.0` on touching corners, with
|
|
105
|
+
one overlapping border seam and a shared intrinsic row height. They are not padded
|
|
106
|
+
control-group frames and do not inherit a container radius.
|
|
107
|
+
The [live native matrix](/tools/ant-design-vue-theme/#live-native-state-and-progress-matrix)
|
|
108
|
+
shows small/default/large Search rows beside Button/Select and their actual popups.
|
|
109
|
+
Verify at root16 and root20 in both themes/locales; do not add consumer corner CSS.
|
|
95
110
|
|
|
96
111
|
**Content without a role takes its radius from the container.** Images, panels and other shapes that only fill a container follow its corners: inner radius = outer radius − padding. Use this only when padding is smaller than the outer radius. When the padding is equal to or larger than the outer radius, the corners no longer meet; pick a step that is not larger than the container's. Groups with 4 px padding use 8 px outer / 4 px inner; groups with 8 px padding use 12 px outer / 4 px inner.
|
|
97
112
|
|
|
@@ -103,7 +118,7 @@ When content sits flush inside a box with a 1 px border, clip it with `overflow:
|
|
|
103
118
|
|
|
104
119
|
## Focus ring
|
|
105
120
|
|
|
106
|
-
The focus ring sits 2 px outside the element and its radius is the element's radius + 2 px: a
|
|
121
|
+
The focus ring sits 2 px outside the element and its radius is the element's radius + 2 px: a 6 px button gets an 8 px ring. In code the browser rounds the outline for you, so no radius token is needed. In design files, draw the ring with the element's radius + 2. See [Border](/foundations/styles/border/) for the ring itself.
|
|
107
122
|
|
|
108
123
|
<ShapeDemo kind="focus-radius" />
|
|
109
124
|
|
|
@@ -113,7 +128,7 @@ The focus ring sits 2 px outside the element and its radius is the element's rad
|
|
|
113
128
|
<ShapeDemo kind="dodont" item="controls" />
|
|
114
129
|
<ShapeDemo kind="dodont" item="corners" />
|
|
115
130
|
|
|
116
|
-
- Do pick the token by role. A large button is still a button:
|
|
131
|
+
- Do pick the token by role. A large button is still a button: 6 px.
|
|
117
132
|
- Don't write a raw radius value where a token applies.
|
|
118
133
|
|
|
119
134
|
## Code
|
|
@@ -127,13 +142,9 @@ The focus ring sits 2 px outside the element and its radius is the element's rad
|
|
|
127
142
|
border-radius: var(--bh-radius-050); /* 8 − 4 = 4 */
|
|
128
143
|
}
|
|
129
144
|
.button,
|
|
130
|
-
.input
|
|
131
|
-
.select {
|
|
145
|
+
.input {
|
|
132
146
|
border-radius: var(--bh-radius-control);
|
|
133
147
|
}
|
|
134
|
-
.menu {
|
|
135
|
-
border-radius: var(--bh-radius-050);
|
|
136
|
-
}
|
|
137
148
|
```
|
|
138
149
|
|
|
139
150
|
## Tokens
|
|
@@ -5,6 +5,7 @@ order: 5
|
|
|
5
5
|
---
|
|
6
6
|
import LayoutDemo from '../../../components/LayoutDemo.astro';
|
|
7
7
|
import TokenTable from '../../../components/TokenTable.astro';
|
|
8
|
+
import RuleDemo from '../../../components/RuleDemo.astro';
|
|
8
9
|
|
|
9
10
|
A row of controls that line up looks calm and is quick to use. Choosing heights from a short list makes that automatic.
|
|
10
11
|
|
|
@@ -25,12 +26,7 @@ Controls are the things people click or type in: buttons, text fields, selects,
|
|
|
25
26
|
- Keep controls of one height in one row. A 24 px button next to a 32 px field looks misaligned.
|
|
26
27
|
- Set heights with the size tokens, not with padding. The text sits in the middle of the height.
|
|
27
28
|
|
|
28
|
-
|
|
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 |
|
|
29
|
+
Parts with a fixed size of their own, such as the switch (20 × 36 px, knob 16 px) and the avatar (32 px; 24 px in dense tables and lists), keep it in their component tokens: `switch.size.*` and `avatar.size.*`.
|
|
34
30
|
|
|
35
31
|
## Target size
|
|
36
32
|
|
|
@@ -47,6 +43,11 @@ Two other parts have a fixed size:
|
|
|
47
43
|
|
|
48
44
|
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.
|
|
49
45
|
|
|
46
|
+
## Do and don’t
|
|
47
|
+
|
|
48
|
+
<RuleDemo item="row" />
|
|
49
|
+
<RuleDemo item="target" />
|
|
50
|
+
|
|
50
51
|
## Tokens
|
|
51
52
|
|
|
52
53
|
<TokenTable prefix="size" />
|
|
@@ -6,7 +6,7 @@ order: 3
|
|
|
6
6
|
import SpacingDemo from '../../../components/SpacingDemo.astro';
|
|
7
7
|
import TokenTable from '../../../components/TokenTable.astro';
|
|
8
8
|
|
|
9
|
-
Things that belong together sit close; separate groups sit further apart. People see the groups before they read a word, so
|
|
9
|
+
Things that belong together sit close; separate groups sit further apart. People see the groups before they read a word, so spacing groups the content before any heading does.
|
|
10
10
|
|
|
11
11
|
**Every space is a spacing token. Pick the step by how closely two things belong together.**
|
|
12
12
|
|
|
@@ -39,7 +39,7 @@ Noto Sans is the fallback because it covers Vietnamese and ₫ and is almost the
|
|
|
39
39
|
|
|
40
40
|
<TypeDemo kind="features" />
|
|
41
41
|
|
|
42
|
-
Every text style
|
|
42
|
+
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.
|
|
43
43
|
|
|
44
44
|
```css
|
|
45
45
|
/* Base: on every element */
|
|
@@ -4,6 +4,7 @@ description: Which text style to use for each part of a screen, so headings, lab
|
|
|
4
4
|
order: 1
|
|
5
5
|
---
|
|
6
6
|
import TypeDemo from '../../../../components/TypeDemo.astro';
|
|
7
|
+
import RuleDemo from '../../../../components/RuleDemo.astro';
|
|
7
8
|
|
|
8
9
|
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
10
|
|
|
@@ -139,6 +140,12 @@ Order names, URLs and IDs have no length limit.
|
|
|
139
140
|
- Let long unbroken strings, such as URLs and keys, break anywhere rather than overflow.
|
|
140
141
|
- Never truncate text people need to finish a task.
|
|
141
142
|
|
|
143
|
+
## Do and don’t
|
|
144
|
+
|
|
145
|
+
<RuleDemo item="style" />
|
|
146
|
+
<RuleDemo item="caps" />
|
|
147
|
+
<RuleDemo item="truncate" />
|
|
148
|
+
|
|
142
149
|
## Accessibility
|
|
143
150
|
|
|
144
151
|
- Text needs a contrast of at least 4.5 : 1 with its background; large text (24 px, or 18.66 px bold) at least 3 : 1. See [Color](/foundations/styles/color/).
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Z-index"
|
|
3
|
-
description: "Which element is drawn on top when two overlap. Seven
|
|
3
|
+
description: "Which element is drawn on top when two overlap. Seven named layers keep floating things in the same order everywhere."
|
|
4
4
|
order: 8.5
|
|
5
5
|
---
|
|
6
6
|
import ZIndexDemo from '../../../components/ZIndexDemo.astro';
|
|
7
7
|
import TokenTable from '../../../components/TokenTable.astro';
|
|
8
8
|
|
|
9
|
-
Z-index decides which element is drawn on top when two overlap. Beehexa uses seven named
|
|
9
|
+
Z-index decides which element is drawn on top when two overlap. Beehexa uses seven named layers instead of free numbers, so a menu never opens behind a dialog and a toast never hides under the scrim.
|
|
10
10
|
|
|
11
11
|
<ZIndexDemo kind="stack" />
|
|
12
12
|
|
|
13
13
|
## How it works
|
|
14
14
|
|
|
15
|
-
- **A higher layer covers a lower one.**
|
|
15
|
+
- **A higher layer covers a lower one.** Values run from 100 to 700 in steps of 100, leaving room for a new layer.
|
|
16
16
|
- **Pick the layer by what the element does**, not by how high a number you need.
|
|
17
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
18
|
|
|
@@ -52,19 +52,6 @@ Inside one component, values from 1 to 9 need no token, for example to lift the
|
|
|
52
52
|
|
|
53
53
|
<TokenTable prefix="z-index" />
|
|
54
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
55
|
## Related
|
|
69
56
|
|
|
70
57
|
- [Elevation](/foundations/styles/elevation/): how high a surface looks.
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: All design tokens
|
|
3
|
-
description: Every Beehexa
|
|
3
|
+
description: "Every Beehexa token in one place, with its value in light and dark and the job it does. Search by name, value or use."
|
|
4
4
|
order: 2
|
|
5
5
|
---
|
|
6
6
|
import TokenTable from '../../../components/TokenTable.astro';
|
|
7
|
+
import TokenSearch from '../../../components/TokenSearch.astro';
|
|
7
8
|
|
|
8
|
-
Look up
|
|
9
|
+
Already know what you need? Look it up here. Every token is listed with its CSS custom property, its value and what it is for. Not sure which token fits? Start from the style page instead, such as [Color usage](/foundations/styles/color/usage/) or [Spacing](/foundations/styles/spacing/), where each token is shown in use.
|
|
10
|
+
|
|
11
|
+
## Reading the tables
|
|
12
|
+
|
|
13
|
+
- **Token** is the CSS custom property you write in code, such as `--bh-color-text-subtle`.
|
|
14
|
+
- **Value** is what the token points at. When it points at another token, the final value is shown under it. Tokens that change in dark mode or for Vietnamese text show those values too.
|
|
15
|
+
- **Family tokens** are role tokens for one kind of element, such as cards or controls. Each group lists them after its scale steps. Use them before you reach for a step.
|
|
16
|
+
|
|
17
|
+
<TokenSearch />
|
|
9
18
|
|
|
10
19
|
## Color
|
|
11
20
|
<TokenTable prefix="color" />
|
|
@@ -45,3 +54,43 @@ Look up any token here: its name, its value in light and dark, and what it is fo
|
|
|
45
54
|
|
|
46
55
|
## Interaction states
|
|
47
56
|
<TokenTable prefix="state" />
|
|
57
|
+
|
|
58
|
+
## Component tokens
|
|
59
|
+
|
|
60
|
+
Tokens for one component. A product uses the component; the component uses these tokens. Each points to a foundation token or a scale step where one fits.
|
|
61
|
+
|
|
62
|
+
### Switch
|
|
63
|
+
<TokenTable prefix="switch" />
|
|
64
|
+
|
|
65
|
+
### Avatar
|
|
66
|
+
<TokenTable prefix="avatar" />
|
|
67
|
+
|
|
68
|
+
### Label
|
|
69
|
+
<TokenTable prefix="label" />
|
|
70
|
+
|
|
71
|
+
### Tag
|
|
72
|
+
<TokenTable prefix="tag" />
|
|
73
|
+
|
|
74
|
+
### Chip
|
|
75
|
+
<TokenTable prefix="chip" />
|
|
76
|
+
|
|
77
|
+
### Scrollbar
|
|
78
|
+
<TokenTable prefix="scrollbar" />
|
|
79
|
+
|
|
80
|
+
### Resizable panel
|
|
81
|
+
<TokenTable prefix="resize" />
|
|
82
|
+
|
|
83
|
+
### Application content
|
|
84
|
+
<TokenTable prefix="content" />
|
|
85
|
+
|
|
86
|
+
### Code editor
|
|
87
|
+
<TokenTable prefix="editor" />
|
|
88
|
+
|
|
89
|
+
### Diagram
|
|
90
|
+
<TokenTable prefix="diagram" />
|
|
91
|
+
|
|
92
|
+
### Flow
|
|
93
|
+
<TokenTable prefix="flow" />
|
|
94
|
+
|
|
95
|
+
### Data visualization
|
|
96
|
+
<TokenTable prefix="visualization" />
|