@beehexa/design-tokens 2611.3.3 → 2611.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -3
- package/dist/dtcg/border.json +1 -1
- package/dist/dtcg/color.json +75 -4
- package/dist/dtcg/content.json +24 -0
- package/dist/dtcg/diagram.json +54 -0
- package/dist/dtcg/editor.json +129 -0
- package/dist/dtcg/elevation.json +15 -5
- package/dist/dtcg/flow.json +497 -0
- package/dist/dtcg/layout.json +4 -0
- package/dist/dtcg/motion.json +37 -5
- package/dist/dtcg/opacity.json +9 -0
- package/dist/dtcg/radius.json +52 -8
- package/dist/dtcg/resize.json +79 -0
- package/dist/dtcg/scrollbar.json +40 -0
- package/dist/dtcg/size.json +7 -1
- package/dist/dtcg/spacing.json +35 -5
- package/dist/dtcg/switch.json +280 -0
- package/dist/dtcg/typography.json +5 -0
- package/dist/dtcg/visualization.json +123 -0
- package/dist/dtcg/z-index.json +49 -0
- package/dist/index.d.ts +6671 -872
- package/dist/index.js +6678 -871
- package/dist/scrollbars.css +74 -0
- package/dist/tokens.css +420 -4
- package/dist/tokens.pixels.css +420 -4
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -26,12 +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.
|
|
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.
|
|
32
34
|
- `@beehexa/design-tokens/dtcg/color.json` (and every other original `tokens/*.json`) exposes the unchanged source data.
|
|
33
35
|
- `@beehexa/design-tokens/package.json` exposes installed origin/version metadata.
|
|
34
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
|
+
|
|
35
80
|
## Source authority and limits
|
|
36
81
|
|
|
37
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.
|
|
@@ -40,4 +85,4 @@ Usage choices remain governed by the complete installed rule documents, includin
|
|
|
40
85
|
|
|
41
86
|
## Producer commands
|
|
42
87
|
|
|
43
|
-
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/border.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"accent": {
|
|
20
20
|
"$type": "dimension",
|
|
21
21
|
"$value": "4px",
|
|
22
|
-
"$description": "4 px. A status or emphasis bar on one edge:
|
|
22
|
+
"$description": "4 px. A status or emphasis bar on one edge: rows with an error, callouts and quotes. Pair with a status or brand border colour."
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
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",
|
|
@@ -1166,7 +1183,7 @@
|
|
|
1166
1183
|
"$root": {
|
|
1167
1184
|
"$type": "color",
|
|
1168
1185
|
"$value": "{color.brand.white}",
|
|
1169
|
-
"$description": "Cards
|
|
1186
|
+
"$description": "Cards and panels. One step lighter than the page in dark.",
|
|
1170
1187
|
"$extensions": {
|
|
1171
1188
|
"design.beehexa": {
|
|
1172
1189
|
"dark": "{color.graphite.2}"
|
|
@@ -1186,12 +1203,66 @@
|
|
|
1186
1203
|
"subtle": {
|
|
1187
1204
|
"$type": "color",
|
|
1188
1205
|
"$value": "{color.graphite.2}",
|
|
1189
|
-
"$description": "
|
|
1206
|
+
"$description": "Shared global header/sidebar shell surface, mobile navigation drawer, table headers and quiet areas."
|
|
1207
|
+
},
|
|
1208
|
+
"overlay": {
|
|
1209
|
+
"$root": {
|
|
1210
|
+
"$type": "color",
|
|
1211
|
+
"$value": "{color.brand.white}",
|
|
1212
|
+
"$description": "Menus, popovers, select lists, toasts, dialogs and drawers. One step lighter than color.surface in dark, so a floating layer reads above cards.",
|
|
1213
|
+
"$extensions": {
|
|
1214
|
+
"design.beehexa": {
|
|
1215
|
+
"dark": "{color.graphite.3}"
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
"hover": {
|
|
1220
|
+
"$type": "color",
|
|
1221
|
+
"$value": "{color.graphite.2}",
|
|
1222
|
+
"$description": "Menu item or option on hover, inside color.surface.overlay.",
|
|
1223
|
+
"$extensions": {
|
|
1224
|
+
"design.beehexa": {
|
|
1225
|
+
"dark": "{color.graphite.4}"
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
},
|
|
1229
|
+
"pressed": {
|
|
1230
|
+
"$type": "color",
|
|
1231
|
+
"$value": "{color.graphite.3}",
|
|
1232
|
+
"$description": "Menu item or option when pressed, inside color.surface.overlay.",
|
|
1233
|
+
"$extensions": {
|
|
1234
|
+
"design.beehexa": {
|
|
1235
|
+
"dark": "{color.graphite.5}"
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
},
|
|
1239
|
+
"selected": {
|
|
1240
|
+
"$root": {
|
|
1241
|
+
"$type": "color",
|
|
1242
|
+
"$value": "{color.graphite.3}",
|
|
1243
|
+
"$description": "Selected option inside color.surface.overlay. Always add a second cue: a check or bold text.",
|
|
1244
|
+
"$extensions": {
|
|
1245
|
+
"design.beehexa": {
|
|
1246
|
+
"dark": "{color.graphite.5}"
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
"hover": {
|
|
1251
|
+
"$type": "color",
|
|
1252
|
+
"$value": "{color.graphite.4}",
|
|
1253
|
+
"$description": "Selected option on hover, inside color.surface.overlay. In dark it stays on graphite 5, as graphite 6 fails text and border contrast; the check mark carries the state.",
|
|
1254
|
+
"$extensions": {
|
|
1255
|
+
"design.beehexa": {
|
|
1256
|
+
"dark": "{color.graphite.5}"
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1190
1261
|
},
|
|
1191
1262
|
"inverse": {
|
|
1192
1263
|
"$type": "color",
|
|
1193
1264
|
"$value": "{color.graphite.12}",
|
|
1194
|
-
"$description": "Inverse surface: tooltips
|
|
1265
|
+
"$description": "Inverse surface: tooltips. Text on top: text.inverse."
|
|
1195
1266
|
},
|
|
1196
1267
|
"scrim": {
|
|
1197
1268
|
"$type": "color",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"content": {
|
|
3
|
+
"$description": "Reusable application-content identity, empty-state and read-only step-progress geometry. Identity colours never encode operational status.",
|
|
4
|
+
"partner-logo": {
|
|
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
|
+
},
|
|
8
|
+
"avatar": {
|
|
9
|
+
"size": { "$type": "dimension", "$value": "2.5rem", "$description": "Default person or permission-member identity avatar; a visual identity, not a hit target." }
|
|
10
|
+
},
|
|
11
|
+
"identity-mark": {
|
|
12
|
+
"size": { "$type": "dimension", "$value": "2.75rem", "$description": "System/provider identity container when shown beside content labels." },
|
|
13
|
+
"image-size": { "$type": "dimension", "$value": "1.5rem", "$description": "Contained system/provider identity glyph within the identity-mark container." }
|
|
14
|
+
},
|
|
15
|
+
"empty-illustration": {
|
|
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." }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"diagram": {
|
|
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 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." },
|
|
9
|
+
"node-fill": { "$type": "color", "$value": "{color.surface}", "$description": "Default and indeterminate node fill." },
|
|
10
|
+
"node-border": { "$type": "color", "$value": "{color.border.bold}", "$description": "Meaningful default and indeterminate node boundary." },
|
|
11
|
+
"node-title": { "$type": "color", "$value": "{color.text}", "$description": "Node title on node-fill." },
|
|
12
|
+
"node-desc": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Descriptive node and inspector text on neutral surfaces." },
|
|
13
|
+
"tile-bg": { "$type": "color", "$value": "{color.background.neutral}", "$description": "Step-category glyph plate; not a status." },
|
|
14
|
+
"tile-glyph": { "$type": "color", "$value": "{color.icon}", "$description": "Step-category glyph on tile-bg." },
|
|
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." },
|
|
16
|
+
"ran-ok-fill": { "$type": "color", "$value": "{color.surface}", "$description": "Ran step fill; retain text and completion marker as non-colour cues." },
|
|
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." },
|
|
20
|
+
"fail-fill": { "$type": "color", "$value": "{color.background.danger.subtle}", "$description": "Failed execution node fill." },
|
|
21
|
+
"fail-title": { "$type": "color", "$value": "{color.text.danger}", "$description": "Failure title on fail-fill." },
|
|
22
|
+
"fail-desc": { "$type": "color", "$value": "{color.text.danger}", "$description": "Failure description on fail-fill." },
|
|
23
|
+
"unreached-fill": { "$type": "color", "$value": "{color.surface.subtle}", "$description": "Never-reached node fill; not a disabled control." },
|
|
24
|
+
"unreached-stroke": { "$type": "color", "$value": "{color.border.bold}", "$description": "Solid never-reached boundary with an explicit state label." },
|
|
25
|
+
"unreached-title": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Never-reached title on unreached-fill." },
|
|
26
|
+
"unreached-desc": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Never-reached description on unreached-fill." },
|
|
27
|
+
"nottaken-stroke": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Dashed not-taken boundary; dashes and label distinguish it from never reached." },
|
|
28
|
+
"nottaken-fill": { "$type": "color", "$value": "{color.surface}", "$description": "Not-taken branch fill." },
|
|
29
|
+
"nottaken-title": { "$type": "color", "$value": "{color.text}", "$description": "Not-taken title on nottaken-fill." },
|
|
30
|
+
"nottaken-desc": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Not-taken description on nottaken-fill." },
|
|
31
|
+
"badge-bg": { "$type": "color", "$value": "{color.surface}", "$description": "Repeat-count plate; repetition alone is not a warning." },
|
|
32
|
+
"badge-text": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Descriptive repeat count on badge-bg." },
|
|
33
|
+
"badge-border": { "$type": "color", "$value": "{color.border.bold}", "$description": "Repeat-count outline." },
|
|
34
|
+
"edge": { "$type": "color", "$value": "{color.border.bold}", "$description": "Meaningful neutral relation line and arrow." },
|
|
35
|
+
"edge-label-text": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Relation label on edge-label-bg." },
|
|
36
|
+
"edge-label-bg": { "$type": "color", "$value": "{color.surface.page}", "$description": "Opaque relation label plate." },
|
|
37
|
+
"panel-bg": { "$type": "color", "$value": "{color.surface}", "$description": "Inspector evidence surface." },
|
|
38
|
+
"panel-border": { "$type": "color", "$value": "{color.border}", "$description": "Decorative inspector divider, not an interactive boundary." },
|
|
39
|
+
"code-bg": { "$type": "color", "$value": "{color.surface}", "$description": "Structured key/value evidence surface; full code blocks use color.code roles." },
|
|
40
|
+
"code-key": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Evidence field label on code-bg; not a link." },
|
|
41
|
+
"code-value": { "$type": "color", "$value": "{color.text}", "$description": "Evidence field value on code-bg." },
|
|
42
|
+
"selection-ring": { "$type": "color", "$value": "{color.border.focus}", "$description": "Independent outer selection/hover ring on canvas; never replace run-state paint." },
|
|
43
|
+
"node-font": { "$type": "font", "$value": "{font.body.default}", "$description": "Default Mermaid node label; inherits Vietnamese line-height." },
|
|
44
|
+
"card-width": { "$type": "dimension", "$value": "15rem", "$description": "240px measurable execution-step label card width; preserve fixed layout topology." },
|
|
45
|
+
"tile-size": { "$type": "dimension", "$value": "2.75rem", "$description": "44px step-category glyph tile inside execution-card labels, not an interaction target." },
|
|
46
|
+
"glyph-size": { "$type": "dimension", "$value": "2rem", "$description": "32px category symbol ink size within tile-size; this is a glyph, not display text." },
|
|
47
|
+
"preview-height": { "$type": "dimension", "$value": "45rem", "$description": "720px embedded authoring preview budget shared by the diagram and adjacent step-detail panel; fullscreen fills its host instead." },
|
|
48
|
+
"minimum-height": { "$type": "dimension", "$value": "20rem", "$description": "320px minimum authoring-preview viewport budget. Read-only split diagrams instead shrink with their enclosing pane." },
|
|
49
|
+
"evidence-height": { "$type": "dimension", "$value": "13.75rem", "$description": "220px embedded structured-result viewer height; content scrolls within this budget." },
|
|
50
|
+
"evidence-minimum-height": { "$type": "dimension", "$value": "12rem", "$description": "192px minimum pane budget for multiple request bodies so one expanded part does not hide another." },
|
|
51
|
+
"padding": { "$type": "dimension", "$value": "{space.100}", "$description": "Internal Mermaid node padding." },
|
|
52
|
+
"export-padding": { "$type": "dimension", "$value": "{space.300}", "$description": "Breathing room around fitted and exported drawing bounds." }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"editor": {
|
|
3
|
+
"background": {
|
|
4
|
+
"$type": "color",
|
|
5
|
+
"$value": "{color.surface}",
|
|
6
|
+
"$description": "Editor code canvas; pair with editor.text and syntax roles."
|
|
7
|
+
},
|
|
8
|
+
"text": {
|
|
9
|
+
"$type": "color",
|
|
10
|
+
"$value": "{color.text}",
|
|
11
|
+
"$description": "Editor default code foreground."
|
|
12
|
+
},
|
|
13
|
+
"gutter": {
|
|
14
|
+
"$type": "color",
|
|
15
|
+
"$value": "{color.surface.subtle}",
|
|
16
|
+
"$description": "Line-number gutter surface."
|
|
17
|
+
},
|
|
18
|
+
"lineNumber": {
|
|
19
|
+
"$type": "color",
|
|
20
|
+
"$value": "{color.text.subtlest}",
|
|
21
|
+
"$description": "Line numbers on the gutter."
|
|
22
|
+
},
|
|
23
|
+
"selection": {
|
|
24
|
+
"$type": "color",
|
|
25
|
+
"$value": "{color.background.selected}",
|
|
26
|
+
"$description": "Selected code range, with native selection/caret cues."
|
|
27
|
+
},
|
|
28
|
+
"lineHighlight": {
|
|
29
|
+
"$type": "color",
|
|
30
|
+
"$value": "{color.surface.subtle}",
|
|
31
|
+
"$description": "Current editor line; caret and gutter provide additional cues."
|
|
32
|
+
},
|
|
33
|
+
"cursor": {
|
|
34
|
+
"$type": "color",
|
|
35
|
+
"$value": "{color.text}",
|
|
36
|
+
"$description": "Insertion caret."
|
|
37
|
+
},
|
|
38
|
+
"border": {
|
|
39
|
+
"$type": "color",
|
|
40
|
+
"$value": "{color.border}",
|
|
41
|
+
"$description": "Editor frame."
|
|
42
|
+
},
|
|
43
|
+
"syntax": {
|
|
44
|
+
"comment": {
|
|
45
|
+
"$type": "color",
|
|
46
|
+
"$value": "{color.text.subtlest}",
|
|
47
|
+
"$description": "Comments: neutral, readable, no dimming."
|
|
48
|
+
},
|
|
49
|
+
"string": {
|
|
50
|
+
"$type": "color",
|
|
51
|
+
"$value": "{color.text.success}",
|
|
52
|
+
"$description": "String literals, not success state indicators."
|
|
53
|
+
},
|
|
54
|
+
"number": {
|
|
55
|
+
"$type": "color",
|
|
56
|
+
"$value": "{color.text.warning}",
|
|
57
|
+
"$description": "Numeric literals, not warning state indicators."
|
|
58
|
+
},
|
|
59
|
+
"keyword": {
|
|
60
|
+
"$type": "color",
|
|
61
|
+
"$value": "{color.text.info}",
|
|
62
|
+
"$description": "Language keywords, not info state indicators."
|
|
63
|
+
},
|
|
64
|
+
"type": {
|
|
65
|
+
"$type": "color",
|
|
66
|
+
"$value": "{color.text}",
|
|
67
|
+
"$description": "Types and identifiers."
|
|
68
|
+
},
|
|
69
|
+
"delimiter": {
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$value": "{color.text.subtle}",
|
|
72
|
+
"$description": "Punctuation and delimiters."
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"diff": {
|
|
76
|
+
"inserted": {
|
|
77
|
+
"background": {
|
|
78
|
+
"$type": "color",
|
|
79
|
+
"$value": "{color.background.success.subtle}",
|
|
80
|
+
"$description": "Inserted diff text and lines; show + gutter marker."
|
|
81
|
+
},
|
|
82
|
+
"text": {
|
|
83
|
+
"$type": "color",
|
|
84
|
+
"$value": "{color.text.success}",
|
|
85
|
+
"$description": "Inserted diff annotation; + or inserted label required."
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"removed": {
|
|
89
|
+
"background": {
|
|
90
|
+
"$type": "color",
|
|
91
|
+
"$value": "{color.background.danger.subtle}",
|
|
92
|
+
"$description": "Removed diff text and lines; show − gutter marker."
|
|
93
|
+
},
|
|
94
|
+
"text": {
|
|
95
|
+
"$type": "color",
|
|
96
|
+
"$value": "{color.text.danger}",
|
|
97
|
+
"$description": "Removed diff annotation; − or removed label required."
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"font": {
|
|
102
|
+
"family": {
|
|
103
|
+
"$type": "fontFamily",
|
|
104
|
+
"$value": "{font.family.mono}",
|
|
105
|
+
"$description": "Editor numeric API family from code.default."
|
|
106
|
+
},
|
|
107
|
+
"size": {
|
|
108
|
+
"$type": "dimension",
|
|
109
|
+
"$value": "{font.size.200}",
|
|
110
|
+
"$description": "Editor numeric API size from code.default: 14px nominal."
|
|
111
|
+
},
|
|
112
|
+
"lineHeight": {
|
|
113
|
+
"$type": "dimension",
|
|
114
|
+
"$value": "1.25rem",
|
|
115
|
+
"$description": "Editor numeric API line height: 20px nominal; Vietnamese 24px.",
|
|
116
|
+
"$extensions": {
|
|
117
|
+
"design.beehexa": {
|
|
118
|
+
"vi": "1.5rem"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"weight": {
|
|
123
|
+
"$type": "fontWeight",
|
|
124
|
+
"$value": "{font.weight.regular}",
|
|
125
|
+
"$description": "Editor code weight."
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
package/dist/dtcg/elevation.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"raised": {
|
|
5
5
|
"$type": "shadow",
|
|
6
6
|
"$value": "0 1px 2px rgb(43 42 40 / 8%), 0 1px 3px rgb(43 42 40 / 6%)",
|
|
7
|
-
"$description": "Cards that
|
|
7
|
+
"$description": "Cards, including cards that only show content, and a card being dragged. Stronger in dark mode.",
|
|
8
8
|
"$extensions": {
|
|
9
9
|
"design.beehexa": {
|
|
10
10
|
"dark": "0 1px 2px rgb(0 0 0 / 40%), 0 1px 3px rgb(0 0 0 / 30%)"
|
|
@@ -13,14 +13,24 @@
|
|
|
13
13
|
},
|
|
14
14
|
"overlay": {
|
|
15
15
|
"$type": "shadow",
|
|
16
|
-
"$value": "0
|
|
17
|
-
"$description": "Dropdowns, popovers and
|
|
16
|
+
"$value": "0 4px 12px rgb(43 42 40 / 15%)",
|
|
17
|
+
"$description": "Dropdowns, menus, popovers, select lists and toasts. Pair with color.surface.overlay.",
|
|
18
18
|
"$extensions": {
|
|
19
19
|
"design.beehexa": {
|
|
20
|
-
"dark": "0
|
|
20
|
+
"dark": "0 4px 12px rgb(0 0 0 / 50%)"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"modal": {
|
|
25
|
+
"$type": "shadow",
|
|
26
|
+
"$value": "0 8px 24px rgb(43 42 40 / 15%)",
|
|
27
|
+
"$description": "Dialogs, drawers and full sheets that sit on the scrim. Pair with color.surface.overlay.",
|
|
28
|
+
"$extensions": {
|
|
29
|
+
"design.beehexa": {
|
|
30
|
+
"dark": "0 8px 24px rgb(0 0 0 / 50%)"
|
|
21
31
|
}
|
|
22
32
|
}
|
|
23
33
|
}
|
|
24
34
|
}
|
|
25
35
|
}
|
|
26
|
-
}
|
|
36
|
+
}
|