@beehexa/design-rules 0.0.0-stage → 2611.3.3
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 +56 -2
- package/dist/AGENTS.md +24 -0
- package/dist/catalog.json +1814 -0
- package/dist/docs/public/_redirects +7 -0
- package/dist/docs/public/apple-touch-icon.png +0 -0
- package/dist/docs/public/brand/logos/app/apple-touch-icon.png +0 -0
- package/dist/docs/public/brand/logos/app/avatar-800.png +0 -0
- package/dist/docs/public/brand/logos/app/icon-192.png +0 -0
- package/dist/docs/public/brand/logos/app/icon-512.png +0 -0
- package/dist/docs/public/brand/logos/app/icon-maskable-512.png +0 -0
- package/dist/docs/public/brand/logos/archive/d-550/beehexa-horizontal-1-light.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/beehexa-horizontal-2-dark.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/beehexa-horizontal-3-white.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/beehexa-horizontal-4-graphite.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/hexasync-horizontal-1-light.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/hexasync-horizontal-2-dark.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/hexasync-horizontal-3-white.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/hexasync-horizontal-4-graphite.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/ui/beehexa-d-550-dark.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/ui/beehexa-d-550-light.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/ui/beehexa-design-d-550-dark.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/ui/beehexa-design-d-550-light.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/ui/hexasync-d-550-dark.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/ui/hexasync-d-550-light.svg +1 -0
- package/dist/docs/public/brand/logos/archive/d-550/ui/png/beehexa-design-d-550-dark@3x.png +0 -0
- package/dist/docs/public/brand/logos/archive/d-550/ui/png/beehexa-design-d-550-light@3x.png +0 -0
- package/dist/docs/public/brand/logos/beehexa-logo.zip +0 -0
- package/dist/docs/public/brand/logos/fig/anatomy-en.png +0 -0
- package/dist/docs/public/brand/logos/fig/anatomy-vi.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-dark-12.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-dark-14.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-dark-28.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-dark-32.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-dark-56.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-graphite-28.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-graphite-32.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-14.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-21.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-22.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-24.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-28.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-32.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-36-7c3aed7c3aed.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-36-swap.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-36.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-light-56.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-white-20.png +0 -0
- package/dist/docs/public/brand/logos/fig/beehexa-white-32.png +0 -0
- package/dist/docs/public/brand/logos/fig/clearspace.png +0 -0
- package/dist/docs/public/brand/logos/fig/construction-en.png +0 -0
- package/dist/docs/public/brand/logos/fig/construction-vi.png +0 -0
- package/dist/docs/public/brand/logos/fig/container-en.png +0 -0
- package/dist/docs/public/brand/logos/fig/container-vi.png +0 -0
- package/dist/docs/public/brand/logos/fig/hexasync-dark-20.png +0 -0
- package/dist/docs/public/brand/logos/fig/hexasync-dark-28.png +0 -0
- package/dist/docs/public/brand/logos/fig/hexasync-dark-48.png +0 -0
- package/dist/docs/public/brand/logos/fig/hexasync-light-19.png +0 -0
- package/dist/docs/public/brand/logos/fig/hexasync-light-28.png +0 -0
- package/dist/docs/public/brand/logos/fig/hexasync-light-48.png +0 -0
- package/dist/docs/public/brand/logos/fig/icon-graphite-14.png +0 -0
- package/dist/docs/public/brand/logos/fig/icon-graphite-16.png +0 -0
- package/dist/docs/public/brand/logos/fig/icon-light-16.png +0 -0
- package/dist/docs/public/brand/logos/fig/icon-light-24.png +0 -0
- package/dist/docs/public/brand/logos/fig/icon-light-48.png +0 -0
- package/dist/docs/public/brand/logos/fig/icon-light-92.png +0 -0
- package/dist/docs/public/brand/logos/fig/meaning-bee-en.png +0 -0
- package/dist/docs/public/brand/logos/fig/meaning-bee-vi.png +0 -0
- package/dist/docs/public/brand/logos/fig/meaning-outline-en.png +0 -0
- package/dist/docs/public/brand/logos/fig/meaning-outline-vi.png +0 -0
- package/dist/docs/public/brand/logos/fig/meaning-stack-en.png +0 -0
- package/dist/docs/public/brand/logos/fig/meaning-stack-vi.png +0 -0
- package/dist/docs/public/brand/logos/fig/misuse-serif.png +0 -0
- package/dist/docs/public/brand/logos/icon/beehexa-icon-graphite.svg +1 -0
- package/dist/docs/public/brand/logos/icon/beehexa-icon-white.svg +1 -0
- package/dist/docs/public/brand/logos/icon/beehexa-icon-yellow.svg +1 -0
- package/dist/docs/public/brand/logos/lockups/beehexa-horizontal-1-light.svg +1 -0
- package/dist/docs/public/brand/logos/lockups/beehexa-horizontal-2-dark.svg +1 -0
- package/dist/docs/public/brand/logos/lockups/beehexa-horizontal-3-white.svg +1 -0
- package/dist/docs/public/brand/logos/lockups/beehexa-horizontal-4-graphite.svg +1 -0
- package/dist/docs/public/brand/logos/lockups/hexasync-horizontal-1-light.svg +1 -0
- package/dist/docs/public/brand/logos/lockups/hexasync-horizontal-2-dark.svg +1 -0
- package/dist/docs/public/brand/logos/lockups/hexasync-horizontal-3-white.svg +1 -0
- package/dist/docs/public/brand/logos/lockups/hexasync-horizontal-4-graphite.svg +1 -0
- package/dist/docs/public/brand/logos/ui/beehexa-dark.svg +1 -0
- package/dist/docs/public/brand/logos/ui/beehexa-design-dark.svg +1 -0
- package/dist/docs/public/brand/logos/ui/beehexa-design-light.svg +1 -0
- package/dist/docs/public/brand/logos/ui/beehexa-icon-yellow.svg +1 -0
- package/dist/docs/public/brand/logos/ui/beehexa-light.svg +1 -0
- package/dist/docs/public/brand/logos/ui/hexasync-dark.svg +1 -0
- package/dist/docs/public/brand/logos/ui/hexasync-light.svg +1 -0
- package/dist/docs/public/brand/logos/ui/png/beehexa-design-dark@3x.png +0 -0
- package/dist/docs/public/brand/logos/ui/png/beehexa-design-light@3x.png +0 -0
- package/dist/docs/public/favicon.ico +0 -0
- package/dist/docs/public/favicon.svg +1 -0
- package/dist/docs/public/fonts/LICENSE-Inter.txt +93 -0
- package/dist/docs/public/fonts/LICENSE-JetBrainsMono.txt +93 -0
- package/dist/docs/public/fonts/inter-latin-ext-opsz-wght-italic.woff2 +0 -0
- package/dist/docs/public/fonts/inter-latin-ext-opsz-wght-normal.woff2 +0 -0
- package/dist/docs/public/fonts/inter-latin-opsz-wght-italic.woff2 +0 -0
- package/dist/docs/public/fonts/inter-latin-opsz-wght-normal.woff2 +0 -0
- package/dist/docs/public/fonts/inter-vietnamese-opsz-wght-italic.woff2 +0 -0
- package/dist/docs/public/fonts/inter-vietnamese-opsz-wght-normal.woff2 +0 -0
- package/dist/docs/public/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/docs/public/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/dist/docs/public/fonts/jetbrains-mono-vietnamese-wght-normal.woff2 +0 -0
- package/dist/docs/public/icon-192.png +0 -0
- package/dist/docs/public/icon-512.png +0 -0
- package/dist/docs/public/icon-maskable-512.png +0 -0
- package/dist/docs/public/robots.txt +4 -0
- package/dist/docs/public/site.webmanifest +21 -0
- package/dist/docs/scripts/color-pairs.mjs +46 -0
- package/dist/docs/scripts/contrast-exceptions.mjs +6 -0
- package/dist/docs/scripts/token-utils.d.mts +26 -0
- package/dist/docs/scripts/token-utils.mjs +114 -0
- package/dist/docs/src/brand/Beehexa-brandguide-full-mar12.pdf +0 -0
- package/dist/docs/src/brand/color+typoDirections.pdf +0 -0
- package/dist/docs/src/brand/structure-proposal.md +227 -0
- package/dist/docs/src/components/ChildPages.astro +25 -0
- package/dist/docs/src/components/CodeExample.astro +18 -0
- package/dist/docs/src/components/ColorDemo.astro +794 -0
- package/dist/docs/src/components/ColorExample.astro +32 -0
- package/dist/docs/src/components/ColorSwatch.astro +20 -0
- package/dist/docs/src/components/ComponentTabs.astro +21 -0
- package/dist/docs/src/components/DocsFooter.astro +25 -0
- package/dist/docs/src/components/HelpOptions.astro +20 -0
- package/dist/docs/src/components/IconBrowser.astro +257 -0
- package/dist/docs/src/components/IconDemo.astro +185 -0
- package/dist/docs/src/components/InDevelopment.astro +29 -0
- package/dist/docs/src/components/LayoutDemo.astro +384 -0
- package/dist/docs/src/components/Logo.astro +25 -0
- package/dist/docs/src/components/PhaseTable.astro +22 -0
- package/dist/docs/src/components/RoleGuides.astro +48 -0
- package/dist/docs/src/components/ShapeDemo.astro +239 -0
- package/dist/docs/src/components/ShapePin.astro +22 -0
- package/dist/docs/src/components/Sidebar.astro +206 -0
- package/dist/docs/src/components/SiteHeader.astro +211 -0
- package/dist/docs/src/components/SpacingDemo.astro +172 -0
- package/dist/docs/src/components/StatusBadge.astro +22 -0
- package/dist/docs/src/components/SystemAreas.astro +29 -0
- package/dist/docs/src/components/TableOfContents.astro +47 -0
- package/dist/docs/src/components/TokenTable.astro +40 -0
- package/dist/docs/src/components/TypeDemo.astro +249 -0
- package/dist/docs/src/components/logos/Fig.astro +28 -0
- package/dist/docs/src/components/logos/LogoAnatomy.astro +101 -0
- package/dist/docs/src/components/logos/LogoClearSpace.astro +81 -0
- package/dist/docs/src/components/logos/LogoColourVersions.astro +45 -0
- package/dist/docs/src/components/logos/LogoConstruction.astro +84 -0
- package/dist/docs/src/components/logos/LogoContainer.astro +84 -0
- package/dist/docs/src/components/logos/LogoHero.astro +42 -0
- package/dist/docs/src/components/logos/LogoInUse.astro +197 -0
- package/dist/docs/src/components/logos/LogoMeanings.astro +75 -0
- package/dist/docs/src/components/logos/LogoMinSize.astro +55 -0
- package/dist/docs/src/components/logos/LogoMistakes.astro +109 -0
- package/dist/docs/src/components/logos/LogoMisuse.astro +96 -0
- package/dist/docs/src/components/logos/LogoPair.astro +26 -0
- package/dist/docs/src/components/logos/LogoSvg.astro +68 -0
- package/dist/docs/src/content/components/button/accessibility.mdx +18 -0
- package/dist/docs/src/content/components/button/changelog.mdx +6 -0
- package/dist/docs/src/content/components/button/code.mdx +27 -0
- package/dist/docs/src/content/components/button/examples.mdx +21 -0
- package/dist/docs/src/content/components/button/meta.json +5 -0
- package/dist/docs/src/content/components/button/usage.mdx +18 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +19 -0
- package/dist/docs/src/content/foundations/guidelines/content.mdx +25 -0
- package/dist/docs/src/content/foundations/index.mdx +9 -0
- package/dist/docs/src/content/foundations/styles/border.mdx +89 -0
- package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +32 -0
- package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +22 -0
- package/dist/docs/src/content/foundations/styles/color/index.mdx +65 -0
- package/dist/docs/src/content/foundations/styles/color/palette.mdx +57 -0
- package/dist/docs/src/content/foundations/styles/color/tokens.mdx +55 -0
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +111 -0
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +11 -0
- package/dist/docs/src/content/foundations/styles/elevation.mdx +12 -0
- package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +72 -0
- package/dist/docs/src/content/foundations/styles/icons/code.mdx +171 -0
- package/dist/docs/src/content/foundations/styles/icons/index.mdx +62 -0
- package/dist/docs/src/content/foundations/styles/icons/library.mdx +19 -0
- package/dist/docs/src/content/foundations/styles/icons/usage.mdx +100 -0
- package/dist/docs/src/content/foundations/styles/illustration.mdx +9 -0
- package/dist/docs/src/content/foundations/styles/interaction-states.mdx +49 -0
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +81 -0
- package/dist/docs/src/content/foundations/styles/layout/breakpoints.mdx +56 -0
- package/dist/docs/src/content/foundations/styles/layout/grid.mdx +87 -0
- package/dist/docs/src/content/foundations/styles/layout/index.mdx +24 -0
- package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +45 -0
- package/dist/docs/src/content/foundations/styles/layout/page-widths.mdx +38 -0
- package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +65 -0
- package/dist/docs/src/content/foundations/styles/logos/index.mdx +64 -0
- package/dist/docs/src/content/foundations/styles/logos/placement-and-containers.mdx +96 -0
- package/dist/docs/src/content/foundations/styles/logos/product-logos.mdx +56 -0
- package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +70 -0
- package/dist/docs/src/content/foundations/styles/motion.mdx +11 -0
- package/dist/docs/src/content/foundations/styles/opacity.mdx +9 -0
- package/dist/docs/src/content/foundations/styles/radius.mdx +98 -0
- package/dist/docs/src/content/foundations/styles/size-and-density.mdx +41 -0
- package/dist/docs/src/content/foundations/styles/spacing.mdx +70 -0
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +53 -0
- package/dist/docs/src/content/foundations/styles/typography/index.mdx +58 -0
- package/dist/docs/src/content/foundations/styles/typography/usage.mdx +144 -0
- package/dist/docs/src/content/foundations/styles/typography/vietnamese.mdx +46 -0
- package/dist/docs/src/content/foundations/styles/z-index.mdx +9 -0
- package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +36 -0
- package/dist/docs/src/content/foundations/tokens/index.mdx +27 -0
- package/dist/docs/src/content/get-started/content.mdx +14 -0
- package/dist/docs/src/content/get-started/design.mdx +30 -0
- package/dist/docs/src/content/get-started/develop.mdx +59 -0
- package/dist/docs/src/content/get-started/get-help.mdx +19 -0
- package/dist/docs/src/content/get-started/index.mdx +50 -0
- package/dist/docs/src/content/news/2026-10-16-site-structure.md +15 -0
- package/dist/docs/src/content/news/2026-10-20-docs-site.md +13 -0
- package/dist/docs/src/content/release-phases/index.mdx +12 -0
- package/dist/docs/src/content/tools/ai-agents.mdx +49 -0
- package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +138 -0
- package/dist/docs/src/content/tools/eslint.mdx +15 -0
- package/dist/docs/src/content/tools/index.mdx +7 -0
- package/dist/docs/src/content/tools/stylelint.mdx +19 -0
- package/dist/docs/src/content-vi/foundations/styles/border.mdx +89 -0
- package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +22 -0
- package/dist/docs/src/content-vi/foundations/styles/color/index.mdx +65 -0
- package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +57 -0
- package/dist/docs/src/content-vi/foundations/styles/color/tokens.mdx +55 -0
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +111 -0
- package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +11 -0
- package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +72 -0
- package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +170 -0
- package/dist/docs/src/content-vi/foundations/styles/icons/index.mdx +62 -0
- package/dist/docs/src/content-vi/foundations/styles/icons/library.mdx +19 -0
- package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +100 -0
- package/dist/docs/src/content-vi/foundations/styles/illustration.mdx +9 -0
- package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +49 -0
- package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +77 -0
- package/dist/docs/src/content-vi/foundations/styles/layout/breakpoints.mdx +56 -0
- package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +87 -0
- package/dist/docs/src/content-vi/foundations/styles/layout/index.mdx +24 -0
- package/dist/docs/src/content-vi/foundations/styles/layout/page-widths.mdx +34 -0
- package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +65 -0
- package/dist/docs/src/content-vi/foundations/styles/logos/index.mdx +64 -0
- package/dist/docs/src/content-vi/foundations/styles/logos/placement-and-containers.mdx +96 -0
- package/dist/docs/src/content-vi/foundations/styles/logos/product-logos.mdx +56 -0
- package/dist/docs/src/content-vi/foundations/styles/logos/using-the-logo.mdx +70 -0
- package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +9 -0
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +98 -0
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +41 -0
- package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +70 -0
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +53 -0
- package/dist/docs/src/content-vi/foundations/styles/typography/index.mdx +58 -0
- package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +144 -0
- package/dist/docs/src/content-vi/foundations/styles/typography/vietnamese.mdx +46 -0
- package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +9 -0
- package/dist/docs/src/content.config.ts +68 -0
- package/dist/docs/src/lib/brand.ts +57 -0
- package/dist/docs/src/lib/contrast.ts +34 -0
- package/dist/docs/src/lib/i18n.ts +152 -0
- package/dist/docs/src/lib/icons.ts +46 -0
- package/dist/docs/src/lib/logo-geometry.ts +30 -0
- package/dist/docs/src/lib/lucide-categories.json +1 -0
- package/dist/docs/src/lib/lucide-data.ts +40 -0
- package/dist/docs/src/lib/navigation.ts +222 -0
- package/dist/docs/src/lib/release-phases.ts +10 -0
- package/dist/docs/src/lib/routes.ts +40 -0
- package/dist/docs/src/lib/token-descriptions-vi.ts +40 -0
- package/dist/docs/src/lib/tokens.ts +67 -0
- package/dist/docs/src/lib/tri-grid.ts +28 -0
- package/dist/docs/src/styles/chrome.css +122 -0
- package/dist/docs/src/styles/color.css +270 -0
- package/dist/docs/src/styles/docs.css +323 -0
- package/dist/docs/src/styles/global.css +66 -0
- package/dist/docs/src/styles/icons.css +135 -0
- package/dist/docs/src/styles/layout.css +165 -0
- package/dist/docs/src/styles/logos.css +236 -0
- package/dist/docs/src/styles/shapes.css +139 -0
- package/dist/docs/src/styles/tokens.css +461 -0
- package/dist/docs/src/styles/tokens.js +425 -0
- package/dist/docs/src/styles/typography.css +91 -0
- package/dist/docs/tokens/border.json +26 -0
- package/dist/docs/tokens/breakpoints.json +8 -0
- package/dist/docs/tokens/color.json +1350 -0
- package/dist/docs/tokens/elevation.json +26 -0
- package/dist/docs/tokens/layout.json +29 -0
- package/dist/docs/tokens/motion.json +12 -0
- package/dist/docs/tokens/radius.json +44 -0
- package/dist/docs/tokens/size.json +13 -0
- package/dist/docs/tokens/spacing.json +18 -0
- package/dist/docs/tokens/states.json +12 -0
- package/dist/docs/tokens/typography.json +220 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +1823 -0
- package/package.json +36 -4
package/README.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @beehexa/design-rules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Complete source-content rules for installed tools and coding agents, not a short curated summary or a list of website links. Unreleased local-development package (`0.0.0`, `private: true`); no release or publication is authorized by its presence.
|
|
4
|
+
|
|
5
|
+
## Discover, list, read and search
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
import { catalog, listRules, readRule, searchRules } from '@beehexa/design-rules';
|
|
9
|
+
|
|
10
|
+
const usage = readRule('en/foundations/styles/color/usage');
|
|
11
|
+
console.log(usage?.title, usage?.status, usage?.body);
|
|
12
|
+
const matches = searchRules('focus');
|
|
13
|
+
const planned = listRules().filter((rule) => rule.status === 'planned');
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`catalog` and `listRules()` expose the complete document array. `readRule(id)` returns the document or `undefined` for an unknown ID. `searchRules(query)` performs a case-insensitive substring search over the full ID, title and MDX body; an empty query returns all documents. APIs are local and synchronous, with no network or website/checkout dependency once built and installed. Treat returned data as read-only.
|
|
17
|
+
|
|
18
|
+
Every catalog entry has:
|
|
19
|
+
|
|
20
|
+
| Field | Meaning |
|
|
21
|
+
| --- | --- |
|
|
22
|
+
| `id` | Stable locale-prefixed source path without extension, such as `en/foundations/styles/color/index`. Overview IDs retain `index`; Vietnamese IDs begin `vi/`. |
|
|
23
|
+
| `path` | Original source file path, including `.md`/`.mdx`. |
|
|
24
|
+
| `documentPath` | `docs/` plus `path`, relative to installed `dist/`. |
|
|
25
|
+
| `locale` | `en` or `vi`. No synthetic translations are generated. |
|
|
26
|
+
| `kind` | `guidance`, historical `news`, or source proposal `reference`. News/reference are not silently promoted into normative usage requirements. |
|
|
27
|
+
| `title` | Source title; component tabs use the component metadata title plus tab name. |
|
|
28
|
+
| `status` | `active` for authored content; `planned` for a source planned list or empty body. **Active does not mean final, approved or GA.** |
|
|
29
|
+
| `releasePhase` | Original source release phase, including component metadata when present; `null` when unspecified. This is distinct from active/planned. |
|
|
30
|
+
| `planned` | Exact source list of unfinished topics, retained even when a page has some body content. |
|
|
31
|
+
| `body` | Full MDX/Markdown after frontmatter, retaining examples, imports and component calls. |
|
|
32
|
+
| `raw` | Complete original document, including frontmatter, byte-for-byte UTF-8 text. |
|
|
33
|
+
| `frontmatter` | Parsed original frontmatter for consumers needing additional metadata. |
|
|
34
|
+
|
|
35
|
+
`@beehexa/design-rules/catalog.json` is the same complete payload for non-JavaScript tools. Resolve `@beehexa/design-rules/agent` for installed agent instructions. Resolve `@beehexa/design-rules/docs/` + a rule's `path` for its raw document, or read `dist/docs/<original path>` next to the installed catalog. `@beehexa/design-rules/package.json` exposes installed origin/version metadata.
|
|
36
|
+
|
|
37
|
+
## Complete local source, not rendered HTML
|
|
38
|
+
|
|
39
|
+
The build traverses **all** `src/content/` and `src/content-vi/` documents, including every usage, accessibility, code and examples page, token/style/layout/locale guideline, planned stub, component tab, and historical news entry. Component `meta.json` files remain in the raw payload. The source structure proposal is separately cataloged as `en/reference/structure-proposal`.
|
|
40
|
+
|
|
41
|
+
Supporting raw sources are included at their original paths below `dist/docs/`: the complete `src/components`, `src/lib`, `src/styles`, `src/brand`, `public` and `tokens` trees, `src/content.config.ts`, and shared token-utils implementation/declarations. This preserves instructions represented by MDX component examples/tables as well as written prose, brand references, images, downloads and font files. The payload is source for reading; it is not pre-rendered HTML, a compiled component library, or a vendored copy of external framework/icon npm dependencies. Existing asset licenses still apply.
|
|
42
|
+
|
|
43
|
+
Install a local reference to `packages/design-rules` until managers explicitly approve release (for example Yarn `portal:../beehexa.design/packages/design-rules` after the producer build). Do not scrape the site, maintain dashboard-owned copies, or link consumers to a checkout instead of installing content.
|
|
44
|
+
|
|
45
|
+
Local references are **local-development only**. Consumer CI requires actual released npm versions and must never check out sibling repositories or build from sibling paths. Producer CI stays single-repository. Release, deployment and CI execution are not local-work prerequisites; until a real authorized release exists, do not invent a cross-repository consumer CI fallback.
|
|
46
|
+
|
|
47
|
+
## Applying the rules and unresolved source gaps
|
|
48
|
+
|
|
49
|
+
Read related usage, code, accessibility, responsive, theme and locale documents before implementing. `@beehexa/design-tokens` supplies actual reusable values; `tokenInfo` supplies descriptions and raw/resolved mode metadata. Neither token availability nor a description is the complete rulebook. This package supplies that source rulebook without changing its authority.
|
|
50
|
+
|
|
51
|
+
There are **no product/dashboard exemptions**. Missing guidance is an upstream source gap, not permission to invent a downstream standard. Pages marked planned remain explicitly planned. The source currently has unfinished areas such as data visualization; the generated agent entrypoint lists every actual planned document and its planned topics from the source. The component catalog and release phases remain incomplete, and not every English page has a Vietnamese translation. A missing release phase is not GA. The website and its structure proposal describe a working design-system proposal, not a declaration that all standards are finalized. External framework/icon APIs remain external dependencies.
|
|
52
|
+
|
|
53
|
+
The dashboard's 14px root uses the token package's rem*16 pixel CSS only as compatibility debt; it receives no alternate design scale or rule exemption. Improvements or clarifications belong in the beehexa.design source, followed by package generation—not a consumer patch/copy.
|
|
54
|
+
|
|
55
|
+
## Producer commands
|
|
56
|
+
|
|
57
|
+
From the source root: `npm ci`, `npm run build:packages`, `npm run check:packages`, `npm run pack:packages`. `npm run build -w @beehexa/design-rules` and its `prepack` generate the package directly from this repository. Checks compare every emitted artifact with current source inputs and reject stale/missing/extra outputs; no dashboard checkout is involved. The package contains ESM, declarations, full JSON catalog, agent instructions, all raw source/support documents and this README. Building/packing locally does not authorize publishing.
|
package/dist/AGENTS.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Beehexa design usage: installed source authority
|
|
2
|
+
|
|
3
|
+
Use this installed package, not scraped HTML, a dashboard-owned snapshot, or a website URL as a substitute for content.
|
|
4
|
+
|
|
5
|
+
1. Import { catalog, listRules, readRule, searchRules } from '@beehexa/design-rules'.
|
|
6
|
+
2. Discover by stable locale-prefixed ID; search title, ID and full body (case insensitive), then read complete documents. IDs retain /index for overview pages.
|
|
7
|
+
3. Read each result's status, planned list and releasePhase before applying it. active means authored content, NOT final/GA. planned is an unfinished source area, NOT permission to invent a standard. null releasePhase means the source did not specify one.
|
|
8
|
+
4. Read related usage, code, accessibility, responsive, theme and locale pages, not just the first token match. English is the baseline; translations exist only where supplied. No synthetic translations or missing-page placeholders are generated.
|
|
9
|
+
5. All raw files are installed below this directory's docs/ with original source paths. Resolve '@beehexa/design-rules/docs/' + rule.path with your package resolver. body retains MDX examples and imports; raw includes exact frontmatter. Supporting Astro/TypeScript, brand reference files, public assets and tokens are also included there. This is source for reading, not a pre-rendered website or component runtime.
|
|
10
|
+
6. Token values come from @beehexa/design-tokens; tokenInfo provides per-token descriptions, aliases and mode metadata. Metadata is NOT the complete usage rulebook. Read this catalog for allowed roles, combinations, interaction, layout and accessibility semantics.
|
|
11
|
+
7. There are NO product/dashboard exemptions. Missing source guidance is a gap to report to the source owners, not an exemption. Do not create a downstream token or rule copy. Local unreleased package references are for LOCAL DEVELOPMENT ONLY until managers explicitly authorize release. Consumer CI must use actual released npm versions; it must never check out sibling repositories, build from sibling checkouts or require release/deployment/CI execution for local work. Producer CI is single-repository.
|
|
12
|
+
8. The pixel CSS entrypoint is rem*16 compatibility for the dashboard's current 14px root; this is migration debt, not an alternate design scale or a root-font exemption. Native rem is the source convention. Token names and TypeScript key typing remain shared.
|
|
13
|
+
|
|
14
|
+
Source gaps retained verbatim (8 planned documents):
|
|
15
|
+
- en/foundations/styles/data-visualization: A chart palette for series, with contrast in light and dark; Status colours in charts; Chart types and when to use each; Axis, legend, tooltip and number formats; Accessible charts: not by colour alone, text alternatives
|
|
16
|
+
- en/foundations/styles/illustration: When to use a diagram, an illustration or a screenshot; The diagram style from the brand guide: structured, built on the hexagon grid; Empty states and onboarding images
|
|
17
|
+
- en/foundations/styles/opacity: Where transparency is allowed: the scrim behind dialogs, image overlays; Why hover, pressed and disabled use colour steps, not opacity; Opacity tokens, if any are needed
|
|
18
|
+
- en/foundations/styles/z-index: Layer names and their order; Which layer each overlay uses: dropdown, popover, tooltip, dialog, drawer, toast; How layering pairs with elevation
|
|
19
|
+
- vi/foundations/styles/data-visualization: Bảng màu cho các chuỗi dữ liệu, đủ tương phản ở light và dark; Màu trạng thái trong biểu đồ; Các loại biểu đồ và khi nào dùng; Trục, chú giải, tooltip và định dạng số; Biểu đồ dễ tiếp cận: không chỉ dựa vào màu, có phần mô tả bằng chữ
|
|
20
|
+
- vi/foundations/styles/illustration: Khi nào dùng sơ đồ, hình minh hoạ hay ảnh chụp màn hình; Phong cách sơ đồ theo brand guide: có cấu trúc, dựng trên lưới lục giác; Hình cho trạng thái trống và onboarding
|
|
21
|
+
- vi/foundations/styles/opacity: Chỗ được dùng độ trong suốt: lớp phủ sau dialog, lớp phủ trên ảnh; Vì sao hover, pressed và disabled dùng bậc màu, không dùng độ mờ; Token độ mờ, nếu cần
|
|
22
|
+
- vi/foundations/styles/z-index: Tên các lớp và thứ tự; Mỗi lớp phủ dùng lớp nào: dropdown, popover, tooltip, dialog, drawer, toast; Lớp và đổ bóng đi cùng nhau thế nào
|
|
23
|
+
|
|
24
|
+
The source website is a working proposal. Component coverage and release phases are incomplete; some docs remain planned. Historical news and the structure proposal are labeled kind=news/reference, not silently promoted into normative usage rules. Referenced external framework/icon APIs and fonts retain their upstream licenses; this package does not vendor npm dependencies or execute MDX.
|