@uibot/mcp-server 0.0.0-stage → 0.2.0
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/dist/content.d.ts +15 -0
- package/dist/discovery.d.ts +40 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +0 -0
- package/dist/resources/design-md/claude.design.md +178 -0
- package/dist/resources/design-md/control-console.design.md +176 -0
- package/dist/resources/design-md/figma.design.md +102 -0
- package/dist/resources/design-md/frontend-principles.design.md +155 -0
- package/dist/resources/design-md/ibm.design.md +109 -0
- package/dist/resources/design-md/linear.design.md +175 -0
- package/dist/resources/design-md/notion.design.md +175 -0
- package/dist/resources/design-md/raycast.design.md +106 -0
- package/dist/resources/design-md/stripe.design.md +178 -0
- package/dist/resources/design-md/supabase.design.md +185 -0
- package/dist/resources/design-md/vercel.design.md +172 -0
- package/dist/resources/shells/app-shell-floating.yaml +42 -0
- package/dist/resources/shells/app-shell-icon-rail.yaml +42 -0
- package/dist/resources/shells/app-shell-inset.yaml +42 -0
- package/dist/resources/shells/app-shell-settings.yaml +56 -0
- package/dist/resources/shells/app-shell-sidebar.yaml +47 -0
- package/dist/resources/shells/app-shell-workspace.yaml +54 -0
- package/dist/resources/shells/shadcn-admin-shell.yaml +151 -0
- package/dist/resources/templates/admin-dashboard.yaml +183 -0
- package/dist/resources/templates/ai-chat.yaml +448 -0
- package/dist/resources/templates/analytics-dashboard.yaml +152 -0
- package/dist/resources/templates/auth.yaml +90 -0
- package/dist/resources/templates/blog.yaml +111 -0
- package/dist/resources/templates/crm.yaml +161 -0
- package/dist/resources/templates/ecommerce.yaml +169 -0
- package/dist/resources/templates/lms.yaml +459 -0
- package/dist/resources/templates/portfolio.yaml +139 -0
- package/dist/resources/templates/pricing.yaml +171 -0
- package/dist/resources/templates/saas-landing.yaml +199 -0
- package/dist/resources/templates/settings.yaml +151 -0
- package/dist/resources/templates/shadcn-admin.yaml +4660 -0
- package/dist/resources/templates/store.yaml +469 -0
- package/dist/resources/templates/support-inbox.yaml +96 -0
- package/dist/resources/templates/team-directory.yaml +98 -0
- package/dist/server.d.ts +23 -0
- package/dist/server.js +138 -0
- package/package.json +39 -4
- package/README.md +0 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UIBotHubMcpContent } from "@uibot/hub-runtime";
|
|
2
|
+
/** MCP defines `text`, `image` and `resource` content. The hub only emits text. */
|
|
3
|
+
export interface McpTextContent {
|
|
4
|
+
type: "text";
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Normalises the hub adapter's content into MCP-conformant blocks.
|
|
9
|
+
*
|
|
10
|
+
* The adapter emits `{ type: "json", json }`, which is convenient in-process
|
|
11
|
+
* but is not an MCP content type. Rather than changing the adapter's shape
|
|
12
|
+
* (its own tests depend on it, and it is the tool-surface SSoT), the
|
|
13
|
+
* conversion happens here, at the protocol boundary.
|
|
14
|
+
*/
|
|
15
|
+
export declare function toMcpContent(content: UIBotHubMcpContent[]): McpTextContent[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { CatalogEntry } from "@uibot/contracts";
|
|
2
|
+
import { type ResourceQueryService } from "@uibot/registry";
|
|
3
|
+
/**
|
|
4
|
+
* In-process discovery providers for the standalone bin (ADR 0012: usable when
|
|
5
|
+
* installed outside this repository).
|
|
6
|
+
*
|
|
7
|
+
* The component catalog is static data compiled into the blocks packages and
|
|
8
|
+
* imported through their React-free `./catalog` subpaths — importing the
|
|
9
|
+
* package roots would drag the block components (and the `react` peer) into a
|
|
10
|
+
* node stdio process. Templates, shells and design-md guides ship inside this
|
|
11
|
+
* package (`dist/resources`, copied by `scripts/copy-resources.ts`) because the
|
|
12
|
+
* bundled bin cannot read sibling packages once installed elsewhere.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createLocalDiscovery(): {
|
|
15
|
+
listCatalog: () => CatalogEntry[];
|
|
16
|
+
getDesignMd: (id?: string) => unknown;
|
|
17
|
+
listTemplates: () => unknown[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* `uibot_validate`: compile a Spec against the full catalog (shipped templates
|
|
21
|
+
* resolve `template:` references) or run the design-quality rules on HTML.
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateArtifact(input: {
|
|
24
|
+
spec?: unknown;
|
|
25
|
+
html?: string;
|
|
26
|
+
}): Promise<unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* Canonical local resource service used by the standalone stdio bin.
|
|
29
|
+
* Source assembly is local to this executable; ranking/build semantics remain
|
|
30
|
+
* owned exclusively by @uibot/registry's createResourceQueryService.
|
|
31
|
+
*/
|
|
32
|
+
export declare function createLocalResourceQueryService(): ResourceQueryService;
|
|
33
|
+
/**
|
|
34
|
+
* The merged catalog, sorted by `name` so the tool output is stable across runs.
|
|
35
|
+
*
|
|
36
|
+
* Agents address blocks by `name`, not by the record key. A spread merge dedupes
|
|
37
|
+
* by key, so two entries keyed differently but sharing a `name` would both reach
|
|
38
|
+
* the agent under one identifier — check `name` explicitly instead.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildLocalCatalog(): CatalogEntry[];
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
ADDED
|
File without changes
|
|
@@ -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."
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: figma-design
|
|
3
|
+
name: Figma Design System
|
|
4
|
+
title: Figma Design System
|
|
5
|
+
category: brand
|
|
6
|
+
tags: [light-first, editorial, playful, pastel, marketing, product, 设计工具, 活泼, 营销, 产品]
|
|
7
|
+
origin: github:VoltAgent/awesome-design-md
|
|
8
|
+
sourceUrl: https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/figma/DESIGN.md
|
|
9
|
+
version: "1.0.0"
|
|
10
|
+
layer: auto
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Adapted from the public VoltAgent awesome-design-md Figma analysis (MIT).
|
|
14
|
+
Tokens are the documented marketing canvas from that file, rewritten as a
|
|
15
|
+
UIBot 9-section seed with Spec recipes. Not a verbatim copy.
|
|
16
|
+
|
|
17
|
+
## 1. Visual Theme & Atmosphere
|
|
18
|
+
|
|
19
|
+
A confident black-and-white editorial frame interrupted by oversized pastel
|
|
20
|
+
blocks — lime, lilac, cream, mint, pink — like sticky notes on a clean desk.
|
|
21
|
+
Technical and joyful at once. Personality lives in the color panels and the
|
|
22
|
+
light display type, not in a purple gradient kit.
|
|
23
|
+
|
|
24
|
+
## 2. Color Palette & Roles
|
|
25
|
+
|
|
26
|
+
| Role | Token | Value | Notes |
|
|
27
|
+
| --- | --- | --- | --- |
|
|
28
|
+
| Background | `--bg` | `#ffffff` | canvas |
|
|
29
|
+
| Inverse | `--bg-inverse` | `#000000` | dark bands |
|
|
30
|
+
| Foreground | `--fg` | `#000000` | ink |
|
|
31
|
+
| Inverse ink | `--fg-inverse` | `#ffffff` | |
|
|
32
|
+
| Hairline | `--border` | `#e6e6e6` | |
|
|
33
|
+
| Soft surface | `--surface-soft` | `#f7f7f5` | |
|
|
34
|
+
| Lime | `--block-lime` | `#dceeb1` | story panel |
|
|
35
|
+
| Lilac | `--block-lilac` | `#c5b0f4` | |
|
|
36
|
+
| Cream | `--block-cream` | `#f4ecd6` | |
|
|
37
|
+
| Mint | `--block-mint` | `#c8e6cd` | |
|
|
38
|
+
| Pink | `--block-pink` | `#efd4d4` | |
|
|
39
|
+
| Coral | `--block-coral` | `#f3c9b6` | |
|
|
40
|
+
| Magenta | `--accent` | `#ff3d8b` | rare punch |
|
|
41
|
+
| Success | `--success` | `#1ea64a` | |
|
|
42
|
+
|
|
43
|
+
## 3. Typography Rules
|
|
44
|
+
|
|
45
|
+
Upstream uses Figma Sans (variable, light display ~340) + Figma Mono eyebrows.
|
|
46
|
+
In UIBot, approximate with a light grotesque display and a mono meta — do not
|
|
47
|
+
fall back to Inter 400 as the whole page.
|
|
48
|
+
|
|
49
|
+
| Role | Size | Weight | Tracking |
|
|
50
|
+
| --- | --- | --- | --- |
|
|
51
|
+
| Display | `4rem` | `340–400` | `-0.03em` |
|
|
52
|
+
| Headline | `1.625rem` | `540` | `-0.01em` |
|
|
53
|
+
| Body | `1.125rem` | `320–400` | `-0.01em` |
|
|
54
|
+
| Eyebrow | `0.75rem` | `400` | `0.04em` mono |
|
|
55
|
+
|
|
56
|
+
## 4. Component Stylings
|
|
57
|
+
|
|
58
|
+
- CTA: black pill, white label (`rounded-full`). Inverse on dark bands.
|
|
59
|
+
- Cards: large radius (`24–32px`) on story panels; 8px on tool chrome.
|
|
60
|
+
- Do not put the same radius on every nested box.
|
|
61
|
+
|
|
62
|
+
```yaml
|
|
63
|
+
- type: Box
|
|
64
|
+
props:
|
|
65
|
+
className: "rounded-[32px] bg-[#dceeb1] px-8 py-12"
|
|
66
|
+
children:
|
|
67
|
+
- type: Heading
|
|
68
|
+
props: { level: 2, text: "Design together" }
|
|
69
|
+
- type: Button
|
|
70
|
+
props: { text: "Get started", className: "rounded-full bg-black text-white" }
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## 5. Layout Principles
|
|
74
|
+
|
|
75
|
+
- Editorial frame, then a full-bleed color chapter, then white again.
|
|
76
|
+
- Generous marketing padding (`4–6rem`); product chrome stays tighter.
|
|
77
|
+
- Radius: `6px` / `8px` / `24px` / `32px` / pill.
|
|
78
|
+
|
|
79
|
+
## 6. Depth & Elevation
|
|
80
|
+
|
|
81
|
+
Flat. Color blocks replace shadows. Hairline `#e6e6e6` on white tool UI only.
|
|
82
|
+
|
|
83
|
+
## 7. Do's and Don'ts
|
|
84
|
+
|
|
85
|
+
- Do: one pastel chapter per scroll region; black pill CTA.
|
|
86
|
+
- Do: light display type and real product language.
|
|
87
|
+
- Don't: purple-on-white SaaS cards, equal grey tiles, fake community stats.
|
|
88
|
+
- Don't: unscoped global CSS to paint the pastels — scope `className` on `Box`.
|
|
89
|
+
|
|
90
|
+
## 8. Responsive Behavior
|
|
91
|
+
|
|
92
|
+
375: display steps down, pastel panels go full width, CTA stretches.
|
|
93
|
+
768: two-up chapters. 1440: wide editorial measure, oversized type.
|
|
94
|
+
Touch ≥ 44px.
|
|
95
|
+
|
|
96
|
+
Quick tokens: `--bg: #ffffff` `--fg: #000000` `--accent: #ff3d8b` `--block-lime: #dceeb1`
|
|
97
|
+
|
|
98
|
+
## 9. Agent Prompt Guide
|
|
99
|
+
|
|
100
|
+
Use for playful product marketing, design-tool landings, and colorful chapters.
|
|
101
|
+
Quick colors: `#ffffff` `#000000` `#dceeb1` `#c5b0f4` `#ff3d8b`. If the brief
|
|
102
|
+
is an ops console, use `control-console` instead.
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: frontend-principles
|
|
3
|
+
name: Frontend Design Principles
|
|
4
|
+
title: Frontend Design Principles
|
|
5
|
+
category: general
|
|
6
|
+
tags: [design-quality, typography, animation, anti-slop, frontend-design, theme, 设计质量, 排版, 动效, 反套路, 主题, 前端]
|
|
7
|
+
origin: github:microsoft/agent-academy+anthropics/skills
|
|
8
|
+
sourceUrl: https://github.com/microsoft/agent-academy/blob/main/.github/skills/frontend-design/SKILL.md
|
|
9
|
+
version: "2.0.0"
|
|
10
|
+
layer: auto
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
House-style anti-slop guide for UIBot Spec / page UI. Not a brand system.
|
|
14
|
+
Adapted from public frontend-design skills (do not treat this file as a
|
|
15
|
+
verbatim copy):
|
|
16
|
+
|
|
17
|
+
- Microsoft agent-academy `frontend-design` —
|
|
18
|
+
https://github.com/microsoft/agent-academy/blob/main/.github/skills/frontend-design/SKILL.md
|
|
19
|
+
- Anthropic skills `frontend-design` —
|
|
20
|
+
https://github.com/anthropics/skills/blob/main/skills/frontend-design/SKILL.md
|
|
21
|
+
|
|
22
|
+
The default generation path force-includes this id. UI Craft baseline (lane
|
|
23
|
+
selection + hard bans) is injected separately and always-on.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
|
|
27
|
+
Generated UI clusters on a statistical mean: grey canvas, 8px radius, centered
|
|
28
|
+
cards, even padding, soft purple-blue gradients, Inter 400 everywhere. Real
|
|
29
|
+
products take a stance. Pick the stance before you pick a color.
|
|
30
|
+
|
|
31
|
+
## 1. Lane, then identity
|
|
32
|
+
|
|
33
|
+
Match the brief to one lane, then apply a design-md (or this guide):
|
|
34
|
+
|
|
35
|
+
| Lane | Feel | Pair with |
|
|
36
|
+
| --- | --- | --- |
|
|
37
|
+
| control / ops console | restrained, status-first, dense tokens | `control-console`, `shadcn-admin-dashboard` |
|
|
38
|
+
| marketing / landing | named aesthetic, one unforgettable moment | brand `*.design.md` |
|
|
39
|
+
| admin / SaaS chrome | sidebar, table, form, quiet accent | `ibm-design`, `shadcn-admin-dashboard` |
|
|
40
|
+
| UIBot Spec | execute the selected design-md tokens | picker or intent match |
|
|
41
|
+
|
|
42
|
+
Bold maximalism and refined minimalism both work. Intentionality matters more
|
|
43
|
+
than intensity (agent-academy). If a design-md is selected, it wins on tokens.
|
|
44
|
+
|
|
45
|
+
## 2. Plan before pixels
|
|
46
|
+
|
|
47
|
+
Two passes (Anthropic process, UIBot-shaped):
|
|
48
|
+
|
|
49
|
+
1. Compact token plan: 4–6 named hex roles, 1–2 type families, layout rhythm,
|
|
50
|
+
0–2 motion moments, one differentiator.
|
|
51
|
+
2. Critique against the brief. If any axis looks like the generic default you
|
|
52
|
+
would produce for any similar page, revise it and say why. Then write Spec.
|
|
53
|
+
|
|
54
|
+
Do not open with a big number + small label + gradient accent unless that is
|
|
55
|
+
truly the best treatment for this subject.
|
|
56
|
+
|
|
57
|
+
## 3. Typography
|
|
58
|
+
|
|
59
|
+
- Marketing identity: three roles only (display / body / meta). Product chrome
|
|
60
|
+
(control / admin) uses the lane guide's ladder — `control-console` is
|
|
61
|
+
11 / 12 / 13 / 14 / 16 / 20. Do not invent a third scale.
|
|
62
|
+
- Pair typefaces on purpose. Avoid Inter / Roboto / Arial / generic system-ui
|
|
63
|
+
as the **default marketing** face. Product chrome may use a restrained sans
|
|
64
|
+
when the selected design-md names it (Linear Inter, IBM Plex, Geist).
|
|
65
|
+
- Display tight (`leading-[0.95] tracking-tight`); body loose (`leading-7`).
|
|
66
|
+
- Line length ≤ 75–80ch. Left-align long copy. Center only titles and single lines.
|
|
67
|
+
- Avoid generated tells: one italic/colored word in a headline, ALL-CAPS
|
|
68
|
+
eyebrows on every heading, `WORD — fragment` labels, `→` on every CTA.
|
|
69
|
+
|
|
70
|
+
## 4. Color, surface, motion
|
|
71
|
+
|
|
72
|
+
- 2 dominant + 1 accent. Neutrals carry ~90% of surface.
|
|
73
|
+
- Flat white is a choice; compensate with shadow *or* border, not both on every card.
|
|
74
|
+
- Dark mode is a redesigned palette, not inversion.
|
|
75
|
+
- Motion signals, it does not perform. ≤ 200ms. One orchestrated moment beats
|
|
76
|
+
fade-and-slide on every section. Custom easing over default `ease`.
|
|
77
|
+
- Never use purple-gradient-on-white as the default marketing look.
|
|
78
|
+
|
|
79
|
+
## 5. Break the centre
|
|
80
|
+
|
|
81
|
+
Own at least two axes against the AI mean (unless the brief or design-md pins them):
|
|
82
|
+
|
|
83
|
+
| Mean | Stance |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| `rounded-lg` everywhere | `rounded-none` / `rounded-[2px]` / `rounded-full` |
|
|
86
|
+
| Centered hero | Left display + asymmetric rail |
|
|
87
|
+
| Soft purple wash | Single accent + paper/noise/flat |
|
|
88
|
+
| Equal section padding | Alternate full-bleed and narrow prose |
|
|
89
|
+
| Inter 400 | Named display + quiet body |
|
|
90
|
+
| Card + shadow + border | One elevation language |
|
|
91
|
+
|
|
92
|
+
## 6. UIBot Spec recipes
|
|
93
|
+
|
|
94
|
+
Prefer catalog / resource blocks. Style via tokens / `className` the runtime
|
|
95
|
+
understands. Do not emit `_js`. Empty, loading, and error must differ. Never
|
|
96
|
+
invent block types.
|
|
97
|
+
|
|
98
|
+
**Marketing / landing** — when the aesthetic fits (Schematic Editorial / amber
|
|
99
|
+
marketing tokens `--marketing-accent`, `--font-display`), prefer `Hero`,
|
|
100
|
+
`SectionHeader`, `FeatureGrid`, `PricingTable`, `CtaBand`, `Steps`,
|
|
101
|
+
`LogoCloud`, `BrowserFrame`. A selected brand design-md (vercel / stripe / …)
|
|
102
|
+
owns hex and type; still use those L2/L3 blocks instead of hand-rolled
|
|
103
|
+
`Box`+`Card` grids for features and pricing.
|
|
104
|
+
|
|
105
|
+
```yaml
|
|
106
|
+
blocks:
|
|
107
|
+
- type: Hero
|
|
108
|
+
props:
|
|
109
|
+
eyebrow: Issue tracker
|
|
110
|
+
title: One surface for triage
|
|
111
|
+
subtitle: Keyboard-first. No vanity KPIs.
|
|
112
|
+
primaryCta: { label: Start free, href: /signup }
|
|
113
|
+
secondaryCta: { label: View pricing, href: /pricing }
|
|
114
|
+
- type: FeatureGrid
|
|
115
|
+
props:
|
|
116
|
+
cols: "3"
|
|
117
|
+
items:
|
|
118
|
+
- { icon: zap, title: Keyboard triage, desc: Assign without a mouse. }
|
|
119
|
+
- { icon: layers, title: One canvas, desc: Issues stay on the roadmap. }
|
|
120
|
+
- { icon: shield, title: Honest empty, desc: Unknown counts stay n/a. }
|
|
121
|
+
- type: PricingTable
|
|
122
|
+
props:
|
|
123
|
+
billingNote: Published rates. Enterprise is a conversation.
|
|
124
|
+
plans:
|
|
125
|
+
- { name: Starter, price: "$0", period: "/mo", features: ["3 projects"], cta: { label: Start } }
|
|
126
|
+
- { name: Pro, price: "$24", period: "/mo", highlighted: true, features: ["SSO"], cta: { label: Trial } }
|
|
127
|
+
- type: CtaBand
|
|
128
|
+
props:
|
|
129
|
+
title: Create a workspace
|
|
130
|
+
cta: { label: Get started free, href: /signup }
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Hard rule: never hand-roll a 3-tier pricing grid from `Card`+`Stat` when
|
|
134
|
+
`PricingTable` is in the catalog.
|
|
135
|
+
|
|
136
|
+
**Admin / ops** — prefer `PageLayout` + `PageSiderMenu`, `StatGrid`, `Toast`,
|
|
137
|
+
`Table` / `SearchableTable` with `emptyText`, `TrendChart`, `TimelineList`,
|
|
138
|
+
`BadgeGroup`. See `control-console`.
|
|
139
|
+
|
|
140
|
+
Hard bans in Spec output: nested Button, unscoped `html, body, *` CSS, invented
|
|
141
|
+
metrics, blocks not in the catalog.
|
|
142
|
+
|
|
143
|
+
## 7. Responsive intent
|
|
144
|
+
|
|
145
|
+
Check 375 / 768 / 1440 before finishing. Stack navigation, keep type readable,
|
|
146
|
+
no horizontal overflow, touch targets ≥ 44px on the 375 lane.
|
|
147
|
+
|
|
148
|
+
Quick tokens (for extractors / Spec `style`): `--bg: #0f1011` `--fg: #f7f8f8`
|
|
149
|
+
`--accent: #4cb782` `--danger: #eb5757`
|
|
150
|
+
|
|
151
|
+
## Agent prompt
|
|
152
|
+
|
|
153
|
+
Commit to a lane and a differentiator in one sentence, list tokens, then emit
|
|
154
|
+
one page YAML + matching HTML artifact. If `frontend-principles` and a brand
|
|
155
|
+
guide both appear, the brand owns hex/type; this file owns anti-slop and Spec hygiene.
|