@beehexa/design-tokens 2611.4.1 → 2611.5.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 +47 -3
- package/dist/dtcg/color.json +18 -1
- package/dist/dtcg/content.json +8 -3
- package/dist/dtcg/diagram.json +9 -3
- package/dist/dtcg/flow.json +2 -2
- package/dist/dtcg/layout.json +4 -0
- package/dist/dtcg/motion.json +37 -5
- package/dist/dtcg/radius.json +52 -8
- package/dist/dtcg/resize.json +12 -0
- package/dist/dtcg/scrollbar.json +40 -0
- package/dist/dtcg/size.json +1 -1
- package/dist/dtcg/spacing.json +31 -1
- package/dist/dtcg/switch.json +280 -0
- package/dist/index.d.ts +2043 -56
- package/dist/index.js +2207 -212
- package/dist/scrollbars.css +74 -0
- package/dist/tokens.css +150 -4
- package/dist/tokens.pixels.css +150 -4
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -26,13 +26,57 @@ const spacing: TokenName = 'space.200';
|
|
|
26
26
|
- `tokens.dark` and `tokens.vi` contain only values differing from light, including indirect changes through aliases. Vietnamese deltas are resolved against the Vietnamese graph, not just the base targets. These are independent mode deltas; there is no exported combined dark+Vietnamese object. Do not assume arbitrary delta merging models overlapping future mode overrides; use the CSS cascade for combined presentation.
|
|
27
27
|
- `tokenInfo` is keyed by the same token names. It contains `name`, `path`, `type`, `description`, raw alias-bearing `value`, optional source `dark`/`vi` extensions, `cssVar`, and fully resolved `resolved`/`darkResolved`/`viResolved`. These descriptions explain individual decisions; they are not a replacement for the complete usage rules in `@beehexa/design-rules`.
|
|
28
28
|
- Generated declarations preserve literal token keys and values. `TokenName` is `keyof typeof tokens.light`; a misspelled key is not widened into `Record<string, string>`.
|
|
29
|
+
- `tokenPixels(name, locale = 'en', rootFontSize = 16)` converts a source numeric scalar or `px`/`rem` dimension. The default preserves nominal16px/rem geometry; an explicit observed root scales only rem dimensions. Native Avatar/Image props replacing scalable CSS must pass that root, obtained from `useAntDesignVueRootFontSize()` in the AntD adapter (children reuse their provider's one measurement). Vietnamese prefixes select resolved alternatives. Zero remains zero; colors, composite fonts and nonnumeric roles throw. Never copy conversion logic or force the root to match a numeric API. Fixed canvas coordinates may deliberately keep the nominal default.
|
|
29
30
|
- `@beehexa/design-tokens/css` retains native `rem`. It defines `--bh-*` on `:root`, honors explicit `data-theme="light"`/`"dark"`, uses system dark preference only without an explicit light selection, and applies Vietnamese typography via `:lang(vi)` with resets on other explicit languages. It does not set the application's root font size.
|
|
30
|
-
- `@beehexa/design-tokens/css/pixels` uses the identical generator and selectors, converting every `rem` literal
|
|
31
|
-
-
|
|
31
|
+
- `@beehexa/design-tokens/css/pixels` uses the identical generator and selectors, converting every `rem` literal at **16 px per rem**, including compound values. This optional compatibility entrypoint is not dashboard integration: use native `/css`, preserve the reader's root setting and put `font.body.default` on the body. Never import both variants.
|
|
32
|
+
- All CSS subpaths include package-owned side-effect declarations, so strict TypeScript consumers with `noUncheckedSideEffectImports` need no ambient module shims. The runtime exports still resolve to the actual CSS files.
|
|
32
33
|
- Source `font.features` is `"cv05", "cv08"`. Generated CSS applies it universally with `!important`, preserving these features across semantic `font` shorthand resets. Add local opt-in features through `--bh-font-features`, not a competing feature property.
|
|
33
34
|
- `@beehexa/design-tokens/dtcg/color.json` (and every other original `tokens/*.json`) exposes the unchanged source data.
|
|
34
35
|
- `@beehexa/design-tokens/package.json` exposes installed origin/version metadata.
|
|
35
36
|
|
|
37
|
+
## Application scrollbars
|
|
38
|
+
|
|
39
|
+
Import `@beehexa/design-tokens/css/scrollbars` once after the token CSS to opt the
|
|
40
|
+
application into one native-DOM scrollbar appearance family, including Ant Table
|
|
41
|
+
bodies, Tree/list holders, drawers, portals and native measurement probes.
|
|
42
|
+
`bh-scroll-region` identifies application-created scroll ownership; it is not an
|
|
43
|
+
appearance exemption for unmarked framework holders. The authored
|
|
44
|
+
`src/styles/scrollbars.css` ships unchanged as `dist/scrollbars.css`.
|
|
45
|
+
It never supplies overflow, height, forced gutters, fake scrollbars, scroll
|
|
46
|
+
animation or overscroll containment. Application layout supplies `overflow: auto`
|
|
47
|
+
only where needed and keeps one continuous owner per logical pane. Never hide bars
|
|
48
|
+
or retain competing local recipes.
|
|
49
|
+
|
|
50
|
+
The `scrollbar.*` roles model Ant Design Vue 4 Table's real scrollbar token
|
|
51
|
+
factory: nominal8px (`width` → `space.100`, native0.5rem), `colorTextPlaceholder`
|
|
52
|
+
(`thumb` → `color.text.subtlest`), `colorTextHeading` (`thumbHover` → `color.text`),
|
|
53
|
+
and `colorSplit` (`track` → `color.border`). `thumbActive` shares hover as Ant's
|
|
54
|
+
sticky scrollbar does; `corner` shares track and `radius` uses `radius.full`.
|
|
55
|
+
The same values serve both axes and inherit light/dark semantic alias resolution;
|
|
56
|
+
Vietnamese needs no separate scrollbar override. Preserve opaque foreground/thumb
|
|
57
|
+
contrast against the track, not a local translucent approximation.
|
|
58
|
+
|
|
59
|
+
**Native framework scroll ownership is preserved, not exempt from appearance.**
|
|
60
|
+
The shared module styles actual native-DOM scrollbar pseudo-elements on both
|
|
61
|
+
axes, including native Table body tracks/corners and Tree holders; no wrapper
|
|
62
|
+
marking or private-node manipulation is needed. Remove the old direct-child
|
|
63
|
+
`scrollbar-color:auto` exemption. Offscreen native scrollbar measurement probes
|
|
64
|
+
consume the same width as Table bodies, preserving header/body alignment.
|
|
65
|
+
Virtual bars do not have browser scrollbar pseudo-elements: the AntD4 source
|
|
66
|
+
adapter maps its virtual-list inline appearance gaps without changing
|
|
67
|
+
thumb position/height, visibility or drag handlers. Monaco consumes
|
|
68
|
+
`scrollbar.*` through public theme/options and the observed reader root;
|
|
69
|
+
only its missing track/radius paint inputs use the source adapter stylesheet.
|
|
70
|
+
|
|
71
|
+
WebKit-pseudo-element engines use the token width/height and actual thumb
|
|
72
|
+
hover/active; standards-only engines use native `thin` geometry and host
|
|
73
|
+
hover/active colors because their API has no thumb-state pseudo-elements. Platform
|
|
74
|
+
overlay visibility/geometry remains native, and forced-colors mode retains native
|
|
75
|
+
system scrollbar paint and geometry. Keyboard, wheel and touch scrolling remain
|
|
76
|
+
natural. Full ownership, accessibility, fallback and verification guidance is the
|
|
77
|
+
active installed rule `en/foundations/styles/scrollbars` in
|
|
78
|
+
`@beehexa/design-rules` (source `src/content/foundations/styles/scrollbars.mdx`).
|
|
79
|
+
|
|
36
80
|
## Source authority and limits
|
|
37
81
|
|
|
38
82
|
`beehexa.design/tokens/*.json` is the only token source. `scripts/token-utils.mjs` owns flattening, CSS naming, mode-aware graph resolution, and CSS generation; the website and package builders share it. Builds reject duplicate token/CSS names, unknown references, and cycles in light, dark, Vietnamese, and combined dark+Vietnamese graphs. The generated outputs are not another editable source.
|
|
@@ -41,4 +85,4 @@ Usage choices remain governed by the complete installed rule documents, includin
|
|
|
41
85
|
|
|
42
86
|
## Producer commands
|
|
43
87
|
|
|
44
|
-
From the source root: `npm run build:packages`, `npm run check:packages`, `npm run pack:packages`. Workspace `npm run build -w @beehexa/design-tokens` builds just this package; `prepack` also builds real artifacts before packing. Package checks need only this producer repository, never a dashboard checkout. Distribution includes ESM, declarations, both CSS variants, unchanged DTCG files and this README.
|
|
88
|
+
From the source root: `npm run build:packages`, `npm run check:packages`, `npm run pack:packages`. Workspace `npm run build -w @beehexa/design-tokens` builds just this package; `prepack` also builds real artifacts before packing. Package checks need only this producer repository, never a dashboard checkout. Distribution includes ESM, declarations, both token CSS variants, the opt-in scrollbar stylesheet, unchanged DTCG files and this README. The packed-payload checker requires the typed scrollbar entry, checks its bytes against the authored source and exercises strict side-effect import resolution from the extracted tarball.
|
package/dist/dtcg/color.json
CHANGED
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
"subtlest": {
|
|
785
785
|
"$type": "color",
|
|
786
786
|
"$value": "{color.graphite.10}",
|
|
787
|
-
"$description": "Tertiary text: metadata, timestamps, placeholders, helper text, breadcrumbs."
|
|
787
|
+
"$description": "Tertiary text: metadata, timestamps, placeholders, helper text, breadcrumbs. Meets 4.5:1 but not 7:1, so never use it for body text."
|
|
788
788
|
},
|
|
789
789
|
"disabled": {
|
|
790
790
|
"$type": "color",
|
|
@@ -897,6 +897,23 @@
|
|
|
897
897
|
}
|
|
898
898
|
},
|
|
899
899
|
"background": {
|
|
900
|
+
"primary": {
|
|
901
|
+
"$root": {
|
|
902
|
+
"$type": "color",
|
|
903
|
+
"$value": "{color.background.neutral.bold}",
|
|
904
|
+
"$description": "The main action: primary buttons. Points to background.neutral.bold, so changing the primary colour is one edit here."
|
|
905
|
+
},
|
|
906
|
+
"hover": {
|
|
907
|
+
"$type": "color",
|
|
908
|
+
"$value": "{color.background.neutral.bold.hover}",
|
|
909
|
+
"$description": "The main action on hover."
|
|
910
|
+
},
|
|
911
|
+
"pressed": {
|
|
912
|
+
"$type": "color",
|
|
913
|
+
"$value": "{color.background.neutral.bold.pressed}",
|
|
914
|
+
"$description": "The main action when pressed."
|
|
915
|
+
}
|
|
916
|
+
},
|
|
900
917
|
"neutral": {
|
|
901
918
|
"$root": {
|
|
902
919
|
"$type": "color",
|
package/dist/dtcg/content.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"content": {
|
|
3
|
-
"$description": "Reusable application-content identity
|
|
3
|
+
"$description": "Reusable application-content identity, empty-state and read-only step-progress geometry. Identity colours never encode operational status.",
|
|
4
4
|
"partner-logo": {
|
|
5
|
-
"size": { "$type": "dimension", "$value": "2.5rem", "$description": "
|
|
6
|
-
"image-size": { "$type": "dimension", "$value": "1.75rem", "$description": "
|
|
5
|
+
"size": { "$type": "dimension", "$value": "2.5rem", "$description": "Non-image partner-group placeholder extent, not a brand-image width or fixed-square Avatar recipe." },
|
|
6
|
+
"image-size": { "$type": "dimension", "$value": "1.75rem", "$description": "Common rendered height of connector and partner brand images. Width is always intrinsic/auto at this height; no square frame, width cap, crop or distortion." }
|
|
7
7
|
},
|
|
8
8
|
"avatar": {
|
|
9
9
|
"size": { "$type": "dimension", "$value": "2.5rem", "$description": "Default person or permission-member identity avatar; a visual identity, not a hit target." }
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"empty-illustration": {
|
|
16
16
|
"size": { "$type": "dimension", "$value": "6rem", "$description": "Empty-state illustration container. Standard icons inside retain their own source icon sizes." }
|
|
17
|
+
},
|
|
18
|
+
"step-progress": {
|
|
19
|
+
"segment-width": { "$type": "dimension", "$value": "1rem", "$description": "16px horizontal mark in an opt-in read-only native segmented Progress; not a navigation step or status dot." },
|
|
20
|
+
"segment-height": { "$type": "dimension", "$value": "0.25rem", "$description": "4px thickness of each horizontal step-progress mark; scales with the reader's root." },
|
|
21
|
+
"gap": { "$type": "dimension", "$value": "{space.050}", "$description": "Space between adjacent read-only step-progress marks; no trailing native item margin." }
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
}
|
package/dist/dtcg/diagram.json
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"diagram": {
|
|
3
3
|
"$description": "Operational execution diagrams. Descriptive states are not business statuses; selection is an independent outer ring. See tools/mermaid.",
|
|
4
|
-
"canvas": { "$type": "color", "$value": "{color.surface.page}", "$description": "Opaque
|
|
4
|
+
"canvas": { "$type": "color", "$value": "{color.surface.page}", "$description": "Opaque viewport and image-export sheet; transparent live SVG/groups expose its grid. Pair with node and edge text." },
|
|
5
|
+
"grid": { "$type": "color", "$value": "{color.border}", "$description": "Subtle dotted drawing grid, shared with native Data Flow; never an execution cue." },
|
|
6
|
+
"group-fill": { "$type": "color", "$value": "{color.background.neutral.subtle}", "$description": "Transparent graph-stage body: retain native grouping boundary/title without hiding the viewport's dotted grid. Export keeps the opaque canvas sheet behind it." },
|
|
7
|
+
"grid-gap": { "$type": "dimension", "$value": "18px", "$description": "Native Data Flow dotted-grid interval in graph coordinates, transformed with the camera." },
|
|
8
|
+
"grid-dot": { "$type": "dimension", "$value": "1.2px", "$description": "Native Data Flow grid dot radius in graph coordinates." },
|
|
5
9
|
"node-fill": { "$type": "color", "$value": "{color.surface}", "$description": "Default and indeterminate node fill." },
|
|
6
10
|
"node-border": { "$type": "color", "$value": "{color.border.bold}", "$description": "Meaningful default and indeterminate node boundary." },
|
|
7
11
|
"node-title": { "$type": "color", "$value": "{color.text}", "$description": "Node title on node-fill." },
|
|
8
12
|
"node-desc": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Descriptive node and inspector text on neutral surfaces." },
|
|
9
13
|
"tile-bg": { "$type": "color", "$value": "{color.background.neutral}", "$description": "Step-category glyph plate; not a status." },
|
|
10
14
|
"tile-glyph": { "$type": "color", "$value": "{color.icon}", "$description": "Step-category glyph on tile-bg." },
|
|
11
|
-
"state-ran-ok": { "$type": "color", "$value": "{color.text.
|
|
15
|
+
"state-ran-ok": { "$type": "color", "$value": "{color.text.info}", "$description": "Execution evidence without a reported failure. Informational blue and a completion marker, never business-success green." },
|
|
12
16
|
"ran-ok-fill": { "$type": "color", "$value": "{color.surface}", "$description": "Ran step fill; retain text and completion marker as non-colour cues." },
|
|
13
|
-
"
|
|
17
|
+
"log-reached": { "$type": "color", "$value": "{color.text.info}", "$description": "Log-only reachability, paired with a reach marker; not a typed successful execution." },
|
|
18
|
+
"log-unfinished": { "$type": "color", "$value": "{color.text.warning}", "$description": "Started interval without a recorded ending, paired with an ellipsis and dashed boundary; not a proven failure." },
|
|
19
|
+
"fail-stroke": { "$type": "color", "$value": "{color.text.danger}", "$description": "Proven failure boundary and native shared state-label paint; pair with fail-fill and the native failure marker." },
|
|
14
20
|
"fail-fill": { "$type": "color", "$value": "{color.background.danger.subtle}", "$description": "Failed execution node fill." },
|
|
15
21
|
"fail-title": { "$type": "color", "$value": "{color.text.danger}", "$description": "Failure title on fail-fill." },
|
|
16
22
|
"fail-desc": { "$type": "color", "$value": "{color.text.danger}", "$description": "Failure description on fail-fill." },
|
package/dist/dtcg/flow.json
CHANGED
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
"decision": {
|
|
116
116
|
"foreground": {
|
|
117
117
|
"$type": "color",
|
|
118
|
-
"$value": "#
|
|
119
|
-
"$description": "
|
|
118
|
+
"$value": "#087b88",
|
|
119
|
+
"$description": "Decision identity label on its paired surface; AA small-text contrast, independent of the frame and directed-edge stroke.",
|
|
120
120
|
"$extensions": {
|
|
121
121
|
"design.beehexa": {
|
|
122
122
|
"dark": "#7bdce5"
|
package/dist/dtcg/layout.json
CHANGED
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"wide": { "$type": "dimension", "$value": "70vw", "$description": "Explicit wide data-inspection variant when its content needs it, from breakpoint.lg. Never a blanket override of all drawers." },
|
|
23
23
|
"mobile": { "$type": "dimension", "$value": "100vw", "$description": "Full available viewport width for data-inspection overlays below breakpoint.lg; content and actions must reflow." }
|
|
24
24
|
},
|
|
25
|
+
"renderer": {
|
|
26
|
+
"minimum-inline-size": { "$type": "dimension", "$value": "21.875rem", "$description": "350px nominal readable interactive editor/canvas viewport. The allocated outer shell still shrinks; expose narrower allocations through one explicit overflow owner. Not a minimum for static text or read-only fields." },
|
|
27
|
+
"minimum-block-size": { "$type": "dimension", "$value": "21.875rem", "$description": "350px nominal readable interactive editor/canvas viewport below its intrinsic toolbar. Fill larger parent allocations instead of treating this minimum as a fixed height or cap." }
|
|
28
|
+
},
|
|
25
29
|
"description": {
|
|
26
30
|
"minimum": { "$type": "dimension", "$value": "12.5rem", "$description": "200px nominal minimum description-column width in desktop structured data inspection. Below the available inline budget, stack content instead of forcing horizontal overflow." }
|
|
27
31
|
}
|
package/dist/dtcg/motion.json
CHANGED
|
@@ -1,12 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"motion": {
|
|
3
3
|
"duration": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
4
|
+
"instant": { "$type": "duration", "$value": "0ms", "$description": "0 ms. Changes that happen at once. Every duration becomes this when reduced motion is on." },
|
|
5
|
+
"fast": { "$type": "duration", "$value": "100ms", "$description": "100 ms. Hover, press and colour changes; closing tooltips, menus and toasts; dropping a dragged item." },
|
|
6
|
+
"default": { "$type": "duration", "$value": "200ms", "$description": "200 ms. Opening tooltips, menus, popovers and toasts; tab indicator, switch knob, accordion, side navigation; closing dialogs and drawers." },
|
|
7
|
+
"slow": { "$type": "duration", "$value": "300ms", "$description": "300 ms. Opening dialogs and drawers; closing full-screen sheets." },
|
|
8
|
+
"slower": { "$type": "duration", "$value": "400ms", "$description": "400 ms. Opening full-screen sheets and other large surfaces." },
|
|
9
|
+
"slowest": { "$type": "duration", "$value": "600ms", "$description": "600 ms. Rare emphasized moments people see once, such as finishing onboarding. Never for everyday controls." }
|
|
7
10
|
},
|
|
8
11
|
"easing": {
|
|
9
|
-
"standard": { "$type": "cubicBezier", "$value": "cubic-bezier(0.
|
|
10
|
-
|
|
12
|
+
"standard": { "$type": "cubicBezier", "$value": "cubic-bezier(0.4, 0, 0.2, 1)", "$description": "Speeds up, then slows down. Things that move within the screen, and changes the system makes on its own." },
|
|
13
|
+
"enter": { "$type": "cubicBezier", "$value": "cubic-bezier(0, 0, 0.2, 1)", "$description": "Starts fast and slows to a stop. Things that come onto the screen: menus, dialogs, drawers, toasts." },
|
|
14
|
+
"exit": { "$type": "cubicBezier", "$value": "cubic-bezier(0.4, 0, 1, 1)", "$description": "Starts slow and speeds up. Things that leave the screen. Pair with a duration one step shorter than the enter." },
|
|
15
|
+
"linear": { "$type": "cubicBezier", "$value": "cubic-bezier(0, 0, 1, 1)", "$description": "Even speed. Fades of opacity or colour, progress bars and spinners." },
|
|
16
|
+
"emphasized": { "$type": "cubicBezier", "$value": "cubic-bezier(0.05, 0.7, 0.1, 1)", "$description": "Covers most of the distance at once, then settles slowly. Only for rare emphasized moments, with motion.duration.slowest." }
|
|
17
|
+
},
|
|
18
|
+
"keyframe": {
|
|
19
|
+
"offset": {
|
|
20
|
+
"enter": { "$type": "dimension", "$value": "0.5rem", "$description": "8 px. How far a menu, popover or toast slides as it comes in." },
|
|
21
|
+
"exit": { "$type": "dimension", "$value": "0.25rem", "$description": "4 px. How far it slides as it leaves." }
|
|
22
|
+
},
|
|
23
|
+
"scale": { "$type": "number", "$value": "0.95", "$description": "Scale a dialog grows from as it opens, and shrinks to as it closes." },
|
|
24
|
+
"slide": { "$type": "dimension", "$value": "100%", "$description": "Drawers, side panels and full-screen sheets slide their own full width or height." }
|
|
25
|
+
},
|
|
26
|
+
"control": { "$type": "transition", "$value": { "duration": "{motion.duration.fast}", "delay": "0ms", "timingFunction": "{motion.easing.standard}" }, "$description": "Hover, press and colour changes of buttons, fields and other controls.", "$extensions": { "design.beehexa": { "family": "control" } } },
|
|
27
|
+
"indicator": { "$type": "transition", "$value": { "duration": "{motion.duration.default}", "delay": "0ms", "timingFunction": "{motion.easing.enter}" }, "$description": "Tab indicator, switch knob and other indicators that slide to a new place.", "$extensions": { "design.beehexa": { "family": "indicator" } } },
|
|
28
|
+
"expand": { "$type": "transition", "$value": { "duration": "{motion.duration.default}", "delay": "0ms", "timingFunction": "{motion.easing.standard}" }, "$description": "Accordions, trees and side navigation that open and close in place.", "$extensions": { "design.beehexa": { "family": "expand" } } },
|
|
29
|
+
"overlay": {
|
|
30
|
+
"enter": { "$type": "transition", "$value": { "duration": "{motion.duration.default}", "delay": "0ms", "timingFunction": "{motion.easing.enter}" }, "$description": "Tooltips, menus, selects, popovers and toasts coming in. Fade and slide motion.keyframe.offset.enter.", "$extensions": { "design.beehexa": { "family": "overlay" } } },
|
|
31
|
+
"exit": { "$type": "transition", "$value": { "duration": "{motion.duration.fast}", "delay": "0ms", "timingFunction": "{motion.easing.exit}" }, "$description": "Tooltips, menus, selects, popovers and toasts leaving. Fade and slide motion.keyframe.offset.exit.", "$extensions": { "design.beehexa": { "family": "overlay" } } }
|
|
32
|
+
},
|
|
33
|
+
"modal": {
|
|
34
|
+
"enter": { "$type": "transition", "$value": { "duration": "{motion.duration.slow}", "delay": "0ms", "timingFunction": "{motion.easing.enter}" }, "$description": "Dialogs, drawers and side panels opening. Dialogs scale from motion.keyframe.scale; drawers slide motion.keyframe.slide.", "$extensions": { "design.beehexa": { "family": "modal" } } },
|
|
35
|
+
"exit": { "$type": "transition", "$value": { "duration": "{motion.duration.default}", "delay": "0ms", "timingFunction": "{motion.easing.exit}" }, "$description": "Dialogs, drawers and side panels closing.", "$extensions": { "design.beehexa": { "family": "modal" } } }
|
|
36
|
+
},
|
|
37
|
+
"sheet": {
|
|
38
|
+
"enter": { "$type": "transition", "$value": { "duration": "{motion.duration.slower}", "delay": "0ms", "timingFunction": "{motion.easing.enter}" }, "$description": "Full-screen sheets and other large surfaces coming in.", "$extensions": { "design.beehexa": { "family": "sheet" } } },
|
|
39
|
+
"exit": { "$type": "transition", "$value": { "duration": "{motion.duration.slow}", "delay": "0ms", "timingFunction": "{motion.easing.exit}" }, "$description": "Full-screen sheets and other large surfaces leaving.", "$extensions": { "design.beehexa": { "family": "sheet" } } }
|
|
40
|
+
},
|
|
41
|
+
"drop": { "$type": "transition", "$value": { "duration": "{motion.duration.fast}", "delay": "0ms", "timingFunction": "{motion.easing.standard}" }, "$description": "A dragged item dropping into place, or going back when the drag is cancelled.", "$extensions": { "design.beehexa": { "family": "drop" } } },
|
|
42
|
+
"emphasized": { "$type": "transition", "$value": { "duration": "{motion.duration.slowest}", "delay": "0ms", "timingFunction": "{motion.easing.emphasized}" }, "$description": "Rare emphasized moments people see once, such as finishing onboarding.", "$extensions": { "design.beehexa": { "family": "emphasized" } } }
|
|
11
43
|
}
|
|
12
44
|
}
|
package/dist/dtcg/radius.json
CHANGED
|
@@ -3,42 +3,86 @@
|
|
|
3
3
|
"0": {
|
|
4
4
|
"$type": "dimension",
|
|
5
5
|
"$value": "0",
|
|
6
|
-
"$description": "0. Edges that touch the screen, full-width tables and the
|
|
6
|
+
"$description": "0. Edges that touch the screen: the page header, full-width tables and panels that run to the edge."
|
|
7
7
|
},
|
|
8
8
|
"025": {
|
|
9
9
|
"$type": "dimension",
|
|
10
10
|
"$value": "0.125rem",
|
|
11
|
-
"$description": "2 px.
|
|
11
|
+
"$description": "2 px. Small details: badges, checkboxes and keyboard shortcuts."
|
|
12
12
|
},
|
|
13
13
|
"050": {
|
|
14
14
|
"$type": "dimension",
|
|
15
15
|
"$value": "0.25rem",
|
|
16
|
-
"$description": "4 px.
|
|
16
|
+
"$description": "4 px. Buttons, inputs, selects, menu frames and items, tags and status labels; nested parts where the role or nesting rule gives 4 px."
|
|
17
17
|
},
|
|
18
18
|
"075": {
|
|
19
19
|
"$type": "dimension",
|
|
20
20
|
"$value": "0.375rem",
|
|
21
|
-
"$description": "6 px.
|
|
21
|
+
"$description": "6 px. Side navigation items and other roles that require this scale value; standard buttons, inputs and selects use radius.control (4 px)."
|
|
22
22
|
},
|
|
23
23
|
"100": {
|
|
24
24
|
"$type": "dimension",
|
|
25
25
|
"$value": "0.5rem",
|
|
26
|
-
"$description": "8 px.
|
|
26
|
+
"$description": "8 px. Cards, popovers, tooltips, alerts, select popup surfaces and groups of controls with 4 px padding."
|
|
27
27
|
},
|
|
28
28
|
"150": {
|
|
29
29
|
"$type": "dimension",
|
|
30
30
|
"$value": "0.75rem",
|
|
31
|
-
"$description": "12 px.
|
|
31
|
+
"$description": "12 px. Dialogs, drawers and groups of controls with 8 px padding."
|
|
32
32
|
},
|
|
33
33
|
"200": {
|
|
34
34
|
"$type": "dimension",
|
|
35
35
|
"$value": "1rem",
|
|
36
|
-
"$description": "16 px.
|
|
36
|
+
"$description": "16 px. No current component role; retained as a numeric scale value."
|
|
37
37
|
},
|
|
38
38
|
"full": {
|
|
39
39
|
"$type": "dimension",
|
|
40
40
|
"$value": "999px",
|
|
41
|
-
"$description": "Pill and circle. Avatars, switches and
|
|
41
|
+
"$description": "Pill and circle. Avatars and other user UI, switches and chips."
|
|
42
|
+
},
|
|
43
|
+
"control": {
|
|
44
|
+
"$root": {
|
|
45
|
+
"$type": "dimension",
|
|
46
|
+
"$value": "{radius.050}",
|
|
47
|
+
"$description": "Standard buttons, text fields, selects and their joined frames; 4 px at the native 16 px root.",
|
|
48
|
+
"$extensions": { "design.beehexa": { "family": "control" } }
|
|
49
|
+
},
|
|
50
|
+
"small": {
|
|
51
|
+
"$type": "dimension",
|
|
52
|
+
"$value": "{radius.050}",
|
|
53
|
+
"$description": "24 px controls: compact buttons and their fields.",
|
|
54
|
+
"$extensions": { "design.beehexa": { "family": "control" } }
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"item": {
|
|
58
|
+
"$type": "dimension",
|
|
59
|
+
"$value": "{radius.050}",
|
|
60
|
+
"$description": "Items inside menus and lists. Nests inside 8 px radius.overlay with space.overlay; a 4 px menu frame with 4 px padding retains this item role.",
|
|
61
|
+
"$extensions": { "design.beehexa": { "family": "item" } }
|
|
62
|
+
},
|
|
63
|
+
"card": {
|
|
64
|
+
"$type": "dimension",
|
|
65
|
+
"$value": "{radius.100}",
|
|
66
|
+
"$description": "Cards, alerts, banners and in-page containers.",
|
|
67
|
+
"$extensions": { "design.beehexa": { "family": "card" } }
|
|
68
|
+
},
|
|
69
|
+
"overlay": {
|
|
70
|
+
"$type": "dimension",
|
|
71
|
+
"$value": "{radius.100}",
|
|
72
|
+
"$description": "Floating surfaces: popovers, select lists and toasts. Menu frames use radius.050 (4 px), independently of these 8 px surfaces.",
|
|
73
|
+
"$extensions": { "design.beehexa": { "family": "overlay" } }
|
|
74
|
+
},
|
|
75
|
+
"modal": {
|
|
76
|
+
"$type": "dimension",
|
|
77
|
+
"$value": "{radius.150}",
|
|
78
|
+
"$description": "Dialogs, drawers and full-page containers.",
|
|
79
|
+
"$extensions": { "design.beehexa": { "family": "modal" } }
|
|
80
|
+
},
|
|
81
|
+
"pill": {
|
|
82
|
+
"$type": "dimension",
|
|
83
|
+
"$value": "{radius.full}",
|
|
84
|
+
"$description": "Avatars, switches and chips.",
|
|
85
|
+
"$extensions": { "design.beehexa": { "family": "pill" } }
|
|
42
86
|
}
|
|
43
87
|
}
|
|
44
88
|
}
|
package/dist/dtcg/resize.json
CHANGED
|
@@ -42,6 +42,18 @@
|
|
|
42
42
|
"$description": "Hovered or dragged handle surface paired with resize.activeGrip."
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
+
"dot": {
|
|
46
|
+
"size": {
|
|
47
|
+
"$type": "dimension",
|
|
48
|
+
"$value": "{space.025}",
|
|
49
|
+
"$description": "Diameter of each of the exactly three circular grip dots."
|
|
50
|
+
},
|
|
51
|
+
"pitch": {
|
|
52
|
+
"$type": "dimension",
|
|
53
|
+
"$value": "{space.100}",
|
|
54
|
+
"$description": "Equal center-to-center spacing of three dots, symmetric about the handle center in either orientation."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
45
57
|
"color": {
|
|
46
58
|
"$type": "color",
|
|
47
59
|
"$value": "{color.border.bold}",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scrollbar": {
|
|
3
|
+
"$description": "One application scrollbar appearance family across native DOM framework holders and editor/list virtual adapters, preserving each library's own scrolling geometry and behavior. Based on Ant Design Vue 4 Table scrollbar roles; native and virtual rendering consume the same semantic tokens.",
|
|
4
|
+
"width": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"$value": "{space.100}",
|
|
7
|
+
"$description": "Shared vertical width and horizontal height: 0.5rem, nominal 8px at the native 16px root, matching Ant tableScrollThumbSize. Standards-only browsers use their native thin metric; overlay platforms may retain platform geometry. Never duplicate per-axis or per-application sizes."
|
|
8
|
+
},
|
|
9
|
+
"track": {
|
|
10
|
+
"$type": "color",
|
|
11
|
+
"$value": "{color.border}",
|
|
12
|
+
"$description": "Track in both axes, following Ant tableScrollBg = colorSplit, mapped by the Beehexa Ant factory to color.border. Theme aliases resolve in light and dark."
|
|
13
|
+
},
|
|
14
|
+
"thumb": {
|
|
15
|
+
"$type": "color",
|
|
16
|
+
"$value": "{color.text.subtlest}",
|
|
17
|
+
"$description": "Foreground thumb at rest, following Ant tableScrollThumbBg = colorTextPlaceholder, mapped to color.text.subtlest. Keep the opaque thumb distinguishable from scrollbar.track; do not weaken it with opacity."
|
|
18
|
+
},
|
|
19
|
+
"thumbHover": {
|
|
20
|
+
"$type": "color",
|
|
21
|
+
"$value": "{color.text}",
|
|
22
|
+
"$description": "Hovered thumb, following Ant tableScrollThumbBgHover = colorTextHeading, mapped to color.text. Standards-only browsers expose the scroll host hover state rather than a thumb pseudo-element."
|
|
23
|
+
},
|
|
24
|
+
"thumbActive": {
|
|
25
|
+
"$type": "color",
|
|
26
|
+
"$value": "{scrollbar.thumbHover}",
|
|
27
|
+
"$description": "Dragged/pressed thumb; Ant sticky scrollbar uses the same colorTextHeading role for hover and active. Standards-only browsers expose the scroll host active state rather than thumb drag state."
|
|
28
|
+
},
|
|
29
|
+
"corner": {
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"$value": "{scrollbar.track}",
|
|
32
|
+
"$description": "Junction of horizontal and vertical native tracks. Match the track so one two-axis scroll owner has a continuous surface; no separate app color."
|
|
33
|
+
},
|
|
34
|
+
"radius": {
|
|
35
|
+
"$type": "dimension",
|
|
36
|
+
"$value": "{radius.full}",
|
|
37
|
+
"$description": "Fully rounded thumb and track. Ant sticky scrollbar uses borderRadius 100 to form a pill; use the canonical Beehexa full-radius alias rather than copying its fixed number."
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/dist/dtcg/size.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"target": {
|
|
15
15
|
"minimum": { "$type": "dimension", "$value": "1.5rem", "$description": "24 px. Smallest area that responds to a click or tap (WCAG 2.2 SC 2.5.8). Every control and icon button is at least this size." },
|
|
16
|
-
"touch": { "$type": "dimension", "$value": "2.75rem", "$description": "44 px. Area that responds to a tap on touch screens. Extend the hit area around a smaller control
|
|
16
|
+
"touch": { "$type": "dimension", "$value": "2.75rem", "$description": "44 px. Area that responds to a tap on touch screens. Extend the hit area around a smaller control and keep its visible size; rows in lists and menus grow to this height instead." }
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
package/dist/dtcg/spacing.json
CHANGED
|
@@ -13,6 +13,36 @@
|
|
|
13
13
|
"500": { "$type": "dimension", "$value": "2.5rem", "$description": "40 px. Around empty states." },
|
|
14
14
|
"600": { "$type": "dimension", "$value": "3rem", "$description": "48 px. Between page sections." },
|
|
15
15
|
"800": { "$type": "dimension", "$value": "4rem", "$description": "64 px. Between the major sections of a long page. The width of the collapsed side navigation." },
|
|
16
|
-
"1000": { "$type": "dimension", "$value": "5rem", "$description": "80 px. Top and bottom of sign-in and onboarding pages. Use rarely." }
|
|
16
|
+
"1000": { "$type": "dimension", "$value": "5rem", "$description": "80 px. Top and bottom of sign-in and onboarding pages. Use rarely." },
|
|
17
|
+
"control": {
|
|
18
|
+
"x": {
|
|
19
|
+
"$root": { "$type": "dimension", "$value": "{space.150}", "$description": "Side padding of 32 px controls: buttons, text fields, selects.", "$extensions": { "design.beehexa": { "family": "control" } } },
|
|
20
|
+
"small": { "$type": "dimension", "$value": "{space.100}", "$description": "Side padding of 24 px controls.", "$extensions": { "design.beehexa": { "family": "control" } } },
|
|
21
|
+
"large": { "$type": "dimension", "$value": "{space.200}", "$description": "Side padding of 40 px controls on sign-in and onboarding pages.", "$extensions": { "design.beehexa": { "family": "control" } } }
|
|
22
|
+
},
|
|
23
|
+
"gap": { "$type": "dimension", "$value": "{space.050}", "$description": "Between the icon and the label inside a control.", "$extensions": { "design.beehexa": { "family": "control" } } }
|
|
24
|
+
},
|
|
25
|
+
"item": {
|
|
26
|
+
"x": { "$type": "dimension", "$value": "{space.150}", "$description": "Side padding of items in menus, lists and side navigation.", "$extensions": { "design.beehexa": { "family": "item" } } }
|
|
27
|
+
},
|
|
28
|
+
"overlay": {
|
|
29
|
+
"$root": { "$type": "dimension", "$value": "{space.050}", "$description": "Inside menus, selects and popovers, around their items. For 8 px surfaces, radius.overlay = radius.item + space.overlay. A 4 px menu frame has padding equal to its corner, so items keep radius.item.", "$extensions": { "design.beehexa": { "family": "overlay" } } },
|
|
30
|
+
"offset": { "$type": "dimension", "$value": "{space.050}", "$description": "Between a menu, popover or tooltip and the element that opened it.", "$extensions": { "design.beehexa": { "family": "overlay" } } }
|
|
31
|
+
},
|
|
32
|
+
"card": { "$type": "dimension", "$value": "{space.300}", "$description": "Inside cards and panels.", "$extensions": { "design.beehexa": { "family": "card" } } },
|
|
33
|
+
"modal": {
|
|
34
|
+
"$root": { "$type": "dimension", "$value": "{space.300}", "$description": "Inside dialogs and drawers.", "$extensions": { "design.beehexa": { "family": "modal" } } },
|
|
35
|
+
"gap": { "$type": "dimension", "$value": "{space.200}", "$description": "Between the title, body and actions of a dialog or drawer.", "$extensions": { "design.beehexa": { "family": "modal" } } }
|
|
36
|
+
},
|
|
37
|
+
"table": {
|
|
38
|
+
"cell": {
|
|
39
|
+
"x": { "$type": "dimension", "$value": "{space.150}", "$description": "Side padding of table cells.", "$extensions": { "design.beehexa": { "family": "table.cell" } } },
|
|
40
|
+
"y": { "$type": "dimension", "$value": "{space.100}", "$description": "Top and bottom padding of table cells.", "$extensions": { "design.beehexa": { "family": "table.cell" } } }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"stack": {
|
|
44
|
+
"$root": { "$type": "dimension", "$value": "{space.200}", "$description": "Between related items in a column: form fields, list items, cards.", "$extensions": { "design.beehexa": { "family": "stack" } } },
|
|
45
|
+
"group": { "$type": "dimension", "$value": "{space.400}", "$description": "Between groups in a column, such as form sections.", "$extensions": { "design.beehexa": { "family": "stack" } } }
|
|
46
|
+
}
|
|
17
47
|
}
|
|
18
48
|
}
|