@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.
- package/README.md +1 -1
- package/dist/AGENTS.md +1 -7
- package/dist/catalog.json +153 -125
- package/dist/docs/scripts/color-pairs.mjs +5 -1
- package/dist/docs/scripts/token-utils.mjs +16 -1
- package/dist/docs/src/components/ColorDemo.astro +5 -5
- package/dist/docs/src/components/ElevationDemo.astro +196 -0
- package/dist/docs/src/components/LayoutDemo.astro +1 -1
- package/dist/docs/src/components/OpacityDemo.astro +95 -0
- package/dist/docs/src/components/ShapeDemo.astro +11 -10
- package/dist/docs/src/components/ShapePin.astro +5 -3
- package/dist/docs/src/components/ZIndexDemo.astro +102 -0
- package/dist/docs/src/content/foundations/styles/border.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +11 -4
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +74 -6
- package/dist/docs/src/content/foundations/styles/elevation.mdx +66 -3
- package/dist/docs/src/content/foundations/styles/icons/usage.mdx +9 -6
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +10 -0
- package/dist/docs/src/content/foundations/styles/opacity.mdx +43 -5
- package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -0
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/z-index.mdx +63 -5
- package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +125 -18
- package/dist/docs/src/content/tools/application-content.mdx +42 -0
- package/dist/docs/src/content/tools/editors.mdx +27 -0
- package/dist/docs/src/content/tools/mermaid.mdx +95 -0
- package/dist/docs/src/content/tools/vueflow.mdx +121 -0
- package/dist/docs/src/content-vi/foundations/styles/border.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +11 -4
- package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +75 -6
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +75 -0
- package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +9 -6
- package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +10 -0
- package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +43 -5
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -0
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +63 -5
- package/dist/docs/src/lib/token-descriptions-vi.ts +21 -5
- package/dist/docs/src/styles/chrome.css +14 -14
- package/dist/docs/src/styles/color.css +19 -32
- package/dist/docs/src/styles/docs.css +18 -34
- package/dist/docs/src/styles/elevation.css +83 -0
- package/dist/docs/src/styles/global.css +1 -10
- package/dist/docs/src/styles/icons.css +11 -15
- package/dist/docs/src/styles/kit.css +112 -0
- package/dist/docs/src/styles/layout.css +1 -6
- package/dist/docs/src/styles/opacity.css +43 -0
- package/dist/docs/src/styles/shapes.css +15 -19
- package/dist/docs/src/styles/tokens.css +1282 -3
- package/dist/docs/src/styles/tokens.js +358 -3
- package/dist/docs/src/styles/typography.css +4 -7
- package/dist/docs/src/styles/zindex.css +56 -0
- package/dist/docs/tokens/border.json +1 -1
- package/dist/docs/tokens/color.json +57 -3
- package/dist/docs/tokens/content.json +19 -0
- package/dist/docs/tokens/diagram.json +48 -0
- package/dist/docs/tokens/editor.json +129 -0
- package/dist/docs/tokens/elevation.json +15 -5
- package/dist/docs/tokens/flow.json +497 -0
- package/dist/docs/tokens/opacity.json +9 -0
- package/dist/docs/tokens/resize.json +67 -0
- package/dist/docs/tokens/size.json +6 -0
- package/dist/docs/tokens/spacing.json +4 -4
- package/dist/docs/tokens/typography.json +5 -0
- package/dist/docs/tokens/visualization.json +123 -0
- package/dist/docs/tokens/z-index.json +49 -0
- package/dist/index.js +153 -125
- package/package.json +6 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"visualization": {
|
|
3
|
+
"$description": "Operational charts and timelines. Categorical identities are not statuses. Labels, legends, shapes and values carry meaning independently of colour; see foundations/styles/data-visualization.",
|
|
4
|
+
"metric": {
|
|
5
|
+
"total-jobs": { "$type": "color", "$value": "{color.text.info}", "$description": "Total execution volume, not an execution status; pair with a named series and values." },
|
|
6
|
+
"success-rate": { "$type": "color", "$value": "{color.text.success}", "$description": "Successful execution proportion; thresholds remain explicit in text." },
|
|
7
|
+
"completed": { "$type": "color", "$value": "{color.text.success}", "$description": "Completed execution count, with a completed label." },
|
|
8
|
+
"failed": { "$type": "color", "$value": "{color.text.danger}", "$description": "Failed execution count, with a failed label." },
|
|
9
|
+
"active-jobs": { "$type": "color", "$value": "{color.text.info}", "$description": "Currently active executions, not a success assessment." },
|
|
10
|
+
"avg-execution-time": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Average execution duration; duration alone does not imply warning." },
|
|
11
|
+
"queue-depth": { "$type": "color", "$value": "{color.text}", "$description": "Queued execution volume; backlog alone does not imply failure." }
|
|
12
|
+
},
|
|
13
|
+
"job-type": {
|
|
14
|
+
"queue-status": { "$type": "color", "$value": "{color.blue.11}", "$description": "Queue-status categorical identity. Never infer processing status from this colour." },
|
|
15
|
+
"sync-history": { "$type": "color", "$value": "{color.green.11}", "$description": "Sync-history categorical identity. Never infer success from this colour." },
|
|
16
|
+
"polling-jobs": { "$type": "color", "$value": "{color.orange.11}", "$description": "Polling categorical identity. Never infer warning from this colour." },
|
|
17
|
+
"generic-jobs": { "$type": "color", "$value": "{color.graphite.11}", "$description": "Generic-job categorical identity. Always include job-type text or a distinct glyph." }
|
|
18
|
+
},
|
|
19
|
+
"priority": {
|
|
20
|
+
"1": { "$type": "color", "$value": "{color.text.danger}", "$description": "Highest queue urgency, explicitly labelled P1; not a failed execution." },
|
|
21
|
+
"2": { "$type": "color", "$value": "{color.text.warning}", "$description": "High queue urgency, explicitly labelled P2; not a warning outcome." },
|
|
22
|
+
"3": { "$type": "color", "$value": "{color.text.info}", "$description": "Normal queue urgency, explicitly labelled P3." },
|
|
23
|
+
"4": { "$type": "color", "$value": "{color.text.subtle}", "$description": "Low queue urgency, explicitly labelled P4; not a success outcome." },
|
|
24
|
+
"5": { "$type": "color", "$value": "{color.text.subtlest}", "$description": "Lowest queue urgency, explicitly labelled P5." }
|
|
25
|
+
},
|
|
26
|
+
"traffic": {
|
|
27
|
+
"healthy": {
|
|
28
|
+
"fill": {
|
|
29
|
+
"$type": "color",
|
|
30
|
+
"$value": "{color.background.success.subtle}",
|
|
31
|
+
"$description": "Accepted traffic; show its label."
|
|
32
|
+
},
|
|
33
|
+
"outline": {
|
|
34
|
+
"$type": "color",
|
|
35
|
+
"$value": "{color.border.success}",
|
|
36
|
+
"$description": "Accepted traffic; show its label."
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"attention": {
|
|
40
|
+
"fill": {
|
|
41
|
+
"$type": "color",
|
|
42
|
+
"$value": "{color.background.warning.subtle}",
|
|
43
|
+
"$description": "Lower reject-ratio threshold; distinct label and pattern from degraded."
|
|
44
|
+
},
|
|
45
|
+
"outline": {
|
|
46
|
+
"$type": "color",
|
|
47
|
+
"$value": "{color.border.warning}",
|
|
48
|
+
"$description": "Lower reject-ratio threshold; distinct label and pattern from degraded."
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"degraded": {
|
|
52
|
+
"fill": {
|
|
53
|
+
"$type": "color",
|
|
54
|
+
"$value": "{color.background.warning.subtle}",
|
|
55
|
+
"$description": "Higher reject-ratio threshold; distinct label and pattern from attention."
|
|
56
|
+
},
|
|
57
|
+
"outline": {
|
|
58
|
+
"$type": "color",
|
|
59
|
+
"$value": "{color.border.warning}",
|
|
60
|
+
"$description": "Higher reject-ratio threshold; distinct label and pattern from attention."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"critical": {
|
|
64
|
+
"fill": {
|
|
65
|
+
"$type": "color",
|
|
66
|
+
"$value": "{color.background.danger.subtle}",
|
|
67
|
+
"$description": "Critical rejected-request ratio, not a failed fetch."
|
|
68
|
+
},
|
|
69
|
+
"outline": {
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$value": "{color.border.danger}",
|
|
72
|
+
"$description": "Critical rejected-request ratio, not a failed fetch."
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"unavailable": {
|
|
76
|
+
"fill": {
|
|
77
|
+
"$type": "color",
|
|
78
|
+
"$value": "{color.surface.subtle}",
|
|
79
|
+
"$description": "No requests to assess; not a backend failure."
|
|
80
|
+
},
|
|
81
|
+
"outline": {
|
|
82
|
+
"$type": "color",
|
|
83
|
+
"$value": "{color.border.bold}",
|
|
84
|
+
"$description": "No requests to assess; not a backend failure."
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"fault": {
|
|
88
|
+
"fill": {
|
|
89
|
+
"$type": "color",
|
|
90
|
+
"$value": "{color.background.danger.subtle}",
|
|
91
|
+
"$description": "Backend/internal request-processing faults; show a separate count and explicit fault label/icon, not a rejected-ratio threshold."
|
|
92
|
+
},
|
|
93
|
+
"outline": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": "{color.border.danger}",
|
|
96
|
+
"$description": "Backend/internal request-processing faults; show a separate count and explicit fault label/icon, not a rejected-ratio threshold."
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"line-width": { "$type": "dimension", "$value": "2px", "$description": "Primary chart series stroke in CSS pixels." },
|
|
101
|
+
"sparkline-width": { "$type": "dimension", "$value": "1.5px", "$description": "Compact sparkline stroke in CSS pixels." },
|
|
102
|
+
"grid-width": { "$type": "dimension", "$value": "1px", "$description": "Chart grid and crosshair stroke in CSS pixels." },
|
|
103
|
+
"sparkline-point-radius": {"$type": "dimension", "$value": "2px", "$description": "Compact sparkline endpoint radius."},
|
|
104
|
+
"timeline-node-size": {"$type": "dimension", "$value": "16px", "$description": "Desktop timeline outer job-type mark diameter."},
|
|
105
|
+
"timeline-node-inner-size": {"$type": "dimension", "$value": "8px", "$description": "Desktop timeline inner execution-status mark diameter."},
|
|
106
|
+
"timeline-node-touch-size": {"$type": "dimension", "$value": "18px", "$description": "Touch and tablet outer timeline mark diameter; hit target remains size.target.touch."},
|
|
107
|
+
"timeline-node-touch-inner-size": {"$type": "dimension", "$value": "10px", "$description": "Touch timeline inner status diameter."},
|
|
108
|
+
"timeline-node-tablet-inner-size": {"$type": "dimension", "$value": "9px", "$description": "Tablet timeline inner status diameter."},
|
|
109
|
+
"timeline-cluster-size": {"$type": "dimension", "$value": "24px", "$description": "Minimum aggregated timeline count marker diameter."},
|
|
110
|
+
"chart-height": {"$type": "dimension", "$value": "120px", "$description": "Operational trend chart plotting height."},
|
|
111
|
+
"chart-initial-width": {"$type": "dimension", "$value": "400px", "$description": "Initial plot width before measurement; replaced by actual container width."},
|
|
112
|
+
"sparkline-height": {"$type": "dimension", "$value": "40px", "$description": "Standard compact trend plotting height."},
|
|
113
|
+
"sparkline-compact-height": {"$type": "dimension", "$value": "32px", "$description": "Metric tile sparkline plotting height."},
|
|
114
|
+
"sparkline-initial-width": {"$type": "dimension", "$value": "100px", "$description": "Initial sparkline width before measurement."},
|
|
115
|
+
"point-radius": { "$type": "dimension", "$value": "3px", "$description": "Normal chart sample marker radius." },
|
|
116
|
+
"hover-point-radius": { "$type": "dimension", "$value": "5px", "$description": "Hovered chart sample marker radius; larger than normal independently of colour." },
|
|
117
|
+
"ring-width": { "$type": "number", "$value": 10, "$description": "Ant Design dashboard progress stroke width, in percent of its viewBox." },
|
|
118
|
+
"ring-size": { "$type": "dimension", "$value": "140px", "$description": "Operational health progress ring diameter." },
|
|
119
|
+
"ring-gap": { "$type": "number", "$value": 75, "$description": "Operational health dashboard ring opening in degrees." },
|
|
120
|
+
"timeline-track-height": { "$type": "dimension", "$value": "6px", "$description": "Compact summary and grouped execution track thickness." },
|
|
121
|
+
"activity-track-height": { "$type": "dimension", "$value": "10px", "$description": "Activity timeline track thickness with internal event segments." }
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"z-index": {
|
|
3
|
+
"sticky": {
|
|
4
|
+
"$type": "number",
|
|
5
|
+
"$value": "100",
|
|
6
|
+
"$description": "Sticky table headers and toolbars inside the page."
|
|
7
|
+
},
|
|
8
|
+
"navigation": {
|
|
9
|
+
"$type": "number",
|
|
10
|
+
"$value": "200",
|
|
11
|
+
"$description": "App header and side navigation."
|
|
12
|
+
},
|
|
13
|
+
"overlay": {
|
|
14
|
+
"$type": "number",
|
|
15
|
+
"$value": "300",
|
|
16
|
+
"$description": "Dropdowns, menus, popovers and select lists."
|
|
17
|
+
},
|
|
18
|
+
"modal": {
|
|
19
|
+
"$type": "number",
|
|
20
|
+
"$value": "400",
|
|
21
|
+
"$description": "Dialogs, drawers and their scrim."
|
|
22
|
+
},
|
|
23
|
+
"fullscreen": {
|
|
24
|
+
"$type": "number",
|
|
25
|
+
"$value": "450",
|
|
26
|
+
"$description": "Editor, code and image fullscreen takeovers above dialogs, below spotlight and feedback."
|
|
27
|
+
},
|
|
28
|
+
"spotlight": {
|
|
29
|
+
"$type": "number",
|
|
30
|
+
"$value": "500",
|
|
31
|
+
"$description": "Product tour and onboarding spotlight, above a dialog."
|
|
32
|
+
},
|
|
33
|
+
"tooltip": {
|
|
34
|
+
"$type": "number",
|
|
35
|
+
"$value": "600",
|
|
36
|
+
"$description": "Tooltips, above everything you can interact with."
|
|
37
|
+
},
|
|
38
|
+
"toast": {
|
|
39
|
+
"$type": "number",
|
|
40
|
+
"$value": "700",
|
|
41
|
+
"$description": "Toasts and the skip link: always on top."
|
|
42
|
+
},
|
|
43
|
+
"loading": {
|
|
44
|
+
"$type": "number",
|
|
45
|
+
"$value": "650",
|
|
46
|
+
"$description": "Blocking application readiness above tooltips, below always-visible toast feedback."
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|