@beehexa/design-rules 2611.3.2 → 2611.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +1 -1
  2. package/dist/AGENTS.md +1 -7
  3. package/dist/catalog.json +153 -125
  4. package/dist/docs/scripts/color-pairs.mjs +5 -1
  5. package/dist/docs/scripts/token-utils.mjs +16 -1
  6. package/dist/docs/src/components/ColorDemo.astro +5 -5
  7. package/dist/docs/src/components/ElevationDemo.astro +196 -0
  8. package/dist/docs/src/components/LayoutDemo.astro +1 -1
  9. package/dist/docs/src/components/OpacityDemo.astro +95 -0
  10. package/dist/docs/src/components/ShapeDemo.astro +11 -10
  11. package/dist/docs/src/components/ShapePin.astro +5 -3
  12. package/dist/docs/src/components/ZIndexDemo.astro +102 -0
  13. package/dist/docs/src/content/foundations/styles/border.mdx +3 -3
  14. package/dist/docs/src/content/foundations/styles/color/usage.mdx +11 -4
  15. package/dist/docs/src/content/foundations/styles/data-visualization.mdx +74 -6
  16. package/dist/docs/src/content/foundations/styles/elevation.mdx +66 -3
  17. package/dist/docs/src/content/foundations/styles/icons/usage.mdx +9 -6
  18. package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +10 -0
  19. package/dist/docs/src/content/foundations/styles/opacity.mdx +43 -5
  20. package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -0
  21. package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
  22. package/dist/docs/src/content/foundations/styles/z-index.mdx +63 -5
  23. package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +125 -18
  24. package/dist/docs/src/content/tools/application-content.mdx +42 -0
  25. package/dist/docs/src/content/tools/editors.mdx +27 -0
  26. package/dist/docs/src/content/tools/mermaid.mdx +95 -0
  27. package/dist/docs/src/content/tools/vueflow.mdx +121 -0
  28. package/dist/docs/src/content-vi/foundations/styles/border.mdx +3 -3
  29. package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +11 -4
  30. package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +75 -6
  31. package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +75 -0
  32. package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +9 -6
  33. package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +10 -0
  34. package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +43 -5
  35. package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -0
  36. package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
  37. package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +63 -5
  38. package/dist/docs/src/lib/token-descriptions-vi.ts +21 -5
  39. package/dist/docs/src/styles/chrome.css +14 -14
  40. package/dist/docs/src/styles/color.css +19 -32
  41. package/dist/docs/src/styles/docs.css +18 -34
  42. package/dist/docs/src/styles/elevation.css +83 -0
  43. package/dist/docs/src/styles/global.css +1 -10
  44. package/dist/docs/src/styles/icons.css +11 -15
  45. package/dist/docs/src/styles/kit.css +112 -0
  46. package/dist/docs/src/styles/layout.css +1 -6
  47. package/dist/docs/src/styles/opacity.css +43 -0
  48. package/dist/docs/src/styles/shapes.css +15 -19
  49. package/dist/docs/src/styles/tokens.css +1282 -3
  50. package/dist/docs/src/styles/tokens.js +358 -3
  51. package/dist/docs/src/styles/typography.css +4 -7
  52. package/dist/docs/src/styles/zindex.css +56 -0
  53. package/dist/docs/tokens/border.json +1 -1
  54. package/dist/docs/tokens/color.json +57 -3
  55. package/dist/docs/tokens/content.json +19 -0
  56. package/dist/docs/tokens/diagram.json +48 -0
  57. package/dist/docs/tokens/editor.json +129 -0
  58. package/dist/docs/tokens/elevation.json +15 -5
  59. package/dist/docs/tokens/flow.json +497 -0
  60. package/dist/docs/tokens/opacity.json +9 -0
  61. package/dist/docs/tokens/resize.json +67 -0
  62. package/dist/docs/tokens/size.json +6 -0
  63. package/dist/docs/tokens/spacing.json +4 -4
  64. package/dist/docs/tokens/typography.json +5 -0
  65. package/dist/docs/tokens/visualization.json +123 -0
  66. package/dist/docs/tokens/z-index.json +49 -0
  67. package/dist/index.js +153 -125
  68. package/package.json +6 -1
@@ -0,0 +1,48 @@
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 drawing and image-export sheet; pair with node and edge text." },
5
+ "node-fill": { "$type": "color", "$value": "{color.surface}", "$description": "Default and indeterminate node fill." },
6
+ "node-border": { "$type": "color", "$value": "{color.border.bold}", "$description": "Meaningful default and indeterminate node boundary." },
7
+ "node-title": { "$type": "color", "$value": "{color.text}", "$description": "Node title on node-fill." },
8
+ "node-desc": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Descriptive node and inspector text on neutral surfaces." },
9
+ "tile-bg": { "$type": "color", "$value": "{color.background.neutral}", "$description": "Step-category glyph plate; not a status." },
10
+ "tile-glyph": { "$type": "color", "$value": "{color.icon}", "$description": "Step-category glyph on tile-bg." },
11
+ "state-ran-ok": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Solid boundary of a step that ran without a reported failure. Descriptive completion evidence, not success green or warning orange." },
12
+ "ran-ok-fill": { "$type": "color", "$value": "{color.surface}", "$description": "Ran step fill; retain text and completion marker as non-colour cues." },
13
+ "fail-stroke": { "$type": "color", "$value": "{color.border.danger}", "$description": "Failed node boundary; pair with fail-fill and a failure marker." },
14
+ "fail-fill": { "$type": "color", "$value": "{color.background.danger.subtle}", "$description": "Failed execution node fill." },
15
+ "fail-title": { "$type": "color", "$value": "{color.text.danger}", "$description": "Failure title on fail-fill." },
16
+ "fail-desc": { "$type": "color", "$value": "{color.text.danger}", "$description": "Failure description on fail-fill." },
17
+ "unreached-fill": { "$type": "color", "$value": "{color.surface.subtle}", "$description": "Never-reached node fill; not a disabled control." },
18
+ "unreached-stroke": { "$type": "color", "$value": "{color.border.bold}", "$description": "Solid never-reached boundary with an explicit state label." },
19
+ "unreached-title": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Never-reached title on unreached-fill." },
20
+ "unreached-desc": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Never-reached description on unreached-fill." },
21
+ "nottaken-stroke": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Dashed not-taken boundary; dashes and label distinguish it from never reached." },
22
+ "nottaken-fill": { "$type": "color", "$value": "{color.surface}", "$description": "Not-taken branch fill." },
23
+ "nottaken-title": { "$type": "color", "$value": "{color.text}", "$description": "Not-taken title on nottaken-fill." },
24
+ "nottaken-desc": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Not-taken description on nottaken-fill." },
25
+ "badge-bg": { "$type": "color", "$value": "{color.surface}", "$description": "Repeat-count plate; repetition alone is not a warning." },
26
+ "badge-text": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Descriptive repeat count on badge-bg." },
27
+ "badge-border": { "$type": "color", "$value": "{color.border.bold}", "$description": "Repeat-count outline." },
28
+ "edge": { "$type": "color", "$value": "{color.border.bold}", "$description": "Meaningful neutral relation line and arrow." },
29
+ "edge-label-text": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Relation label on edge-label-bg." },
30
+ "edge-label-bg": { "$type": "color", "$value": "{color.surface.page}", "$description": "Opaque relation label plate." },
31
+ "panel-bg": { "$type": "color", "$value": "{color.surface}", "$description": "Inspector evidence surface." },
32
+ "panel-border": { "$type": "color", "$value": "{color.border}", "$description": "Decorative inspector divider, not an interactive boundary." },
33
+ "code-bg": { "$type": "color", "$value": "{color.surface}", "$description": "Structured key/value evidence surface; full code blocks use color.code roles." },
34
+ "code-key": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Evidence field label on code-bg; not a link." },
35
+ "code-value": { "$type": "color", "$value": "{color.text}", "$description": "Evidence field value on code-bg." },
36
+ "selection-ring": { "$type": "color", "$value": "{color.border.focus}", "$description": "Independent outer selection/hover ring on canvas; never replace run-state paint." },
37
+ "node-font": { "$type": "font", "$value": "{font.body.default}", "$description": "Default Mermaid node label; inherits Vietnamese line-height." },
38
+ "card-width": { "$type": "dimension", "$value": "15rem", "$description": "240px measurable execution-step label card width; preserve fixed layout topology." },
39
+ "tile-size": { "$type": "dimension", "$value": "2.75rem", "$description": "44px step-category glyph tile inside execution-card labels, not an interaction target." },
40
+ "glyph-size": { "$type": "dimension", "$value": "2rem", "$description": "32px category symbol ink size within tile-size; this is a glyph, not display text." },
41
+ "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." },
42
+ "minimum-height": { "$type": "dimension", "$value": "20rem", "$description": "320px minimum authoring-preview viewport budget. Read-only split diagrams instead shrink with their enclosing pane." },
43
+ "evidence-height": { "$type": "dimension", "$value": "13.75rem", "$description": "220px embedded structured-result viewer height; content scrolls within this budget." },
44
+ "evidence-minimum-height": { "$type": "dimension", "$value": "12rem", "$description": "192px minimum pane budget for multiple request bodies so one expanded part does not hide another." },
45
+ "padding": { "$type": "dimension", "$value": "{space.100}", "$description": "Internal Mermaid node padding." },
46
+ "export-padding": { "$type": "dimension", "$value": "{space.300}", "$description": "Breathing room around fitted and exported drawing bounds." }
47
+ }
48
+ }
@@ -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
+ }
@@ -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 sit on the page.",
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 24px 80px rgb(43 42 40 / 14%)",
17
- "$description": "Dropdowns, popovers and dialogs.",
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 24px 80px rgb(0 0 0 / 50%)"
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
+ }