@beehexa/design-rules 2611.5.5 → 2611.8.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/AGENTS.md +1 -1
- package/dist/catalog.json +3053 -777
- package/dist/docs/public/_redirects +2 -2
- package/dist/docs/public/r/action-bar.json +26 -0
- package/dist/docs/public/r/beehexa-theme.json +18 -0
- package/dist/docs/public/r/button-group.json +26 -0
- package/dist/docs/public/r/button.json +28 -0
- package/dist/docs/public/r/copy-button.json +26 -0
- package/dist/docs/public/r/dropdown-menu.json +56 -0
- package/dist/docs/public/r/index.json +66 -0
- package/dist/docs/public/r/segmented-control.json +31 -0
- package/dist/docs/public/r/toggle.json +26 -0
- package/dist/docs/public/r/toolbar.json +46 -0
- package/dist/docs/public/r/tooltip.json +41 -0
- package/dist/docs/scripts/color-pairs.mjs +2 -0
- package/dist/docs/src/components/ChildPages.astro +8 -1
- package/dist/docs/src/components/CodeExample.astro +123 -6
- package/dist/docs/src/components/ColorDemo.astro +21 -18
- package/dist/docs/src/components/ComponentTabs.astro +1 -1
- package/dist/docs/src/components/DocsFooter.astro +1 -1
- package/dist/docs/src/components/ElevationDemo.astro +2 -2
- 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 +169 -44
- 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 +25 -37
- package/dist/docs/src/components/SiteHeader.astro +1 -1
- package/dist/docs/src/components/SpacingDemo.astro +5 -3
- 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/action-bar/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/action-bar/changelog.mdx +7 -0
- package/dist/docs/src/content/components/action-bar/code.mdx +69 -0
- package/dist/docs/src/content/components/action-bar/examples.mdx +16 -0
- package/dist/docs/src/content/components/action-bar/meta.json +9 -0
- package/dist/docs/src/content/components/action-bar/style.mdx +13 -0
- package/dist/docs/src/content/components/action-bar/usage.mdx +35 -0
- package/dist/docs/src/content/components/button/accessibility.mdx +10 -5
- package/dist/docs/src/content/components/button/changelog.mdx +26 -1
- package/dist/docs/src/content/components/button/code.mdx +130 -25
- package/dist/docs/src/content/components/button/examples.mdx +109 -23
- package/dist/docs/src/content/components/button/meta.json +5 -1
- package/dist/docs/src/content/components/button/style.mdx +72 -0
- package/dist/docs/src/content/components/button/usage.mdx +118 -29
- package/dist/docs/src/content/components/button-group/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/button-group/changelog.mdx +7 -0
- package/dist/docs/src/content/components/button-group/code.mdx +39 -0
- package/dist/docs/src/content/components/button-group/examples.mdx +36 -0
- package/dist/docs/src/content/components/button-group/meta.json +9 -0
- package/dist/docs/src/content/components/button-group/style.mdx +12 -0
- package/dist/docs/src/content/components/button-group/usage.mdx +31 -0
- package/dist/docs/src/content/components/icon-button/accessibility.mdx +35 -0
- package/dist/docs/src/content/components/icon-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/icon-button/code.mdx +66 -0
- package/dist/docs/src/content/components/icon-button/examples.mdx +46 -0
- package/dist/docs/src/content/components/icon-button/meta.json +9 -0
- package/dist/docs/src/content/components/icon-button/style.mdx +13 -0
- package/dist/docs/src/content/components/icon-button/usage.mdx +42 -0
- package/dist/docs/src/content/components/menu-button/accessibility.mdx +36 -0
- package/dist/docs/src/content/components/menu-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/menu-button/code.mdx +55 -0
- package/dist/docs/src/content/components/menu-button/examples.mdx +26 -0
- package/dist/docs/src/content/components/menu-button/meta.json +9 -0
- package/dist/docs/src/content/components/menu-button/style.mdx +15 -0
- package/dist/docs/src/content/components/menu-button/usage.mdx +44 -0
- 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/segmented-control/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/segmented-control/changelog.mdx +7 -0
- package/dist/docs/src/content/components/segmented-control/code.mdx +46 -0
- package/dist/docs/src/content/components/segmented-control/examples.mdx +26 -0
- package/dist/docs/src/content/components/segmented-control/meta.json +9 -0
- package/dist/docs/src/content/components/segmented-control/style.mdx +13 -0
- package/dist/docs/src/content/components/segmented-control/usage.mdx +38 -0
- package/dist/docs/src/content/components/split-button/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/split-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/split-button/code.mdx +57 -0
- package/dist/docs/src/content/components/split-button/examples.mdx +26 -0
- package/dist/docs/src/content/components/split-button/meta.json +9 -0
- package/dist/docs/src/content/components/split-button/style.mdx +12 -0
- package/dist/docs/src/content/components/split-button/usage.mdx +28 -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/components/toggle-button/accessibility.mdx +31 -0
- package/dist/docs/src/content/components/toggle-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/toggle-button/code.mdx +45 -0
- package/dist/docs/src/content/components/toggle-button/examples.mdx +36 -0
- package/dist/docs/src/content/components/toggle-button/meta.json +9 -0
- package/dist/docs/src/content/components/toggle-button/style.mdx +11 -0
- package/dist/docs/src/content/components/toggle-button/usage.mdx +33 -0
- package/dist/docs/src/content/components/toolbar/accessibility.mdx +33 -0
- package/dist/docs/src/content/components/toolbar/changelog.mdx +7 -0
- package/dist/docs/src/content/components/toolbar/code.mdx +81 -0
- package/dist/docs/src/content/components/toolbar/examples.mdx +16 -0
- package/dist/docs/src/content/components/toolbar/meta.json +9 -0
- package/dist/docs/src/content/components/toolbar/style.mdx +12 -0
- package/dist/docs/src/content/components/toolbar/usage.mdx +36 -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/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 +1 -6
- package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +66 -6
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +5 -5
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +2 -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 +13 -69
- 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 +3 -1
- package/dist/docs/src/content/foundations/styles/radius.mdx +32 -28
- 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 +199 -60
- package/dist/docs/src/content-vi/components/action-bar/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/action-bar/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/action-bar/code.mdx +69 -0
- package/dist/docs/src/content-vi/components/action-bar/examples.mdx +16 -0
- package/dist/docs/src/content-vi/components/action-bar/style.mdx +13 -0
- package/dist/docs/src/content-vi/components/action-bar/usage.mdx +35 -0
- package/dist/docs/src/content-vi/components/button/accessibility.mdx +56 -0
- package/dist/docs/src/content-vi/components/button/changelog.mdx +31 -0
- package/dist/docs/src/content-vi/components/button/code.mdx +139 -0
- package/dist/docs/src/content-vi/components/button/examples.mdx +126 -0
- package/dist/docs/src/content-vi/components/button/style.mdx +72 -0
- package/dist/docs/src/content-vi/components/button/usage.mdx +133 -0
- package/dist/docs/src/content-vi/components/button-group/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/button-group/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/button-group/code.mdx +39 -0
- package/dist/docs/src/content-vi/components/button-group/examples.mdx +36 -0
- package/dist/docs/src/content-vi/components/button-group/style.mdx +12 -0
- package/dist/docs/src/content-vi/components/button-group/usage.mdx +31 -0
- package/dist/docs/src/content-vi/components/icon-button/accessibility.mdx +35 -0
- package/dist/docs/src/content-vi/components/icon-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/icon-button/code.mdx +66 -0
- package/dist/docs/src/content-vi/components/icon-button/examples.mdx +46 -0
- package/dist/docs/src/content-vi/components/icon-button/style.mdx +13 -0
- package/dist/docs/src/content-vi/components/icon-button/usage.mdx +42 -0
- package/dist/docs/src/content-vi/components/menu-button/accessibility.mdx +36 -0
- package/dist/docs/src/content-vi/components/menu-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/menu-button/code.mdx +55 -0
- package/dist/docs/src/content-vi/components/menu-button/examples.mdx +26 -0
- package/dist/docs/src/content-vi/components/menu-button/style.mdx +15 -0
- package/dist/docs/src/content-vi/components/menu-button/usage.mdx +44 -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/segmented-control/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/segmented-control/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/segmented-control/code.mdx +46 -0
- package/dist/docs/src/content-vi/components/segmented-control/examples.mdx +26 -0
- package/dist/docs/src/content-vi/components/segmented-control/style.mdx +13 -0
- package/dist/docs/src/content-vi/components/segmented-control/usage.mdx +38 -0
- package/dist/docs/src/content-vi/components/split-button/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/split-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/split-button/code.mdx +57 -0
- package/dist/docs/src/content-vi/components/split-button/examples.mdx +26 -0
- package/dist/docs/src/content-vi/components/split-button/style.mdx +12 -0
- package/dist/docs/src/content-vi/components/split-button/usage.mdx +28 -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/components/toggle-button/accessibility.mdx +31 -0
- package/dist/docs/src/content-vi/components/toggle-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/toggle-button/code.mdx +45 -0
- package/dist/docs/src/content-vi/components/toggle-button/examples.mdx +36 -0
- package/dist/docs/src/content-vi/components/toggle-button/style.mdx +11 -0
- package/dist/docs/src/content-vi/components/toggle-button/usage.mdx +33 -0
- package/dist/docs/src/content-vi/components/toolbar/accessibility.mdx +33 -0
- package/dist/docs/src/content-vi/components/toolbar/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/toolbar/code.mdx +81 -0
- package/dist/docs/src/content-vi/components/toolbar/examples.mdx +16 -0
- package/dist/docs/src/content-vi/components/toolbar/style.mdx +12 -0
- package/dist/docs/src/content-vi/components/toolbar/usage.mdx +36 -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/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 +1 -5
- 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 +1 -1
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +7 -7
- package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +2 -2
- 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 +1 -4
- package/dist/docs/src/content-vi/foundations/styles/illustration.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +13 -10
- 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 +4 -4
- package/dist/docs/src/content-vi/foundations/styles/logos/product-logos.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/logos/using-the-logo.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/motion.mdx +3 -1
- package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +32 -28
- 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 +264 -0
- package/dist/docs/src/content.config.ts +13 -2
- package/dist/docs/src/lib/dates.ts +8 -0
- package/dist/docs/src/lib/i18n.ts +1 -0
- package/dist/docs/src/lib/icons.ts +2 -2
- package/dist/docs/src/lib/lucide-svg.ts +14 -0
- package/dist/docs/src/lib/navigation.ts +7 -4
- package/dist/docs/src/lib/token-descriptions-vi.ts +254 -12
- package/dist/docs/src/lib/tokens.ts +3 -0
- package/dist/docs/src/lib/utils.ts +9 -0
- package/dist/docs/src/styles/chrome.css +7 -7
- package/dist/docs/src/styles/color.css +31 -31
- package/dist/docs/src/styles/docs.css +75 -46
- package/dist/docs/src/styles/elevation.css +1 -1
- package/dist/docs/src/styles/global.css +28 -11
- package/dist/docs/src/styles/icons.css +16 -16
- package/dist/docs/src/styles/kit.css +71 -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/registry.css +10 -0
- 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 +213 -120
- package/dist/docs/src/styles/tokens.js +69 -32
- package/dist/docs/src/styles/typography.css +9 -9
- package/dist/docs/src/styles/zindex.css +6 -5
- package/dist/docs/tokens/button.json +51 -0
- package/dist/docs/tokens/color.json +13 -8
- 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 +14 -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 +306 -51
- 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 +3053 -777
- package/package.json +1 -1
- package/dist/docs/src/brand/structure-proposal.md +0 -227
|
@@ -20,14 +20,14 @@ Elevation shows how high a surface looks. [Z-index](/foundations/styles/z-index/
|
|
|
20
20
|
|
|
21
21
|
| Level | Background | Shadow | Use for |
|
|
22
22
|
|---|---|---|---|
|
|
23
|
-
| Page | `color.surface.page`, `color.surface.subtle` | none | The page,
|
|
23
|
+
| Page | `color.surface.page`, `color.surface.subtle` | none | The page, the app header and side navigation, panels and tables; table headers on `color.surface.subtle` |
|
|
24
24
|
| Raised | `color.surface` | `elevation.shadow.raised` | Cards |
|
|
25
25
|
| Overlay | `color.surface.overlay` | `elevation.shadow.overlay` | Menus, select lists, popovers, date pickers, toasts |
|
|
26
26
|
| Modal | `color.surface.overlay` | `elevation.shadow.modal` | Dialogs, drawers, full sheets |
|
|
27
27
|
|
|
28
28
|
## Page
|
|
29
29
|
|
|
30
|
-
Most of the screen sits on the page with no shadow. Separate panels and tables with a `color.border` border.
|
|
30
|
+
Most of the screen sits on the page with no shadow. Separate panels and tables with a `color.border` border. The app header and side navigation sit on the page too, separated by a `color.border` line. Table headers use `color.surface.subtle`.
|
|
31
31
|
|
|
32
32
|
<ElevationDemo kind="level" item="page" />
|
|
33
33
|
|
|
@@ -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,7 +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
|
|
7
|
+
import RuleDemo from '../../../components/RuleDemo.astro';
|
|
8
8
|
|
|
9
9
|
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.
|
|
10
10
|
|
|
@@ -20,83 +20,21 @@ People need to see that a button is under the pointer, that the keyboard is on i
|
|
|
20
20
|
| State | When | Background | Text and icon | Border |
|
|
21
21
|
| --- | --- | --- | --- | --- |
|
|
22
22
|
| Rest | Nothing is happening. | The token for the element, such as `color.background.neutral` or `color.background.danger.bold` | The paired text token (see [Pairing](/foundations/styles/color/accessibility/#pairing)) | `color.border` or `color.border.bold` |
|
|
23
|
-
| Hover | A pointer is over the element. | The same token plus `.hover`: one step up the scale | Unchanged | Unchanged |
|
|
24
|
-
| Pressed | The element is being clicked or tapped. | The same token plus `.pressed`: two steps up | Unchanged | Unchanged |
|
|
23
|
+
| Hover | A pointer is over the element. | The same token plus `.hover`: one step up the scale | Unchanged | Unchanged, except a bordered button: `color.border.hover` |
|
|
24
|
+
| Pressed | The element is being clicked or tapped. | The same token plus `.pressed`: two steps up | Unchanged | Unchanged, except a bordered button: stays on `color.border.hover` |
|
|
25
25
|
| Focus | The element has keyboard focus (`:focus-visible`). | Unchanged | Unchanged | Add a ring: `outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset);` |
|
|
26
26
|
| 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
27
|
| Disabled | The element cannot be used now. | `color.background.disabled` | `color.text.disabled`, `color.icon.disabled` | `color.border.disabled` |
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
The primary button and an ON [switch](/components/switch/usage/) are the exceptions. They rest on graphite 12, the last step, so they have no step above: on hover they move one step back (graphite 11) and when pressed two steps back (graphite 10). Their tokens already do this.
|
|
30
|
+
|
|
31
|
+
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 keeps its rest colour. Borders do too, except the edge of a bordered button, which darkens one step on hover and stays there while pressed, so the button reads as one control as the pointer reaches it.
|
|
30
32
|
|
|
31
33
|
## Rows, menu items and ghost buttons
|
|
32
34
|
|
|
33
35
|
Elements with no fill at rest use `color.background.neutral.subtle`, which is transparent. On hover they take `color.background.neutral.subtle.hover`; when pressed, `color.background.neutral.subtle.pressed`.
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
the solid-primary label over a transparent background. Framework “outline”
|
|
37
|
-
aliases can also paint resting shadows. Removing that resting shadow must
|
|
38
|
-
never remove the independent focused color, width and gap. See the
|
|
39
|
-
[native Button state contract and live matrix](/tools/ant-design-vue-theme/#one-native-control-family-distinct-roles)
|
|
40
|
-
for the source-owned alias split, disabled/loading behavior and danger pairs.
|
|
41
|
-
|
|
42
|
-
## Interactive cards
|
|
43
|
-
|
|
44
|
-
A bordered interactive card rests on `color.surface` with `color.border`. Hover
|
|
45
|
-
strengthens its frame to `color.border.bold` and adds `elevation.shadow.raised`;
|
|
46
|
-
it never hides the border or lowers opacity. Keyboard focus keeps that meaningful
|
|
47
|
-
frame and raised shadow and adds the standard focused outline/offset. Keep
|
|
48
|
-
`radius.100` (8 px) in every state. Hoverability alone does not make a Card keyboard
|
|
49
|
-
operable: use a real link/button for its action or provide the appropriate focus
|
|
50
|
-
and keyboard semantics.
|
|
51
|
-
|
|
52
|
-
## Boolean Switch
|
|
53
|
-
|
|
54
|
-
A Switch describes a boolean setting, not business success. ON uses the existing
|
|
55
|
-
neutral-bold family, never success green or brand yellow. OFF is an available
|
|
56
|
-
control with a strong thumb, readable label and meaningful edge; it is not the
|
|
57
|
-
disabled treatment. `switch.on.*` and `switch.off.*` own the paired track, thumb,
|
|
58
|
-
label and border. Never put one shared white thumb/text pair over both tracks.
|
|
59
|
-
|
|
60
|
-
| State | OFF pair | ON pair | Additional cue |
|
|
61
|
-
| --- | --- | --- | --- |
|
|
62
|
-
| 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
|
-
| 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`; same paired thumb/label; edge graphite 10 | Track/edge `.pressed`; same paired inverse thumb/label | Native press/handle feedback; the stronger OFF edge retains 3:1 against its pressed fill |
|
|
65
|
-
| 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
|
-
| 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 | Explicit `.disabled`: background, icon, text and border disabled roles | Same explicit disabled roles, but checked position and label remain ON | Native disabled behavior; no opacity dimming and no change callbacks |
|
|
68
|
-
|
|
69
|
-
All names in the table's color pairs have the `color.` prefix. The exported
|
|
70
|
-
Switch roles are `switch.{off,on}.{track,thumb,label,border}` at rest, plus
|
|
71
|
-
`.hover`, `.pressed`, `.focus`, `.loading` and `.disabled`. They resolve through
|
|
72
|
-
the existing palette in light and dark; there are no copied hex colors, mixed
|
|
73
|
-
states or transparent state overlays. Enabled label and thumb pairs have a
|
|
74
|
-
minimum measured contrast of **5.64:1** across both themes and every state
|
|
75
|
-
(the light ON pressed pair). OFF edges retain at least **3.00:1** against their
|
|
76
|
-
track; the focus ring has at least **6.64:1** against page, surface, subtle and
|
|
77
|
-
overlay surfaces. Disabled pairs are intentionally lower contrast and exempt.
|
|
78
|
-
|
|
79
|
-
Normal and small Switches share these paints and `radius.full`; their existing
|
|
80
|
-
native height, handle size, travel and label spacing do not change. EN and VI use
|
|
81
|
-
the existing source typography and short On/Off or Bật/Tắt labels. Keep the native
|
|
82
|
-
button, controlled `checked`/`v-model:checked`, `change` callback, keyboard handling
|
|
83
|
-
and disabled/loading safety. Do not replace them with a styled checkbox or
|
|
84
|
-
product-specific success palette. Applications own the setting and save operation,
|
|
85
|
-
not Switch skin. The [Ant Design Vue contract](/tools/ant-design-vue-theme/#native-switch-contract)
|
|
86
|
-
documents the actual adapter API and its narrow native gaps.
|
|
87
|
-
|
|
88
|
-
### Live native Switch states
|
|
89
|
-
|
|
90
|
-
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 and disabled
|
|
92
|
-
examples, localized labels and a visible change counter. The explicitly simulated
|
|
93
|
-
save keeps its checked binding unchanged while pending, then commits it once;
|
|
94
|
-
attempting another activation during loading must not add a save. Use the site's
|
|
95
|
-
light/dark and EN/VI controls, then hover, press and keyboard-focus the examples.
|
|
96
|
-
|
|
97
|
-
<NativeControlsDemo />
|
|
98
|
-
|
|
99
|
-
<TokenTable prefix="switch" />
|
|
37
|
+
Rows and menu items keep that light hover so a hovered row never looks selected (`color.background.selected` is one step darker). A button is never selected, so Subtle and Default buttons take one step more: `button.background.subtle.hover` and `button.background.subtle.pressed`, the neutral fill and its hover. That puts them in the range most design systems use, about 5% and 9% darker than white.
|
|
100
38
|
|
|
101
39
|
## Disabled
|
|
102
40
|
|
|
@@ -109,6 +47,12 @@ light/dark and EN/VI controls, then hover, press and keyboard-focus the examples
|
|
|
109
47
|
|
|
110
48
|
The same tokens work in dark. In dark, fills get lighter on hover and when pressed instead of darker, and the primary button moves back from graphite 12 the same way; the tokens already do this, so the code doesn’t change.
|
|
111
49
|
|
|
50
|
+
## Do and don’t
|
|
51
|
+
|
|
52
|
+
<RuleDemo item="selected" />
|
|
53
|
+
<RuleDemo item="focus" />
|
|
54
|
+
<RuleDemo item="opacity" />
|
|
55
|
+
|
|
112
56
|
## Tokens
|
|
113
57
|
|
|
114
58
|
The colours are on the [Color](/foundations/styles/color/) page. The focus ring width, `border.width.focused`, is on the [Border](/foundations/styles/border/) page. This group holds the gap between a control and its ring.
|
|
@@ -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
|
|
|
@@ -66,9 +66,11 @@ Things that open and close in place, such as an accordion, take the same time bo
|
|
|
66
66
|
## Waiting times
|
|
67
67
|
|
|
68
68
|
- **Tooltip**: shows 300 ms after the pointer rests, at once on keyboard focus, and hides 100 ms after the pointer leaves. A second tooltip right after the first shows at once.
|
|
69
|
-
- **Loading**: show a spinner only when a wait passes 300 ms. Load a whole page with a skeleton.
|
|
69
|
+
- **Loading**: show a spinner only when a wait passes 300 ms. Load a whole page with a skeleton. The spinner turns once a second at constant speed (`motion.loop.spinner`); under reduced motion it turns at half speed but never stops, because it is the only sign that work is running.
|
|
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,9 +97,11 @@ 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.
|
|
95
101
|
|
|
96
|
-
**
|
|
102
|
+
**Joined controls share one outline.** When a field and a button, or several buttons, are joined into one control, only the outer corners keep the role radius (`radius.control`, or `radius.control.small` for 24 px controls). The corners where they touch use `radius.0`, and the two edges overlap into one line.
|
|
103
|
+
|
|
104
|
+
**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. When the padding is equal to or larger than the outer radius, the corners no longer meet; pick any step that is not larger than the container's.
|
|
97
105
|
|
|
98
106
|
<ShapeDemo kind="nesting" />
|
|
99
107
|
|
|
@@ -103,7 +111,7 @@ When content sits flush inside a box with a 1 px border, clip it with `overflow:
|
|
|
103
111
|
|
|
104
112
|
## Focus ring
|
|
105
113
|
|
|
106
|
-
The focus ring sits 2 px outside the element and its radius is the element's radius + 2 px: a
|
|
114
|
+
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
115
|
|
|
108
116
|
<ShapeDemo kind="focus-radius" />
|
|
109
117
|
|
|
@@ -113,7 +121,7 @@ The focus ring sits 2 px outside the element and its radius is the element's rad
|
|
|
113
121
|
<ShapeDemo kind="dodont" item="controls" />
|
|
114
122
|
<ShapeDemo kind="dodont" item="corners" />
|
|
115
123
|
|
|
116
|
-
- Do pick the token by role. A large button is still a button:
|
|
124
|
+
- Do pick the token by role. A large button is still a button: 6 px.
|
|
117
125
|
- Don't write a raw radius value where a token applies.
|
|
118
126
|
|
|
119
127
|
## Code
|
|
@@ -127,13 +135,9 @@ The focus ring sits 2 px outside the element and its radius is the element's rad
|
|
|
127
135
|
border-radius: var(--bh-radius-050); /* 8 − 4 = 4 */
|
|
128
136
|
}
|
|
129
137
|
.button,
|
|
130
|
-
.input
|
|
131
|
-
.select {
|
|
138
|
+
.input {
|
|
132
139
|
border-radius: var(--bh-radius-control);
|
|
133
140
|
}
|
|
134
|
-
.menu {
|
|
135
|
-
border-radius: var(--bh-radius-050);
|
|
136
|
-
}
|
|
137
141
|
```
|
|
138
142
|
|
|
139
143
|
## 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" />
|