@beehexa/design-rules 2611.4.1 → 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.
- package/dist/catalog.json +602 -248
- package/dist/docs/public/_redirects +2 -0
- package/dist/docs/scripts/token-utils.d.mts +5 -1
- package/dist/docs/scripts/token-utils.mjs +28 -3
- package/dist/docs/src/brand/structure-proposal.md +1 -1
- package/dist/docs/src/components/ColorDemo.astro +52 -14
- package/dist/docs/src/components/MotionDemo.astro +135 -0
- package/dist/docs/src/components/NativeControlsDemo.astro +279 -0
- package/dist/docs/src/components/OpacityDemo.astro +8 -8
- package/dist/docs/src/components/RoleGuides.astro +2 -2
- package/dist/docs/src/components/ShapeDemo.astro +78 -35
- package/dist/docs/src/components/SiteHeader.astro +19 -4
- package/dist/docs/src/components/SystemAreas.astro +1 -1
- package/dist/docs/src/components/TokenTable.astro +16 -1
- package/dist/docs/src/components/TypeDemo.astro +15 -15
- package/dist/docs/src/components/ZIndexDemo.astro +1 -1
- package/dist/docs/src/components/logos/LogoInUse.astro +3 -3
- package/dist/docs/src/content/components/button/accessibility.mdx +41 -8
- package/dist/docs/src/content/components/button/code.mdx +8 -1
- package/dist/docs/src/content/components/button/examples.mdx +23 -4
- package/dist/docs/src/content/components/button/usage.mdx +26 -0
- package/dist/docs/src/content/components/resizable-panel/accessibility.mdx +61 -0
- package/dist/docs/src/content/components/resizable-panel/changelog.mdx +20 -0
- package/dist/docs/src/content/components/resizable-panel/code.mdx +79 -0
- package/dist/docs/src/content/components/resizable-panel/examples.mdx +85 -0
- package/dist/docs/src/content/components/resizable-panel/meta.json +5 -0
- package/dist/docs/src/content/components/resizable-panel/usage.mdx +101 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/keyboard-and-focus.mdx +75 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +45 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +58 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +100 -11
- package/dist/docs/src/content/foundations/guidelines/content.mdx +11 -2
- package/dist/docs/src/content/foundations/index.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/border.mdx +10 -3
- package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/color/index.mdx +14 -2
- package/dist/docs/src/content/foundations/styles/color/palette.mdx +4 -4
- package/dist/docs/src/content/foundations/styles/color/tokens.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +25 -3
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +76 -0
- package/dist/docs/src/content/foundations/styles/elevation.mdx +7 -1
- package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/code.mdx +6 -18
- package/dist/docs/src/content/foundations/styles/icons/index.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/usage.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/interaction-states.mdx +82 -9
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +2 -4
- package/dist/docs/src/content/foundations/styles/layout/breakpoints.mdx +10 -7
- package/dist/docs/src/content/foundations/styles/layout/grid.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/layout/index.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +28 -37
- package/dist/docs/src/content/foundations/styles/layout/page-widths.mdx +4 -4
- package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +7 -7
- package/dist/docs/src/content/foundations/styles/logos/index.mdx +13 -2
- package/dist/docs/src/content/foundations/styles/logos/placement-and-containers.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/logos/product-logos.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +3 -1
- package/dist/docs/src/content/foundations/styles/motion.mdx +131 -3
- package/dist/docs/src/content/foundations/styles/opacity.mdx +7 -1
- package/dist/docs/src/content/foundations/styles/radius.mdx +63 -15
- package/dist/docs/src/content/foundations/styles/scrollbars.mdx +176 -0
- package/dist/docs/src/content/foundations/styles/size-and-density.mdx +16 -6
- package/dist/docs/src/content/foundations/styles/spacing.mdx +17 -3
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/typography/index.mdx +13 -3
- package/dist/docs/src/content/foundations/styles/typography/usage.mdx +5 -3
- package/dist/docs/src/content/foundations/styles/typography/vietnamese.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/z-index.mdx +4 -0
- package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +11 -0
- package/dist/docs/src/content/foundations/tokens/index.mdx +17 -9
- package/dist/docs/src/content/get-started/design.mdx +1 -1
- package/dist/docs/src/content/get-started/develop.mdx +2 -6
- package/dist/docs/src/content/get-started/index.mdx +1 -1
- package/dist/docs/src/content/release-phases/index.mdx +1 -1
- package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +457 -12
- package/dist/docs/src/content/tools/application-content.mdx +166 -32
- package/dist/docs/src/content/tools/editors.mdx +247 -3
- package/dist/docs/src/content/tools/eslint.mdx +1 -1
- package/dist/docs/src/content/tools/index.mdx +2 -2
- package/dist/docs/src/content/tools/mermaid.mdx +108 -13
- package/dist/docs/src/content/tools/vueflow.mdx +58 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/keyboard-and-focus.mdx +75 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +45 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +58 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility.mdx +108 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +34 -0
- package/dist/docs/src/content-vi/foundations/index.mdx +9 -0
- package/dist/docs/src/content-vi/foundations/styles/border.mdx +9 -3
- package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/color/index.mdx +14 -2
- package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +5 -5
- package/dist/docs/src/content-vi/foundations/styles/color/tokens.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +24 -2
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +7 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +6 -18
- package/dist/docs/src/content-vi/foundations/styles/icons/index.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +22 -8
- package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +3 -1
- package/dist/docs/src/content-vi/foundations/styles/layout/breakpoints.mdx +10 -7
- package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/layout/index.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +36 -0
- package/dist/docs/src/content-vi/foundations/styles/layout/page-widths.mdx +5 -1
- package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +7 -7
- package/dist/docs/src/content-vi/foundations/styles/logos/index.mdx +13 -2
- package/dist/docs/src/content-vi/foundations/styles/logos/placement-and-containers.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/logos/product-logos.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/logos/using-the-logo.mdx +3 -1
- package/dist/docs/src/content-vi/foundations/styles/motion.mdx +139 -0
- package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +8 -2
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +63 -15
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +16 -6
- package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +17 -3
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/typography/index.mdx +14 -4
- package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/typography/vietnamese.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +4 -0
- package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +47 -0
- package/dist/docs/src/content-vi/foundations/tokens/index.mdx +35 -0
- package/dist/docs/src/lib/i18n.ts +0 -1
- package/dist/docs/src/lib/token-descriptions-vi.ts +60 -9
- package/dist/docs/src/lib/tokens.ts +3 -0
- package/dist/docs/src/styles/chrome.css +10 -3
- package/dist/docs/src/styles/color.css +33 -23
- package/dist/docs/src/styles/docs.css +26 -28
- package/dist/docs/src/styles/elevation.css +4 -4
- package/dist/docs/src/styles/global.css +21 -1
- package/dist/docs/src/styles/icons.css +10 -9
- package/dist/docs/src/styles/kit.css +36 -32
- package/dist/docs/src/styles/layout.css +7 -7
- package/dist/docs/src/styles/motion.css +34 -0
- package/dist/docs/src/styles/opacity.css +3 -3
- package/dist/docs/src/styles/scrollbars.css +74 -0
- package/dist/docs/src/styles/shapes.css +21 -11
- package/dist/docs/src/styles/tokens.css +392 -12
- package/dist/docs/src/styles/tokens.js +185 -6
- package/dist/docs/src/styles/typography.css +4 -4
- package/dist/docs/src/styles/zindex.css +10 -7
- package/dist/docs/tokens/color.json +18 -1
- package/dist/docs/tokens/content.json +8 -3
- package/dist/docs/tokens/diagram.json +9 -3
- package/dist/docs/tokens/flow.json +2 -2
- package/dist/docs/tokens/layout.json +4 -0
- package/dist/docs/tokens/motion.json +37 -5
- package/dist/docs/tokens/radius.json +52 -8
- package/dist/docs/tokens/resize.json +12 -0
- package/dist/docs/tokens/scrollbar.json +40 -0
- package/dist/docs/tokens/size.json +1 -1
- package/dist/docs/tokens/spacing.json +31 -1
- package/dist/docs/tokens/switch.json +280 -0
- package/dist/index.js +602 -248
- package/package.json +1 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Active guidance for source-owned, state-preserving split panes.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Ownership and when to use
|
|
6
|
+
|
|
7
|
+
`ResizablePanel` comes from `@beehexa/vue-components`, owned by beehexa.design.
|
|
8
|
+
It is an implemented Vue 3 component, not an Ant Design Vue recipe or a
|
|
9
|
+
consumer-owned splitter. Its only runtime dependency is the source design-token
|
|
10
|
+
package; Vue 3.5+ is a peer. Use it for source/preview editors, diagram/workflow
|
|
11
|
+
panes, comparison surfaces and genuinely resizable drawer composition. Use native
|
|
12
|
+
layout primitives for ordinary static layout; do not make the app navigation
|
|
13
|
+
resizable.
|
|
14
|
+
|
|
15
|
+
## Bounded layout
|
|
16
|
+
|
|
17
|
+
Give the component a definite available height and width. Surrounding flex/grid
|
|
18
|
+
items must permit shrinkage with `min-width: 0` and `min-height: 0`; do not derive a
|
|
19
|
+
new container height from Monaco's content or a Mermaid SVG's intrinsic height.
|
|
20
|
+
The two panes plus the source-token divider gutter sum to the host's available
|
|
21
|
+
space. The gutter is a real in-flow sibling, not a hitbox over a pane scrollbar.
|
|
22
|
+
The handle fits inside that gutter, clear of clipped pane content and scroll targets.
|
|
23
|
+
At rest neither the root nor panes create a stacking context: nested fixed Monaco,
|
|
24
|
+
workflow or inspection overlays participate in their actual parent's overlay stack,
|
|
25
|
+
above the outer separator. Do not add permanent pane `z-index` or root isolation to
|
|
26
|
+
raise the handle; they trap a nested fullscreen below its sibling divider.
|
|
27
|
+
The pane wrappers are shrinkable column flex containers: a fill-layout Card,
|
|
28
|
+
editor or canvas can flex into the complete pane. Do not replace that flow with
|
|
29
|
+
intrinsic content sizing or add a second scroll owner around a bounded child.
|
|
30
|
+
|
|
31
|
+
`horizontal` means left/right panes; `vertical` means top/bottom panes. The
|
|
32
|
+
consumer selects direction using its existing breakpoint rules. There is no
|
|
33
|
+
hardcoded app breakpoint inside the library. Keep the same component and slot
|
|
34
|
+
children when direction changes on mobile, when fullscreen opens, or when a pane
|
|
35
|
+
is hidden.
|
|
36
|
+
|
|
37
|
+
## Preserve state
|
|
38
|
+
|
|
39
|
+
Bind the first-pane fraction of **pane space excluding the gutter** with `v-model:ratio`. `secondVisible=false` fills the
|
|
40
|
+
host with the first pane and hides/inerts the second without unmounting it. Showing
|
|
41
|
+
it restores the retained requested ratio. Zero-size panes also stay mounted:
|
|
42
|
+
use `min=0` when true edge collapse is intended. Do not key models, editors,
|
|
43
|
+
canvases or the panel on ratio, direction, visibility or resize-event dimensions.
|
|
44
|
+
Do not reset model contents, zoom or fullscreen merely to force measurement.
|
|
45
|
+
The focused separator owns its keys even while the pointer remains over a
|
|
46
|
+
native Workflow Canvas. Its existing native element carries the SDK's documented
|
|
47
|
+
`.nokey` opt-out; the marker is not placed on either pane or the panel root, so
|
|
48
|
+
graph navigation remains active inside the canvas. Do not intercept document
|
|
49
|
+
events, disable the graph keymap or add a consumer DOM patch to arbitrate them.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
`min` reserves CSS pixels for each pane, `max` caps the first pane, and
|
|
53
|
+
`minRatio`/`maxRatio` constrain its fraction. Pixel minima and maxima are calculated
|
|
54
|
+
after reserving the actual gutter, including reader/coarse-pointer scaling. If
|
|
55
|
+
the host cannot fit both pixel minima, those minima relax symmetrically rather
|
|
56
|
+
than causing overflow. Explicit maximums win incompatible minima. Temporary
|
|
57
|
+
constraints preserve the requested ratio. Equal effective bounds disable resizing
|
|
58
|
+
but retain the gutter; equal endpoint bounds additionally remove the gutter for
|
|
59
|
+
a retained fullscreen pane (`min=0`). Hiding the second pane also removes it.
|
|
60
|
+
|
|
61
|
+
For a full document page whose intrinsic heading can exhaust the available
|
|
62
|
+
height, `preserveMinimum` keeps the existing `min` allocation for each visible
|
|
63
|
+
pane plus the uncapped source interaction gutter along the active axis. The
|
|
64
|
+
ancestor document scroller must expose the resulting overflow. Hiding the second
|
|
65
|
+
pane retains only one minimum; direction changes move the constraint to the
|
|
66
|
+
other axis without remounting children. The default remains bounded, symmetric
|
|
67
|
+
minimum relaxation. This is not a readable-renderer minimum and must not force
|
|
68
|
+
mobile panes to the SDK surface's 350px-equivalent allocation.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## Divider, theme and feedback
|
|
72
|
+
|
|
73
|
+
The default visible divider line is centered at 90% cross-axis length, leaving 5%
|
|
74
|
+
at each end. Its handle stays centered at 50%, above both panes. The physical gutter
|
|
75
|
+
uses `resize.target` / `resize.touchTarget` and contains the complete pointer hit
|
|
76
|
+
region, keeping it off pane scrollbars. `resizerSize` changes only the visible line.
|
|
77
|
+
The handle contains **exactly three circular dots**, equally spaced and symmetric
|
|
78
|
+
about its own center on both axes: vertical for left/right panes, horizontal for
|
|
79
|
+
top/bottom panes. `resize.dot.size` and `resize.dot.pitch` own fixed ink geometry;
|
|
80
|
+
no repeating gradient, cropped remainder or consumer offset determines the count.
|
|
81
|
+
|
|
82
|
+
`resize.*` owns line/grip/background/active paint and handle geometry. Source
|
|
83
|
+
border and spacing tokens own focus and grip details. Import the package's typed
|
|
84
|
+
CSS entry once; it includes design-token CSS. Light/dark changes follow the
|
|
85
|
+
source root theme live, and rem-based geometry respects reader scaling. No
|
|
86
|
+
arbitrary AntD selector, body cursor or global high-z overlay is added. Only an active
|
|
87
|
+
pointer gesture temporarily isolates the root and panes beneath its local drag shield,
|
|
88
|
+
keeping editor/iframe content from intercepting that gesture. Gesture termination
|
|
89
|
+
removes the shield and its stacking contexts. Geometry never animates.
|
|
90
|
+
|
|
91
|
+
## Resize consumers
|
|
92
|
+
|
|
93
|
+
Listen to `resize` for measured pane dimensions **after layout**. Use those
|
|
94
|
+
measurements to ask retained Monaco/Mermaid/workflow instances to update their
|
|
95
|
+
layout. The payload contains ratio, direction, first/second width and height, and
|
|
96
|
+
`pointer`, `keyboard`, `container` or `programmatic` source. A hidden second pane
|
|
97
|
+
reports zero dimensions while the split ratio is retained. Interactive gestures
|
|
98
|
+
also emit `resize-start` and `resize-end`; container/programmatic updates do not
|
|
99
|
+
invent interactive lifecycles. See [Code](/components/resizable-panel/code/) for
|
|
100
|
+
the complete contract and [Accessibility](/components/resizable-panel/accessibility/)
|
|
101
|
+
for keyboard and naming requirements.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Keyboard and focus
|
|
3
|
+
description: Many people never use a mouse. How focus moves through a screen, how the focus ring looks, and which keys each kind of control uses.
|
|
4
|
+
order: 1
|
|
5
|
+
audience: Designers, developers
|
|
6
|
+
updated: 2026-11-04
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Many people never touch a mouse: people who use a screen reader, people with a tremor or a broken wrist, and people who work faster with shortcuts. For them, the keyboard is the whole interface.
|
|
10
|
+
|
|
11
|
+
## Focus order
|
|
12
|
+
|
|
13
|
+
**Focus moves in the order people read: top to bottom, start to end of each line.**
|
|
14
|
+
|
|
15
|
+
- In designs, number the Tab stops, so the build follows the same order.
|
|
16
|
+
- Keep the DOM order the same as the visual order. Do not fix the order with a positive `tabindex`.
|
|
17
|
+
- Start every page with a "Skip to content" link that jumps past the header and side navigation.
|
|
18
|
+
- Only things people can act on take focus. Use `tabindex="0"` on a custom control or a scrollable region, never on text or headings.
|
|
19
|
+
- A region that scrolls sideways, such as a wide table, takes focus so people can scroll it with the arrow keys. Give it a name with `aria-label`.
|
|
20
|
+
|
|
21
|
+
## The focus ring
|
|
22
|
+
|
|
23
|
+
**Keyboard focus is always visible: a 2 px ring, 2 px away from the element.**
|
|
24
|
+
|
|
25
|
+
| Part | Token | Value |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| Colour | `color.border.focus` | Blue, at least 3:1 against the page in light and dark |
|
|
28
|
+
| Width | `border.width.focused` | 2 px |
|
|
29
|
+
| Gap | `state.focus.offset` | 2 px |
|
|
30
|
+
|
|
31
|
+
- Show the ring on `:focus-visible`, so a mouse click does not draw it but the keyboard always does.
|
|
32
|
+
- Never remove the outline without putting the same ring back.
|
|
33
|
+
- The ring is never yellow: the brand yellow is too light on white to be seen.
|
|
34
|
+
- A sticky header, drawer or toast must not cover the element that has focus. Leave room with `scroll-padding-top`.
|
|
35
|
+
|
|
36
|
+
## Moving focus
|
|
37
|
+
|
|
38
|
+
**When something opens, focus goes into it. When it closes, focus goes back to what opened it.**
|
|
39
|
+
|
|
40
|
+
| When | Focus goes to | When it closes |
|
|
41
|
+
| --- | --- | --- |
|
|
42
|
+
| A dialog opens | The first field, or the dialog's heading if it has no field | Back to the button that opened it |
|
|
43
|
+
| A drawer or menu opens | The first item | Back to the button that opened it |
|
|
44
|
+
| A toast appears | Stays where it is; the toast is announced | Nothing moves |
|
|
45
|
+
| An item is deleted from a list | The next item, or the list's heading if it was the last | |
|
|
46
|
+
| A page loads after a form is sent | The page heading, or the first error | |
|
|
47
|
+
|
|
48
|
+
- A dialog keeps focus inside it until it closes. Escape closes it.
|
|
49
|
+
- Never let focus fall back to the top of the page. If the element that had focus disappears, move focus to the nearest one that makes sense.
|
|
50
|
+
|
|
51
|
+
## Keys for each kind of control
|
|
52
|
+
|
|
53
|
+
Beehexa components follow the [WAI-ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/patterns/), the W3C guide to how each kind of control behaves with a keyboard and a screen reader. A group of controls, such as tabs or a menu, is one Tab stop; the arrow keys move inside it.
|
|
54
|
+
|
|
55
|
+
| Pattern | Keys | Pattern page |
|
|
56
|
+
| --- | --- | --- |
|
|
57
|
+
| Button | <kbd>Enter</kbd> or <kbd>Space</kbd> activates | [Button](https://www.w3.org/WAI/ARIA/apg/patterns/button/) |
|
|
58
|
+
| Link | <kbd>Enter</kbd> follows | [Link](https://www.w3.org/WAI/ARIA/apg/patterns/link/) |
|
|
59
|
+
| Checkbox, switch | <kbd>Space</kbd> toggles | [Checkbox](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/), [Switch](https://www.w3.org/WAI/ARIA/apg/patterns/switch/) |
|
|
60
|
+
| Radio group | Arrow keys move and select; Tab leaves the group | [Radio group](https://www.w3.org/WAI/ARIA/apg/patterns/radio/) |
|
|
61
|
+
| Tabs | Left and Right move between tabs; Home and End jump to the first and last | [Tabs](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/) |
|
|
62
|
+
| Menu | Up and Down move; Enter chooses; Escape closes | [Menu button](https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/) |
|
|
63
|
+
| Select, combobox | Up and Down move through options; Enter chooses; Escape closes the list, then clears | [Combobox](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/) |
|
|
64
|
+
| Dialog | Tab cycles inside; Escape closes | [Dialog](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/) |
|
|
65
|
+
| Disclosure, accordion | <kbd>Enter</kbd> or <kbd>Space</kbd> opens and closes | [Disclosure](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/), [Accordion](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/) |
|
|
66
|
+
| Data table | Tab reaches the controls inside rows; a sortable header is a button | [Table](https://www.w3.org/WAI/ARIA/apg/patterns/table/) |
|
|
67
|
+
|
|
68
|
+
Each component's Accessibility tab, such as [Button](/components/button/accessibility/), lists its exact keys and any difference from its pattern.
|
|
69
|
+
|
|
70
|
+
## Shortcuts
|
|
71
|
+
|
|
72
|
+
- Every shortcut has another way to do the same thing, such as a button or a menu item.
|
|
73
|
+
- Use <kbd>Ctrl</kbd> or <kbd>⌘</kbd> with a letter. A single-letter shortcut must be possible to turn off or remap (WCAG 2.1.4).
|
|
74
|
+
- Do not take over keys that browsers and screen readers use, such as <kbd>Ctrl</kbd> <kbd>F</kbd> or the arrow keys outside a widget.
|
|
75
|
+
- Show shortcuts in tooltips and menus, so people learn them.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Accessibility statement
|
|
3
|
+
description: The standard Beehexa builds to, how it is checked, the issues we know about and how to tell us about a problem.
|
|
4
|
+
order: 3
|
|
5
|
+
sidebarLabel: Statement
|
|
6
|
+
audience: Everyone
|
|
7
|
+
updated: 2026-11-04
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
This statement covers beehexa.design and the Beehexa components documented on it. It was last reviewed on 4 November 2026.
|
|
11
|
+
|
|
12
|
+
Beehexa wants everyone to be able to use this site and the products built with it, whatever their abilities and however they work: with a keyboard, a screen reader, magnification or voice control.
|
|
13
|
+
|
|
14
|
+
## Standard
|
|
15
|
+
|
|
16
|
+
This site and the Beehexa components are built to **WCAG 2.2 level AA**, with the stricter Beehexa rules for contrast, focus, touch targets and motion listed in [Accessibility](/foundations/guidelines/accessibility/#beehexa-rules). Beehexa products build on these components and aim for the same level; each product team is responsible for its own screens.
|
|
17
|
+
|
|
18
|
+
Anything on this site that does not meet this standard is listed under [Known issues](#known-issues).
|
|
19
|
+
|
|
20
|
+
WCAG 2.2 AA also covers the web requirements of other standards customers often ask about:
|
|
21
|
+
|
|
22
|
+
| Standard | Where it applies | How it relates |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| EN 301 549 V4.1.1 | European Union, including the European Accessibility Act | Its web and software requirements follow WCAG 2.2 AA, plus a few extra clauses such as respecting user settings |
|
|
25
|
+
| [Section 508](https://www.section508.gov/) | United States federal purchasing | Follows WCAG 2.0 AA, which WCAG 2.2 AA includes |
|
|
26
|
+
|
|
27
|
+
This table explains how the standards relate. It is not a claim of conformance to EN 301 549 or Section 508; the conformance report is.
|
|
28
|
+
|
|
29
|
+
## How we check
|
|
30
|
+
|
|
31
|
+
- **Every build** checks every text, icon and border colour pair for contrast in light and dark. A pair that fails stops the build.
|
|
32
|
+
- **Every change** to a page or a component is checked with axe, with the keyboard, at 200% zoom and at 320 px wide before it is published.
|
|
33
|
+
- **Every major release** is tested with NVDA, JAWS, VoiceOver and TalkBack, as listed in [Testing](/foundations/guidelines/accessibility/testing/#screen-readers-and-browsers).
|
|
34
|
+
|
|
35
|
+
## Known issues
|
|
36
|
+
|
|
37
|
+
| Area | Issue | Status |
|
|
38
|
+
| --- | --- | --- |
|
|
39
|
+
| Vietnamese pages | Pages without a Vietnamese text show the English text, marked as English for screen readers. | In progress |
|
|
40
|
+
| Conformance report | The first accessibility conformance report (ACR), in the VPAT® format, will cover this site and Button and will be published on this page. | Planned |
|
|
41
|
+
| Screen readers | This site and Button have not been tested with NVDA, JAWS, VoiceOver or TalkBack. | Planned |
|
|
42
|
+
|
|
43
|
+
## Feedback
|
|
44
|
+
|
|
45
|
+
If anything on this site or in a component is hard to use with a keyboard, a screen reader, zoom or any other way you work, we want to know. Write to [hello@beehexa.com](mailto:hello@beehexa.com?subject=Accessibility%20feedback). Say which page or component, what you tried and what happened. Confirmed problems are added to the known issues above.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Testing
|
|
3
|
+
description: What to check before a screen ships, who checks it, and which tools and screen readers to use.
|
|
4
|
+
order: 2
|
|
5
|
+
audience: Designers, developers
|
|
6
|
+
updated: 2026-11-04
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
**Check accessibility while you design and build, not at the end.** A missing label costs a minute in Figma and a day after release.
|
|
10
|
+
|
|
11
|
+
## Before handoff (designers)
|
|
12
|
+
|
|
13
|
+
- **Contrast**: text and icons use the token pairs listed in [Color › Accessibility](/foundations/styles/color/accessibility/). Check text on images and charts by hand.
|
|
14
|
+
- **Colour alone**: every status, error and selection has a word, an icon or a second cue.
|
|
15
|
+
- **Focus order**: number the Tab stops on the frame. Mark where focus goes when a dialog, drawer or menu opens and closes.
|
|
16
|
+
- **Names**: write what a screen reader should say for every icon button and image. Mark decorative images as decorative.
|
|
17
|
+
- **Headings and landmarks**: mark the page title (one H1), section headings in order, and the header, navigation and main areas.
|
|
18
|
+
- **States**: design hover, focus, pressed, selected, disabled, loading, empty and error.
|
|
19
|
+
- **Sizes**: controls are at least 24 px; on touch screens, at least 44 px to tap.
|
|
20
|
+
- **Text**: check long Vietnamese strings, 200% text size and the 320 px width.
|
|
21
|
+
|
|
22
|
+
## Before merge (developers)
|
|
23
|
+
|
|
24
|
+
- **Automated check**: run axe (browser extension or the test runner) on every new screen. Zero violations at WCAG 2.2 AA.
|
|
25
|
+
- **Keyboard**: put the mouse away. Reach and use every control with Tab, Shift Tab, the arrow keys, Enter, Space and Escape. The focus ring is always visible and never lost.
|
|
26
|
+
- **Zoom**: at 200% browser zoom and at 320 px wide, nothing is cut off and nothing scrolls sideways except tables and code.
|
|
27
|
+
- **Themes and motion**: check light, dark and reduced motion.
|
|
28
|
+
- **Screen reader**: go through the main task with one screen reader from the list below. Every control says its name, role and state; changes such as "Saved" are announced.
|
|
29
|
+
- **Language**: the page has the right `lang`; a Vietnamese voice reads Vietnamese text with its tones.
|
|
30
|
+
|
|
31
|
+
## Screen readers and browsers
|
|
32
|
+
|
|
33
|
+
Test with at least one pair on the platform your users use most. Before a major release, test all of them.
|
|
34
|
+
|
|
35
|
+
| Screen reader | Browser | Platform |
|
|
36
|
+
| --- | --- | --- |
|
|
37
|
+
| NVDA | Firefox or Chrome | Windows |
|
|
38
|
+
| JAWS | Chrome | Windows |
|
|
39
|
+
| VoiceOver | Safari | macOS |
|
|
40
|
+
| VoiceOver | Safari | iOS |
|
|
41
|
+
| TalkBack | Chrome | Android |
|
|
42
|
+
|
|
43
|
+
## Tools
|
|
44
|
+
|
|
45
|
+
| Tool | Use it for |
|
|
46
|
+
| --- | --- |
|
|
47
|
+
| axe DevTools or the axe test runner | Automated WCAG checks on a page or in tests |
|
|
48
|
+
| Browser developer tools | Accessibility tree, contrast picker, emulating reduced motion and dark mode |
|
|
49
|
+
| Accessibility Insights | Guided keyboard and tab-stop checks |
|
|
50
|
+
| A colour contrast checker | Text on images, charts and anything outside the token pairs |
|
|
51
|
+
|
|
52
|
+
## With people
|
|
53
|
+
|
|
54
|
+
Tools cannot tell you whether a task is easy. Ask people who use a screen reader, magnification or a keyboard to try the main tasks of your product, and fix what slows them down first.
|
|
55
|
+
|
|
56
|
+
## Report a problem
|
|
57
|
+
|
|
58
|
+
Found something in a Beehexa component or on this site? Use the feedback link at the bottom of the page, or write to [hello@beehexa.com](mailto:hello@beehexa.com?subject=Accessibility%20feedback). Confirmed problems go on the list of [known issues](/foundations/guidelines/accessibility/statement/#known-issues) until they are fixed.
|
|
@@ -1,19 +1,108 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Accessibility
|
|
3
|
-
description:
|
|
3
|
+
description: Accessible products work for more people, in more situations. Learn how to design, build and write them with Beehexa.
|
|
4
4
|
order: 1
|
|
5
|
+
sidebarLabel: Overview
|
|
6
|
+
audience: Designers, developers, writers
|
|
7
|
+
updated: 2026-11-04
|
|
5
8
|
---
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
Picture the people who use HexaSync on an ordinary day. A store owner checks last night's orders with a screen reader. A developer fixes a sync error with only the keyboard. An accountant reads the dashboard on her phone in bright sunlight, in her second language.
|
|
8
11
|
|
|
9
|
-
Every
|
|
12
|
+
Every one of them should be able to finish the job. When they can, the product becomes clearer and faster for everyone else too.
|
|
10
13
|
|
|
11
|
-
##
|
|
14
|
+
## How Beehexa helps
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
Beehexa components and this site meet [WCAG 2.2](https://www.w3.org/TR/WCAG22/) level AA, the international standard for accessible web content. In the four places that matter most, Beehexa asks for more: those are the [Beehexa rules](#beehexa-rules) below.
|
|
17
|
+
|
|
18
|
+
Start from the components and much of the work is done for you: colours with enough contrast, a focus ring you can always see, targets large enough to tap, and keyboard behaviour that follows the [WAI-ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/patterns/). Each component's Accessibility tab shows its keys and what is left for your team.
|
|
19
|
+
|
|
20
|
+
What a component cannot decide is how a screen fits together and what it says. That part is yours, and this page shows how. The [accessibility statement](/foundations/guidelines/accessibility/statement/) lists the standards we follow, known issues and how to report a problem.
|
|
21
|
+
|
|
22
|
+
## Who we design for
|
|
23
|
+
|
|
24
|
+
Disability is not only something people live with for years. A broken wrist lasts six weeks. A noisy warehouse hides every sound. Sunlight on a phone washes out colour. Design for the whole range, and the same screen works for all of them.
|
|
25
|
+
|
|
26
|
+
| Need | Permanent | Temporary | Situational | What helps |
|
|
27
|
+
| --- | --- | --- | --- | --- |
|
|
28
|
+
| Seeing | Blind, low vision, colour blind | Eye strain, a migraine | Sunlight on the screen, a small phone | Strong contrast, a word or icon with every colour, alt text, zoom that does not break the layout |
|
|
29
|
+
| Hearing | Deaf, hard of hearing | An ear infection | A noisy office or warehouse, no headphones | Captions and transcripts, a visible message for every sound |
|
|
30
|
+
| Moving | Limited use of the hands, tremor | A broken wrist | A phone in one hand, a moving vehicle | Keyboard access, large targets, no time limits, no drag-only actions |
|
|
31
|
+
| Thinking and focus | Dyslexia, ADHD, memory loss | Stress, tiredness, side effects of medicine | Interruptions, working in a second language | Plain words, short steps, clear headings, errors that say how to fix them, a warning before big changes |
|
|
32
|
+
|
|
33
|
+
## Principles
|
|
34
|
+
|
|
35
|
+
**Start from Beehexa components.** Contrast, focus, target size and keyboard support come built in. A custom control has to do all of that by hand, so make one only when no component fits.
|
|
36
|
+
|
|
37
|
+
**Make everything work with a keyboard.** Some people cannot use a mouse at all. If a mouse can do it, the keyboard can too, in the order people read. [Keyboard and focus](/foundations/guidelines/accessibility/keyboard-and-focus/) shows how.
|
|
38
|
+
|
|
39
|
+
**Never rely on colour alone.** About 1 in 12 men cannot tell some colours apart. "Failed" in red is clear to everyone; a red dot on its own is not.
|
|
40
|
+
|
|
41
|
+
**Give every control a clear name.** Use a visible label. A button with only an icon needs a name a screen reader can say, such as "Delete store", not "Trash".
|
|
42
|
+
|
|
43
|
+
**Write plainly, in Vietnamese and in English.** Short sentences, everyday words, one idea at a time. Many people read the product in their second language, so skip idioms and slang, and explain a term the first time it appears. See [Content](/foundations/guidelines/content/).
|
|
44
|
+
|
|
45
|
+
**Let people set up the screen their way.** People zoom in, switch to dark mode and turn motion off. The page keeps working at 200% zoom and at 320 px wide without scrolling sideways, in light and dark, with motion off.
|
|
46
|
+
|
|
47
|
+
**Use the right element in code.** A button is a `<button>`, a link is an `<a>`, and headings go from `<h1>` to `<h4>` in order. Screen reader users move around by headings and landmarks (`header`, `nav`, `main`, `footer`); a `div` that only looks like one of these is invisible to them.
|
|
48
|
+
|
|
49
|
+
**Warn before big changes.** Deleting a store, stopping a sync or sending data to another system cannot always be taken back. Say what will happen and ask people to confirm, or let them undo it. Nothing important changes just because focus moved or someone is still typing.
|
|
50
|
+
|
|
51
|
+
**Check with tools and with people.** Automated checks find some of the problems. A keyboard, a screen reader and the people who use them every day find the rest. [Testing](/foundations/guidelines/accessibility/testing/) shows how.
|
|
52
|
+
|
|
53
|
+
## Beehexa rules
|
|
54
|
+
|
|
55
|
+
WCAG 2.2 AA is where we start. In four places Beehexa asks for more, because these are the problems people meet most often.
|
|
56
|
+
|
|
57
|
+
| Rule | What Beehexa asks | Why | Based on |
|
|
58
|
+
| --- | --- | --- | --- |
|
|
59
|
+
| Contrast | Text at least 4.5:1; large text and UI parts at least 3:1. Text people read in full, such as body text, labels and links, at least 7:1: use `color.text`, `color.text.subtle` or a link colour. `color.text.subtlest` (4.5:1) is only for short extra text such as timestamps and hints. | Long text is tiring to read when it is pale, more so on a phone in daylight | WCAG 1.4.3, 1.4.11; 1.4.6 for body text |
|
|
60
|
+
| Focus | Always visible: a 2 px ring in `color.border.focus`, 2 px away from the element (`border.width.focused`, `state.focus.offset`). | Keyboard users need to see where they are at every step | WCAG 2.4.7; 2.4.13 |
|
|
61
|
+
| Target size | At least 24 × 24 px with a mouse. On touch screens, at least 44 × 44 px (`size.target.touch`). See [Size and density](/foundations/styles/size-and-density/#target-size). | A fingertip is less precise than a pointer | WCAG 2.5.8; 2.5.5 on touch screens |
|
|
62
|
+
| Motion | When someone turns on reduced motion, movement that is not needed stops. See [Motion](/foundations/styles/motion/). | Movement can make some people dizzy or sick | WCAG 2.3.3 |
|
|
63
|
+
|
|
64
|
+
## Images, video and sound
|
|
65
|
+
|
|
66
|
+
People who cannot see or hear a piece of content need the same information in another form.
|
|
67
|
+
|
|
68
|
+
| Content | Do |
|
|
69
|
+
| --- | --- |
|
|
70
|
+
| Image that carries information | Alt text that says what the image tells, not what it looks like: "Sync failed for 3 of 12 stores", not "Chart". |
|
|
71
|
+
| Decorative image, or an icon next to its own label | Empty alt (`alt=""`) or `aria-hidden="true"`, so it is not read twice. |
|
|
72
|
+
| Button with only an icon | A name that says the action, such as "Delete store". |
|
|
73
|
+
| Chart | A short summary in text, and the data as a table. |
|
|
74
|
+
| Video | Captions, and a transcript next to it. No autoplay with sound. |
|
|
75
|
+
| Audio or a sound alert | A transcript, and a visible message for every sound. |
|
|
76
|
+
| Text in an image | Avoid it. Use real text, so people can zoom, translate and listen to it. |
|
|
77
|
+
|
|
78
|
+
## Who does what
|
|
79
|
+
|
|
80
|
+
| Beehexa gives you | Your team does |
|
|
81
|
+
| --- | --- |
|
|
82
|
+
| Colour pairs that pass contrast in light and dark | Use the pairs as listed; check text on images and charts |
|
|
83
|
+
| Components with keyboard support, a focus ring and the right roles for screen readers | Put them in a sensible order and keep focus where people expect it |
|
|
84
|
+
| A 2 px focus ring and 44 px touch targets | Keep the ring visible and the targets full size |
|
|
85
|
+
| Label and error styles | Write the label, the error message and the alt text |
|
|
86
|
+
| Light, dark and reduced-motion support | Check your own screens in each of them |
|
|
87
|
+
|
|
88
|
+
## Before you ship
|
|
89
|
+
|
|
90
|
+
Ask these questions about every screen. [Testing](/foundations/guidelines/accessibility/testing/) explains how to check each one.
|
|
91
|
+
|
|
92
|
+
- Can you read every text, and see every icon and border, in light and in dark?
|
|
93
|
+
- Can you do everything with only a keyboard, in a sensible order?
|
|
94
|
+
- Can you always see where the keyboard focus is, even next to a sticky header or an open drawer?
|
|
95
|
+
- On a phone, is every control easy to tap?
|
|
96
|
+
- Does every control and every meaningful image say what it is?
|
|
97
|
+
- Do statuses and errors use words, not only colour, and do errors say how to fix the problem?
|
|
98
|
+
- Do the headings go in order, and does the page have a header, navigation, main content and footer?
|
|
99
|
+
- Does the page work at 320 px wide and at 200% zoom without scrolling sideways?
|
|
100
|
+
- Does movement stop when reduced motion is on?
|
|
101
|
+
- Do deleting, disconnecting and sending data ask first, or can people undo them?
|
|
102
|
+
- Is the page language set (`lang="vi"` or `lang="en"`), and are passages in the other language marked?
|
|
103
|
+
|
|
104
|
+
## In this section
|
|
105
|
+
|
|
106
|
+
- [Keyboard and focus](/foundations/guidelines/accessibility/keyboard-and-focus/): the order focus moves in, how the focus ring looks, and the keys each kind of component uses.
|
|
107
|
+
- [Testing](/foundations/guidelines/accessibility/testing/): what to check before a screen ships, who checks it, and with which tools.
|
|
108
|
+
- [Accessibility statement](/foundations/guidelines/accessibility/statement/): the standards we follow, the issues we know about and how to report a problem.
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Content
|
|
3
|
-
description:
|
|
3
|
+
description: Words are most of the interface. Write product copy that is clear, short and the same everywhere, in English and in Vietnamese.
|
|
4
4
|
order: 2
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
People don't read an interface; they scan it for the next thing to do. Every label, message and empty state either helps them do it or slows them down.
|
|
8
|
+
|
|
7
9
|
## Voice
|
|
8
10
|
|
|
9
|
-
Clear, direct and helpful. Write for busy people who manage data across many systems.
|
|
11
|
+
Clear, direct and helpful. Write for busy people who manage data across many systems: say what happened and what to do next, in as few words as it takes.
|
|
10
12
|
|
|
11
13
|
## Rules
|
|
12
14
|
|
|
@@ -15,6 +17,8 @@ Clear, direct and helpful. Write for busy people who manage data across many sys
|
|
|
15
17
|
- Keep one name for one thing across the product.
|
|
16
18
|
- Use numerals for numbers: "3 orders failed".
|
|
17
19
|
- Avoid jargon unless your readers use it.
|
|
20
|
+
- Write plainly: short sentences, everyday words, one idea at a time. Many people read the product in their second language.
|
|
21
|
+
- Write every status in words. Colour and icons support the words; they never replace them.
|
|
18
22
|
|
|
19
23
|
## Messages
|
|
20
24
|
|
|
@@ -23,3 +27,8 @@ Clear, direct and helpful. Write for busy people who manage data across many sys
|
|
|
23
27
|
| Error | What happened, why, and how to fix it. |
|
|
24
28
|
| Empty state | What will appear here and how to add the first item. |
|
|
25
29
|
| Confirmation | The action and its consequence: "Delete 3 orders? This can't be undone." |
|
|
30
|
+
|
|
31
|
+
## Related
|
|
32
|
+
|
|
33
|
+
- [Accessibility](/foundations/guidelines/accessibility/): names for controls, alt text and plain language.
|
|
34
|
+
- [Typography usage](/foundations/styles/typography/usage/): text styles, sentence case and long text.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Foundations
|
|
3
|
-
description:
|
|
3
|
+
description: The shared decisions behind every Beehexa screen. Learn them once and every product feels familiar.
|
|
4
4
|
order: 0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Foundations are the decisions every Beehexa
|
|
7
|
+
Foundations are the decisions every Beehexa screen shares: the colours, type, spacing, shapes and motion people see, and the guidelines that make products clear and accessible. Because every product starts from the same foundations, people who know one Beehexa product already know their way around the next.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
They come in three groups. **Design tokens** hold the values. **Guidelines** cover how people read and use a screen. **Styles** explain each visual element and when to use it.
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Border
|
|
3
|
-
description:
|
|
3
|
+
description: Borders separate and outline. Most are 1 px; a thicker line means selected, focused or a status to notice.
|
|
4
4
|
order: 7
|
|
5
5
|
---
|
|
6
6
|
import ShapeDemo from '../../../components/ShapeDemo.astro';
|
|
7
7
|
import TokenTable from '../../../components/TokenTable.astro';
|
|
8
8
|
|
|
9
|
+
Borders draw the edges people rely on: where a field starts, where one card ends and another begins, where the keyboard is right now.
|
|
10
|
+
|
|
9
11
|
**Most borders are 1 px. Thicker lines mean something: selected, focused, or a status to notice.**
|
|
10
12
|
|
|
11
13
|
Border colours are colour tokens: `color.border` for dividers and cards, `color.border.bold` for the edges of inputs, checkboxes and selects. See [Tokens](/foundations/styles/color/tokens/#borders).
|
|
12
14
|
|
|
15
|
+
An interactive bordered card keeps its frame on hover: strengthen it to
|
|
16
|
+
`color.border.bold` and add `elevation.shadow.raised`, never transparency or a
|
|
17
|
+
fading border. Keyboard focus adds the existing focus ring without removing the
|
|
18
|
+
frame. Cards and callouts use `radius.100` (8 px).
|
|
19
|
+
|
|
13
20
|
## The widths
|
|
14
21
|
|
|
15
22
|
<ShapeDemo kind="border-scale" />
|
|
@@ -18,7 +25,7 @@ Border colours are colour tokens: `color.border` for dividers and cards, `color.
|
|
|
18
25
|
|
|
19
26
|
### `border.width.default` · 1 px
|
|
20
27
|
|
|
21
|
-
Inputs,
|
|
28
|
+
Inputs, default buttons, cards, tables and dividers.
|
|
22
29
|
|
|
23
30
|
<ShapeDemo kind="border-use" item="default" />
|
|
24
31
|
|
|
@@ -85,5 +92,5 @@ Don't show a state with colour alone. Selected and focused also change the width
|
|
|
85
92
|
|
|
86
93
|
## Related
|
|
87
94
|
|
|
88
|
-
- [Radius](/foundations/styles/radius/): corner
|
|
95
|
+
- [Radius](/foundations/styles/radius/): corner role steps and functional geometry.
|
|
89
96
|
- [Interaction states](/foundations/styles/interaction-states/): hover, pressed, selected and disabled.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Accessibility
|
|
3
|
-
description:
|
|
3
|
+
description: Every colour pair in Beehexa stays readable in light and dark. See which text sits on which background, and how contrast is checked.
|
|
4
4
|
order: 6
|
|
5
5
|
---
|
|
6
6
|
import ColorDemo from '../../../../components/ColorDemo.astro';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
People read Beehexa screens on bright monitors, dim laptops and phones in the sun. Contrast keeps the text readable on all of them.
|
|
9
|
+
|
|
10
|
+
**Every text, icon and border token passes WCAG 2.2 AA on every background it is paired with, in light and in dark.**
|
|
9
11
|
|
|
10
12
|
## Contrast
|
|
11
13
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Dark mode
|
|
3
|
-
description:
|
|
3
|
+
description: Dark mode is easier on the eyes in low light. Name each colour token once and it works in both themes.
|
|
4
4
|
order: 5
|
|
5
5
|
---
|
|
6
6
|
import ColorDemo from '../../../../components/ColorDemo.astro';
|
|
7
7
|
|
|
8
|
-
**
|
|
8
|
+
Many people switch to dark mode at night, and some prefer it all day. Supporting it costs nothing extra: **write each token once; the theme changes the value.**
|
|
9
9
|
|
|
10
10
|
<ColorDemo kind="themes" />
|
|
11
11
|
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Color
|
|
3
|
-
description:
|
|
3
|
+
description: Colour tells people what matters, what happened and where they are. Beehexa colour is calm graphite, a touch of brand yellow and four colours for status.
|
|
4
4
|
order: 1
|
|
5
5
|
sidebarLabel: Overview
|
|
6
6
|
---
|
|
7
7
|
import ColorDemo from '../../../../components/ColorDemo.astro';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
A screen full of colour tells people nothing. Beehexa screens are mostly graphite and white, so the few colours left carry meaning: yellow for the brand, and red, orange, green and blue for status. When a sync fails, the red is the first thing people see.
|
|
10
|
+
|
|
11
|
+
You never pick a colour by its value. You pick a token by its job, such as `color.text` or `color.background.danger.bold`, and it is right in light and in dark.
|
|
10
12
|
|
|
11
13
|
<ColorDemo kind="balance" />
|
|
12
14
|
|
|
@@ -63,3 +65,13 @@ Use role tokens only. Never a hex value, and never a step of a scale such as `co
|
|
|
63
65
|
The primary button is graphite. Every other button is a default button. There is no yellow button.
|
|
64
66
|
|
|
65
67
|
<ColorDemo kind="dodont" item="primary" />
|
|
68
|
+
|
|
69
|
+
## In this section
|
|
70
|
+
|
|
71
|
+
| Page | What is in it |
|
|
72
|
+
|---|---|
|
|
73
|
+
| [Usage](/foundations/styles/color/usage/) | The token for each part of a screen, status colours, labels and interaction states. |
|
|
74
|
+
| [Palette](/foundations/styles/color/palette/) | Every scale and step, what each is for, and the contrast each step guarantees. |
|
|
75
|
+
| [Tokens](/foundations/styles/color/tokens/) | How token names are built, and every role token in light and dark. |
|
|
76
|
+
| [Dark mode](/foundations/styles/color/dark-mode/) | How the dark theme works and what to check in it. |
|
|
77
|
+
| [Accessibility](/foundations/styles/color/accessibility/) | Contrast minimums and which text goes on which background. |
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Palette
|
|
3
|
-
description:
|
|
3
|
+
description: Six colour scales of twelve steps each, in light and dark. Every step has one job, so contrast is built in.
|
|
4
4
|
order: 3
|
|
5
5
|
---
|
|
6
6
|
import ColorDemo from '../../../../components/ColorDemo.astro';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
The palette is the raw material of every colour in Beehexa: six scales of twelve steps, each tuned for light and dark. Products never use it directly. It feeds the role tokens, which is why a button keeps its contrast in both themes.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
**The palette feeds the role tokens. Products use the role tokens, never a palette step directly.** Hover a swatch to see its token name.
|
|
11
11
|
|
|
12
12
|
<ColorDemo kind="palette" />
|
|
13
13
|
|
|
@@ -22,7 +22,7 @@ Six scales of twelve steps. Hover a swatch to see its token name.
|
|
|
22
22
|
| Orange | Warning | Anything else |
|
|
23
23
|
| Red | Danger | Anything else |
|
|
24
24
|
|
|
25
|
-
There is no purple, pink or teal. Charts
|
|
25
|
+
There is no purple, pink or teal. Charts use the same scales. Before giving a chart colours of its own, talk to the design system team.
|
|
26
26
|
|
|
27
27
|
## What each step is for
|
|
28
28
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Tokens
|
|
3
|
-
description:
|
|
3
|
+
description: "Every colour token name reads like a short sentence: what is painted, what it means, how strong it is and what is happening."
|
|
4
4
|
order: 4
|
|
5
5
|
---
|
|
6
6
|
import ColorDemo from '../../../../components/ColorDemo.astro';
|
|
7
7
|
|
|
8
|
-
**Every colour token name says what is painted, what it means, how strong it is and what is happening.**
|
|
8
|
+
**Every colour token name says what is painted, what it means, how strong it is and what is happening.** Once you can read a name, you can usually guess the token you need without looking it up.
|
|
9
9
|
|
|
10
10
|
## How names are built
|
|
11
11
|
|