@uibot/design-md 0.0.0-stage → 0.2.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.
@@ -0,0 +1,122 @@
1
+ # UIBot Design-MD Content (DESIGN.md seed library)
2
+
3
+ This directory holds **content-only** design-system documents — plain Markdown
4
+ files that encode visual taste so the UIBot AI generator can produce
5
+ stylistically consistent UI. There is **no code** here; these files are loaded
6
+ by `@uibot/design-md` (`loadDesignMdFile` → `DesignMdRegistry`).
7
+
8
+ Each `*.design.md` file is a self-contained design system written in the
9
+ **9-section DESIGN.md format** (below). The generator reads a selected
10
+ DESIGN.md and treats its tokens, rules, and constraints as the source of truth
11
+ for the look-and-feel of generated components and pages.
12
+
13
+ ## Attribution
14
+
15
+ The 9-section DESIGN.md format adopted here originates with the
16
+ **awesome-design-md** project by **VoltAgent** (MIT licensed):
17
+ <https://github.com/VoltAgent/awesome-design-md>.
18
+
19
+ > The *format/structure* (the fixed 9-section layout that AI agents consume) is
20
+ > adopted from awesome-design-md (VoltAgent, MIT). The brand seed files in this
21
+ > directory are **derived independently** — every token, table, and prompt was
22
+ > authored fresh from each brand's well-known public visual identity. No third
23
+ > party's file content is reproduced verbatim.
24
+
25
+ ## The 9 sections
26
+
27
+ Every `*.design.md` MUST contain these nine `##` sections, in order:
28
+
29
+ 1. **Visual Theme & Atmosphere** — the design philosophy/mood in prose; the
30
+ one-paragraph "feel" an agent should internalize before anything else.
31
+ 2. **Color Palette & Roles** — semantic color naming (background/surface/
32
+ foreground/accent/border/etc.) with concrete hex values and their roles.
33
+ 3. **Typography Rules** — font families, a type-hierarchy table (role → size →
34
+ weight → line-height → tracking), weights, and letter-spacing.
35
+ 4. **Component Stylings** — buttons / cards / inputs / badges / nav described
36
+ with explicit token values and interaction states (hover/focus/active/
37
+ disabled).
38
+ 5. **Layout Principles** — the spacing scale, grids, max-width containers,
39
+ whitespace philosophy, and the radius scale.
40
+ 6. **Depth & Elevation** — a shadow/elevation table keyed by level (0…n) with
41
+ the exact shadow recipe for each.
42
+ 7. **Do's and Don'ts** — explicit positive constraints and explicit negative
43
+ constraints, as two lists.
44
+ 8. **Responsive Behavior** — a breakpoint table, touch-target minimums, and the
45
+ collapsing/stacking strategy across breakpoints.
46
+ 9. **Agent Prompt Guide** — a Quick Color Reference, 3+ ready-to-paste example
47
+ component prompts, and a step-by-step iteration guide for the agent.
48
+
49
+ A blank canonical scaffold is provided in
50
+ [`_TEMPLATE.design.md`](./_TEMPLATE.design.md).
51
+
52
+ ## Frontmatter
53
+
54
+ Each file begins with YAML frontmatter:
55
+
56
+ ```yaml
57
+ ---
58
+ id: <brand>-design
59
+ title: <Brand> Design System
60
+ category: brand
61
+ tags: [dark-first, minimal, editorial]
62
+ layer: auto
63
+ ---
64
+ ```
65
+
66
+ Fields parsed by the current loader (`packages/design-md/src/schema.ts` →
67
+ `parseFrontmatter`): `id` (required), `title` **or** `name` (required; `name`
68
+ aliases `title` for docs/18-style files), `category` (required),
69
+ `tags` (optional), `origin` (optional), `sourceUrl` (optional),
70
+ `version` (optional), `extractedTokens` (optional),
71
+ `layer` (optional: `auto` | `user` | `override`).
72
+ Color/spacing tokens are auto-extracted from the body when `extractedTokens` is
73
+ absent.
74
+
75
+ > **Note on `layer`:** seed files declare `layer: auto` so they populate the
76
+ > registry's **`auto`** layer (lowest priority, overridable by `user` /
77
+ > `override`). `parseFrontmatter` reads a valid `layer` into the frontmatter
78
+ > result; `loadDesignMdFile` / content seed loaders forward it. Invalid values
79
+ > emit `console.warn` and are omitted (registry then defaults to `user` on
80
+ > `add`). Callers may still stamp layer explicitly via
81
+ > `registry.add(entry, { layer: "auto" })`.
82
+
83
+ ## How these files are used
84
+
85
+ These files seed the design-md registry's **`auto`** layer — the default taste
86
+ library. A user can select one by `id`/`tags` (via the `designMd:source`
87
+ capability), override individual entries with their own `user`/`override`
88
+ DESIGN.md, and the generator composes the resulting tokens/rules into its
89
+ prompt context when generating UI specs.
90
+
91
+ ## Files
92
+
93
+ ### Guidance (house style — not competing brands)
94
+
95
+ | File | Role |
96
+ | --- | --- |
97
+ | `frontend-principles.design.md` | Anti-slop / frontend-design house style. Force-included on default generation. Adapted from Microsoft agent-academy + Anthropic `frontend-design` skills (see file `origin` / `sourceUrl`). |
98
+ | `control-console.design.md` | Unified ops / admin lane DESIGN.md for generated consoles. Shell/canvas/surface, hairline usage layers, grouped settings nav. Pairs with starter `shadcn-admin-dashboard` and `ibm-design`. |
99
+
100
+ Each **consumer project** owns a root `DESIGN.md` (AUTA seven sections). That
101
+ file is the project visual contract. Generate loads it as user-layer id
102
+ `project` and force-includes it ahead of house seeds. UIBot bundled files in
103
+ this directory are defaults, not a substitute.
104
+
105
+ Default Studio / Playground generation always injects a separate **UI Craft**
106
+ prompt fragment (lane + hard bans + UIBot hygiene) even when no design-md
107
+ matches. See `packages/application/src/ui-craft-baseline.ts` and
108
+ `docs/18-skills-design-md-evolution.md`.
109
+
110
+ ### Brand seeds (9-section)
111
+
112
+ | File | Aesthetic | Origin |
113
+ | --- | --- | --- |
114
+ | `linear.design.md` | Dark-first, indigo accent, tight tracking, restrained elevation | Independently authored from public identity |
115
+ | `stripe.design.md` | Bright, blurple, layered, generous whitespace | Independently authored from public identity |
116
+ | `vercel.design.md` | High-contrast black/white, Geist, sharp and minimal | Independently authored from public identity |
117
+ | `notion.design.md` | Warm neutral, serif accents, soft, content-first | Independently authored from public identity |
118
+ | `supabase.design.md` | Dark technical, emerald accent, developer-focused | Independently authored from public identity |
119
+ | `claude.design.md` | Warm cream paper, coral/clay accent, humane/editorial | Independently authored from public identity |
120
+ | `raycast.design.md` | Dark command-palette chrome, white pill CTA | `github:VoltAgent/awesome-design-md` |
121
+ | `figma.design.md` | Editorial mono + pastel story blocks | `github:VoltAgent/awesome-design-md` |
122
+ | `ibm.design.md` | Carbon square chrome, IBM Blue accent | `github:VoltAgent/awesome-design-md` |
@@ -0,0 +1,137 @@
1
+ ---
2
+ id: your-brand-design
3
+ title: Your Brand Design System
4
+ category: brand
5
+ # tags: free-form aesthetic descriptors used for selection (e.g. dark-first, minimal, editorial)
6
+ tags: [tag-one, tag-two, tag-three]
7
+ # layer: "auto" | "user" | "override" — merge priority (override > user > auto).
8
+ # parseFrontmatter reads this; invalid values warn and are dropped (default user on add).
9
+ layer: auto
10
+ ---
11
+
12
+ <!--
13
+ CANONICAL 9-SECTION DESIGN.md TEMPLATE
14
+ Copy this file, rename to <brand>.design.md, fill every section.
15
+ Token format conventions:
16
+ - colors: lowercase hex, e.g. #08090a (or rgba(8,9,10,0.6) for alpha)
17
+ - sizes/spacing: rem with explicit unit, e.g. 1.5rem / px for borders, e.g. 1px
18
+ - weights: numeric, including variable-font fractional weights, e.g. 510
19
+ - tracking: em, e.g. -0.02em
20
+ - line-height: unitless ratio, e.g. 1.5
21
+ Keep prose tight; agents read this verbatim as generation context.
22
+ -->
23
+
24
+ ## 1. Visual Theme & Atmosphere
25
+
26
+ <!-- One short paragraph: the mood, the philosophy, the feeling. What is this
27
+ brand trying to make the user feel? Light or dark first? Dense or airy?
28
+ Playful or serious? This frames every later decision. -->
29
+
30
+ ## 2. Color Palette & Roles
31
+
32
+ <!-- Name colors by ROLE, not by hue. Provide a hex for each. Cover at minimum:
33
+ background, surface/elevated, foreground/text, muted-foreground, accent,
34
+ accent-foreground, border, success/warning/danger. Example: -->
35
+
36
+ | Role | Token | Value | Notes |
37
+ | --- | --- | --- | --- |
38
+ | Background | `--bg` | `#08090a` | app canvas |
39
+ | Surface | `--surface` | `#0f1011` | cards/panels |
40
+ | Foreground | `--fg` | `#f7f8f8` | primary text |
41
+ | Muted FG | `--fg-muted` | `#8a8f98` | secondary text |
42
+ | Accent | `--accent` | `#5e6ad2` | primary action |
43
+ | Border | `--border` | `#23252a` | hairlines |
44
+
45
+ ## 3. Typography Rules
46
+
47
+ <!-- Font stack(s), then a hierarchy table mapping ROLE → font / size / weight /
48
+ line-height / tracking. Note any variable-font fractional weights. -->
49
+
50
+ - **Sans:** `"Inter", system-ui, sans-serif`
51
+ - **Mono:** `"Berkeley Mono", ui-monospace, monospace`
52
+
53
+ | Role | Size | Weight | Line-height | Tracking |
54
+ | --- | --- | --- | --- | --- |
55
+ | Display | `3rem` | `560` | `1.05` | `-0.03em` |
56
+ | H1 | `2rem` | `538` | `1.1` | `-0.02em` |
57
+ | Body | `1rem` | `400` | `1.5` | `0` |
58
+ | Caption | `0.8125rem` | `400` | `1.4` | `0` |
59
+
60
+ ## 4. Component Stylings
61
+
62
+ <!-- buttons / cards / inputs / badges / nav — each with explicit token values
63
+ and every interaction STATE (rest/hover/focus/active/disabled). -->
64
+
65
+ ### Buttons
66
+
67
+ ### Cards
68
+
69
+ ### Inputs
70
+
71
+ ### Badges
72
+
73
+ ### Navigation
74
+
75
+ ## 5. Layout Principles
76
+
77
+ <!-- Spacing scale, grid system, container max-widths, whitespace philosophy,
78
+ and the radius scale. -->
79
+
80
+ - **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem`
81
+ - **Container max-width:**
82
+ - **Grid:**
83
+ - **Radius scale:** `sm 0.375rem · md 0.5rem · lg 0.75rem · full 9999px`
84
+
85
+ ## 6. Depth & Elevation
86
+
87
+ <!-- Shadow table keyed by elevation level. Give the exact recipe per level. -->
88
+
89
+ | Level | Use | Shadow |
90
+ | --- | --- | --- |
91
+ | 0 | flat | `none` |
92
+ | 1 | card | `0 1px 2px rgba(0,0,0,0.12)` |
93
+ | 2 | popover | `0 4px 12px rgba(0,0,0,0.18)` |
94
+ | 3 | modal | `0 16px 48px rgba(0,0,0,0.28)` |
95
+
96
+ ## 7. Do's and Don'ts
97
+
98
+ **Do**
99
+
100
+ - <!-- explicit positive constraints -->
101
+
102
+ **Don't**
103
+
104
+ - <!-- explicit negative constraints -->
105
+
106
+ ## 8. Responsive Behavior
107
+
108
+ <!-- Breakpoint table, touch-target minimums, collapsing strategy. -->
109
+
110
+ | Breakpoint | Min width | Behavior |
111
+ | --- | --- | --- |
112
+ | `sm` | `640px` | single column |
113
+ | `md` | `768px` | two columns |
114
+ | `lg` | `1024px` | full layout |
115
+
116
+ - **Touch targets:** minimum `44px × 44px`.
117
+ - **Collapsing strategy:**
118
+
119
+ ## 9. Agent Prompt Guide
120
+
121
+ ### Quick Color Reference
122
+
123
+ <!-- a compact list the agent can scan: accent / bg / fg / border etc. -->
124
+
125
+ ### Example prompts (copy-paste)
126
+
127
+ 1. <!-- "Generate a ... using the <brand> system: ..." -->
128
+ 2.
129
+ 3.
130
+
131
+ ### Iteration guide
132
+
133
+ <!-- numbered steps: how to refine output toward this system -->
134
+
135
+ 1.
136
+ 2.
137
+ 3.
@@ -0,0 +1,178 @@
1
+ ---
2
+ id: claude-design
3
+ title: Claude Design System
4
+ category: brand
5
+ tags: [warm, editorial, cream-paper, coral, humane, serif-accents, light-first, 温暖, 编辑, 人文, 纸张, 衬线]
6
+ layer: auto
7
+ ---
8
+
9
+ ## 1. Visual Theme & Atmosphere
10
+
11
+ Claude feels warm, calm, and humane — like a beautifully typeset letter on good
12
+ paper. The canvas is a soft cream rather than stark white, ink is a warm
13
+ near-black, and a single coral/clay accent adds gentle, friendly energy without
14
+ shouting. The aesthetic is editorial and unhurried: comfortable reading sizes,
15
+ soft radii, restrained elevation, and plenty of room to think. The voice is
16
+ thoughtful and approachable. Build interfaces that feel considerate of the
17
+ reader — legible, low-stress, and quietly characterful, with warmth in every
18
+ neutral.
19
+
20
+ ## 2. Color Palette & Roles
21
+
22
+ | Role | Token | Value | Notes |
23
+ | --- | --- | --- | --- |
24
+ | Background | `--bg` | `#f5f4ee` | cream paper canvas |
25
+ | Background alt | `--bg-alt` | `#efede5` | bands, soft panels |
26
+ | Surface | `--surface` | `#fbfaf7` | cards (slightly lifted off cream) |
27
+ | Foreground | `--fg` | `#1f1e1c` | warm near-black ink |
28
+ | Muted foreground | `--fg-muted` | `#6b6862` | secondary text |
29
+ | Subtle foreground | `--fg-subtle` | `#928e85` | meta, placeholders |
30
+ | Accent | `--accent` | `#da7756` | coral/clay, primary action |
31
+ | Accent hover | `--accent-hover` | `#c4633f` | hover |
32
+ | Accent foreground | `--accent-fg` | `#ffffff` | text on accent |
33
+ | Accent soft | `--accent-soft` | `#f3e2d9` | tinted backgrounds |
34
+ | Border | `--border` | `#e3e0d6` | hairlines |
35
+ | Border strong | `--border-strong` | `#d2cec1` | input borders |
36
+ | Success | `--success` | `#5a8a5b` | positive |
37
+ | Warning | `--warning` | `#c89a3c` | caution |
38
+ | Danger | `--danger` | `#bc4b3c` | error, destructive |
39
+
40
+ ## 3. Typography Rules
41
+
42
+ - **Serif (display/editorial):** `"Tiempos", "Georgia", "Charter", serif`
43
+ - **Sans (body/UI):** `"Styrene", "Inter", -apple-system, "Segoe UI", sans-serif`
44
+ - **Mono:** `"Berkeley Mono", "SF Mono", ui-monospace, monospace`
45
+
46
+ Serif at display/headings gives an editorial, letter-like warmth; a humanist
47
+ sans keeps body and UI friendly and legible. Reading sizes are comfortable with
48
+ generous line-height.
49
+
50
+ | Role | Size | Weight | Line-height | Tracking | Family |
51
+ | --- | --- | --- | --- | --- | --- |
52
+ | Display | `3rem` | `420` | `1.12` | `-0.015em` | serif |
53
+ | H1 | `2rem` | `460` | `1.2` | `-0.01em` | serif |
54
+ | H2 | `1.5rem` | `500` | `1.3` | `-0.005em` | serif |
55
+ | H3 | `1.1875rem` | `560` | `1.4` | `0` | sans |
56
+ | Body | `1.0625rem` | `400` | `1.65` | `0` | sans |
57
+ | Small | `0.875rem` | `400` | `1.5` | `0` | sans |
58
+ | Caption | `0.8125rem` | `400` | `1.4` | `0.01em` | sans |
59
+ | Code | `0.875rem` | `400` | `1.5` | `0` | mono |
60
+
61
+ ## 4. Component Stylings
62
+
63
+ ### Buttons
64
+
65
+ - **Primary:** bg `#da7756`, text `#ffffff`, radius `0.625rem`, padding
66
+ `0.5rem 1rem`, weight `560`, font-size `0.9375rem`. Hover bg `#c4633f`.
67
+ Active translateY `1px`. Focus ring `0 0 0 3px rgba(218,119,86,0.3)`.
68
+ - **Secondary:** bg `#fbfaf7`, text `#1f1e1c`, border `1px solid #d2cec1`.
69
+ Hover bg `#f3f1ea`.
70
+ - **Ghost:** transparent, text `#6b6862`. Hover bg `rgba(31,30,28,0.05)`,
71
+ text `#1f1e1c`.
72
+ - **Disabled:** opacity `0.5`, no hover.
73
+
74
+ ### Cards
75
+
76
+ - bg `#fbfaf7`, border `1px solid #e3e0d6`, radius `0.875rem`, padding `1.5rem`.
77
+ - Resting shadow level 1; soft and warm, never harsh.
78
+
79
+ ### Inputs
80
+
81
+ - bg `#fbfaf7`, border `1px solid #d2cec1`, radius `0.625rem`, height `2.5rem`,
82
+ padding `0 0.75rem`, text `#1f1e1c`, placeholder `#928e85`.
83
+ - Focus: border `#da7756`, ring `0 0 0 3px rgba(218,119,86,0.2)`.
84
+
85
+ ### Badges
86
+
87
+ - Pill, radius `9999px`, font-size `0.75rem`, weight `500`, padding
88
+ `0.1875rem 0.5rem`. Accent-soft: bg `#f3e2d9`, text `#a14e30`.
89
+
90
+ ### Navigation
91
+
92
+ - Side or top, bg `#efede5`, border `1px solid #e3e0d6`. Items text `#6b6862`,
93
+ weight `500`. Hover bg `rgba(31,30,28,0.05)`. Active bg `#f3e2d9`, text
94
+ `#a14e30`. Comfortable `2.25rem` item height.
95
+
96
+ ## 5. Layout Principles
97
+
98
+ - **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem · 4.5rem`.
99
+ - **Container max-width:** `48rem` for reading content, `72rem` for app shells;
100
+ centered with `1.5rem` side padding.
101
+ - **Grid:** content single-column and centered (~72ch measure); galleries 2–3up
102
+ with `1.5rem` gaps.
103
+ - **Whitespace:** generous and warm; section rhythm `3rem`–`4.5rem`.
104
+ - **Radius scale:** `sm 0.375rem · md 0.625rem · lg 0.875rem · xl 1.25rem · full 9999px`.
105
+
106
+ ## 6. Depth & Elevation
107
+
108
+ Elevation is soft and warm-tinted — paper that lifts gently, never floats hard.
109
+
110
+ | Level | Use | Shadow |
111
+ | --- | --- | --- |
112
+ | 0 | flat / on cream | `none` |
113
+ | 1 | card | `0 1px 3px rgba(31,30,28,0.06)` |
114
+ | 2 | popover, menu | `0 6px 20px rgba(31,30,28,0.1)` |
115
+ | 3 | modal, dialog | `0 20px 50px rgba(31,30,28,0.16)` |
116
+
117
+ ## 7. Do's and Don'ts
118
+
119
+ **Do**
120
+
121
+ - Use cream `#f5f4ee` instead of stark white, and warm ink `#1f1e1c`.
122
+ - Keep coral `#da7756` as the single, friendly accent.
123
+ - Use serif at display/headings for an editorial, letter-like warmth.
124
+ - Keep reading comfortable: `1.0625rem` body, `1.65` line-height, ~72ch measure.
125
+ - Use soft radii and gentle, warm-tinted shadows.
126
+
127
+ **Don't**
128
+
129
+ - Don't use pure white `#ffffff` canvases or cold gray neutrals.
130
+ - Don't oversaturate or add a second loud accent next to coral.
131
+ - Don't use harsh black shadows; keep elevation soft and warm.
132
+ - Don't tighten body type or crowd the reading measure.
133
+ - Don't make the interface feel clinical — warmth is the brand.
134
+
135
+ ## 8. Responsive Behavior
136
+
137
+ | Breakpoint | Min width | Behavior |
138
+ | --- | --- | --- |
139
+ | `sm` | `640px` | single column, full-width cards |
140
+ | `md` | `768px` | 2-up galleries; nav stays inline |
141
+ | `lg` | `1024px` | centered `48rem` reading column + side rail |
142
+ | `xl` | `1280px` | wider app shell `72rem`, persistent panels |
143
+
144
+ - **Touch targets:** minimum `44px × 44px`; buttons keep `2.5rem` height.
145
+ - **Collapsing strategy:** nav collapses to a drawer below `md`; galleries stack
146
+ to one column; preserve the centered reading measure and warm spacing.
147
+
148
+ ## 9. Agent Prompt Guide
149
+
150
+ ### Quick Color Reference
151
+
152
+ - Accent (coral/clay): `#da7756` (hover `#c4633f`, soft `#f3e2d9`)
153
+ - Background (cream): `#f5f4ee` · Alt: `#efede5` · Surface: `#fbfaf7`
154
+ - Ink: `#1f1e1c` · Muted: `#6b6862` · Subtle: `#928e85`
155
+ - Border: `#e3e0d6` (strong `#d2cec1`)
156
+ - Success `#5a8a5b` · Warning `#c89a3c` · Danger `#bc4b3c`
157
+
158
+ ### Example prompts (copy-paste)
159
+
160
+ 1. "Generate an article/reading view in the Claude system: cream `#f5f4ee`
161
+ canvas, a serif display heading at `3rem`/weight 420 with `-0.015em`
162
+ tracking, body in `1.0625rem`/`1.65` warm ink `#1f1e1c`, centered to a
163
+ `48rem` reading column. Calm, editorial, warm."
164
+ 2. "Build a primary CTA card: surface `#fbfaf7`, radius `0.875rem`, level-1
165
+ shadow `0 1px 3px rgba(31,30,28,0.06)`, `1.5rem` padding, a coral primary
166
+ button (`#da7756`/white, radius `0.625rem`, `560` weight) and a secondary
167
+ outline button (`#fbfaf7` / `1px #d2cec1`)."
168
+ 3. "Create a tag/badge row: accent-soft pills bg `#f3e2d9` text `#a14e30`, radius
169
+ `9999px`, `0.75rem`/weight 500, on a cream `#f5f4ee` background with `#6b6862`
170
+ captions underneath."
171
+
172
+ ### Iteration guide
173
+
174
+ 1. Warm the base: cream `#f5f4ee` canvas, warm ink `#1f1e1c`, no pure white.
175
+ 2. Add one friendly accent — coral `#da7756` — for actions and highlights.
176
+ 3. Bring in serif at display/headings for editorial warmth.
177
+ 4. Set comfortable reading: `1.0625rem` body, `1.65` line-height, ~72ch measure.
178
+ 5. Soften everything: larger radii and gentle warm-tinted shadows.
@@ -0,0 +1,176 @@
1
+ ---
2
+ id: control-console
3
+ name: Control Console
4
+ title: Control Console
5
+ category: admin
6
+ tags: [console, ops, admin, dense, status, dashboard, shadcn, carbon, 控制台, 运维, 后台, 管理, 仪表盘, 数据密集, 状态]
7
+ origin: local
8
+ sourceUrl: https://github.com/Foundj/uibot/blob/main/examples/uibot-starter/.uibot/design-md/shadcn-admin-dashboard.md
9
+ version: "1.1.0"
10
+ layer: auto
11
+ ---
12
+
13
+ Dense control / ops console for UIBot Spec. This is the **unified lane DESIGN.md**
14
+ for generated consoles. Pair with starter `shadcn-admin-dashboard` (user-layer
15
+ tokens) and `ibm-design` (Carbon chrome) when those ids are selected. Not a
16
+ brand: it tells the generator how to compose existing admin blocks.
17
+
18
+ Page structure follows a quiet ops chrome (status first, hairline layers).
19
+ Interface density follows a three-surface stack (shell / canvas / surface),
20
+ grouped settings nav, and a 11–20 type ladder. Color is for state, not for
21
+ current-nav paint.
22
+
23
+ Public references (structure / density only, values written for UIBot):
24
+
25
+ - Starter `examples/uibot-starter/.uibot/design-md/shadcn-admin-dashboard.md`
26
+ - IBM Carbon-shaped `ibm-design` seed (awesome-design-md MIT analysis)
27
+
28
+ ## Visual Theme & Atmosphere
29
+
30
+ An operations surface for people who already know the product. Status is the
31
+ hero: health, queue depth, failing checks, the next action. The sidebar is a
32
+ quiet **shell**; the page is a **canvas**; cards/tables sit on **surface**.
33
+ Density beats whitespace. Color is semantic (success / warning / danger), not
34
+ decorative. Selected nav is a neutral mix of foreground on surface — never an
35
+ accent wash. If you would put a marketing gradient on this page, you chose the
36
+ wrong lane.
37
+
38
+ ## Color Palette & Roles
39
+
40
+ Use token names, not a invented rainbow. Prefer the selected design-md hexes;
41
+ these are fallbacks when none match:
42
+
43
+ | Role | Token | Value | Notes |
44
+ | --- | --- | --- | --- |
45
+ | Shell | `--shell` | `#111113` | sider / app chrome |
46
+ | Canvas | `--bg` | `#09090b` | page canvas |
47
+ | Surface | `--surface` | `#18181b` | tables, popovers |
48
+ | Hover | `--hover` | mix 4% fg | row / nav hover |
49
+ | Selected | `--selected` | mix 7% fg | current nav / row |
50
+ | Foreground | `--fg` | `#fafafa` | primary text |
51
+ | Muted | `--fg-muted` | `#a1a1aa` | labels, timestamps |
52
+ | Accent | `--accent` | `#3b82f6` | focus / primary action only |
53
+ | Border | `--border` | `#27272a` | hairlines |
54
+ | Success | `--success` | `#22c55e` | healthy |
55
+ | Warning | `--warning` | `#eab308` | degraded |
56
+ | Danger | `--danger` | `#ef4444` | failing |
57
+
58
+ Light variant: `--shell #f1f3f6`, `--bg #f7f8fa`, `--surface #ffffff`,
59
+ `--fg #18212f`, `--border #e2e6ec`. Do not mix light and dark in one page.
60
+
61
+ ## Typography Rules
62
+
63
+ Product chrome uses this ladder (not the marketing 3-role cap):
64
+
65
+ | Role | Size | Line-height | Use |
66
+ | --- | --- | --- | --- |
67
+ | micro | `11px` | `15px` | overlines, timestamps |
68
+ | caption | `12px` | `16px` | helper, empty copy |
69
+ | label | `13px` | `18px` | table headers, meta rows |
70
+ | body | `14px` | `20px` | UI body |
71
+ | title | `16px` | `24px` | section |
72
+ | display | `20px` | `28px` | page title |
73
+
74
+ Tabular numbers for counts. No display serif. Sentence case. No ALL-CAPS
75
+ eyebrows on chrome.
76
+
77
+ ## Component Stylings / Spec recipes
78
+
79
+ Lead with status (`Toast` + `BadgeGroup` + `StatGrid`), then the primary
80
+ `Table` / `SearchableTable` (always set `emptyText`) or log, then a single
81
+ primary action. Pair with `TrendChart` and `TimelineList` when the page needs
82
+ a series or a feed. Empty / loading / error are three different blocks —
83
+ never a zeroed KPI.
84
+
85
+ ```yaml
86
+ id: ops-overview
87
+ title: 运行概览
88
+ blocks:
89
+ - type: PageLayout
90
+ props: { title: 运行概览, variant: sidebar }
91
+ slots:
92
+ sidebar:
93
+ - type: PageSiderMenu
94
+ props: { title: Control }
95
+ children:
96
+ - type: MenuLink
97
+ props: { label: Overview, href: /ops, active: true }
98
+ - type: MenuLink
99
+ props: { label: Queues, href: /ops/queues, active: false }
100
+ children:
101
+ - type: Toast
102
+ props: { level: warning, title: Status first, message: "3 failing checks. Live visitors n/a." }
103
+ - type: StatGrid
104
+ props:
105
+ cols: "3"
106
+ items:
107
+ - { label: Failing checks, value: "3", description: last 15m, trend: down }
108
+ - { label: Queue depth, value: "n/a", description: source offline }
109
+ - { label: Error rate, value: "0.4%", change: "+0.1%", trend: up }
110
+ - type: SearchableTable
111
+ props:
112
+ searchKey: search
113
+ emptyText: No failing checks in this window.
114
+ ```
115
+
116
+ Buttons: `default` for the one primary action, `outline` / `ghost` otherwise.
117
+ Never nest a `Button` inside a clickable `Card`.
118
+
119
+ Usage / quota: independent layers (quota, tasks, hourly) separated by a 1px
120
+ hairline, not nested cards. Missing layers stay omitted with `n/a` copy — never
121
+ a zeroed chart. Percent windows may show a 4px meter track; unknown windows
122
+ show no bar.
123
+
124
+ Settings: grouped sider (`工作区` / `应用与扩展` or English equivalents). Nav
125
+ items are names only. Current item uses `--selected`, not accent fill.
126
+
127
+ ## Layout Principles
128
+
129
+ - `PageLayout` + `PageSiderMenu` (~224–240px) on `--shell`. Content on `--bg`.
130
+ - Radius ladder: `3 / 4 / 6 / 8 / 12`. Buttons and inputs `md` (6px); sider
131
+ items `lg` (8px).
132
+ - Tables are first-class: numeric columns `align: right`, row actions in the
133
+ last column as a single `Button` or `DropdownMenu`, not stacked icons.
134
+ - Filters sit above the table in one row; they wrap on 375.
135
+ - Empty / loading / error are three blocks. Do not nest an empty-state dashed
136
+ card inside a layer card.
137
+
138
+ ## Depth & Elevation
139
+
140
+ Hairline borders, almost no shadow. Elevation is for popovers and dialogs only.
141
+ Do not put `shadow-lg` on every card. Connection / status cards use a hairline
142
+ plus a status mark — not a colored frame.
143
+
144
+ ## Do's and Don'ts
145
+
146
+ - Do: honest `n/a` / empty-state copy when the number is unknown.
147
+ - Do: semantic color on status text, badges, and 4px meters only.
148
+ - Do: selected nav as `--selected` mix; hover as `--hover`.
149
+ - Don't: purple hero, fake "4,821 users", illustration blobs, emoji as icons.
150
+ - Don't: accent-wash current nav, nested empty-in-card, zero-filled omitted
151
+ usage layers.
152
+ - Don't: marketing type, full-bleed photography, unscoped global CSS.
153
+
154
+ ## Responsive Behavior
155
+
156
+ | Width | Behavior |
157
+ | --- | --- |
158
+ | 375 | Sidebar offcanvas / stacked stats / table horizontal scroll or card list |
159
+ | 768 | Collapsed icon rail optional; filters wrap |
160
+ | 1440 | Full sider + KPI row + table |
161
+
162
+ Touch targets ≥ 44px on 375. Status text stays readable at 14px.
163
+
164
+ ## Agent Prompt Guide
165
+
166
+ Intent words: ops, console, control plane, status, queue, incident, admin
167
+ density, providers, usage, settings. If the user says landing / marketing, do
168
+ **not** use this guide.
169
+
170
+ Quick tokens: `--shell` `--bg` `--surface` `--selected` `--accent: #3b82f6`
171
+ `--danger: #ef4444`. Type: 11 / 12 / 13 / 14 / 16 / 20. Layers: hairline, not
172
+ stacked cards. Nav: grouped labels, selected is a mix.
173
+
174
+ Example: "Generate a providers + usage console. Status first. Unknown stays
175
+ n/a. Usage is three hairline layers. Settings nav is grouped. No accent-wash
176
+ current item."