@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.
Files changed (42) hide show
  1. package/dist/content.d.ts +15 -0
  2. package/dist/discovery.d.ts +40 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +0 -0
  5. package/dist/resources/design-md/claude.design.md +178 -0
  6. package/dist/resources/design-md/control-console.design.md +176 -0
  7. package/dist/resources/design-md/figma.design.md +102 -0
  8. package/dist/resources/design-md/frontend-principles.design.md +155 -0
  9. package/dist/resources/design-md/ibm.design.md +109 -0
  10. package/dist/resources/design-md/linear.design.md +175 -0
  11. package/dist/resources/design-md/notion.design.md +175 -0
  12. package/dist/resources/design-md/raycast.design.md +106 -0
  13. package/dist/resources/design-md/stripe.design.md +178 -0
  14. package/dist/resources/design-md/supabase.design.md +185 -0
  15. package/dist/resources/design-md/vercel.design.md +172 -0
  16. package/dist/resources/shells/app-shell-floating.yaml +42 -0
  17. package/dist/resources/shells/app-shell-icon-rail.yaml +42 -0
  18. package/dist/resources/shells/app-shell-inset.yaml +42 -0
  19. package/dist/resources/shells/app-shell-settings.yaml +56 -0
  20. package/dist/resources/shells/app-shell-sidebar.yaml +47 -0
  21. package/dist/resources/shells/app-shell-workspace.yaml +54 -0
  22. package/dist/resources/shells/shadcn-admin-shell.yaml +151 -0
  23. package/dist/resources/templates/admin-dashboard.yaml +183 -0
  24. package/dist/resources/templates/ai-chat.yaml +448 -0
  25. package/dist/resources/templates/analytics-dashboard.yaml +152 -0
  26. package/dist/resources/templates/auth.yaml +90 -0
  27. package/dist/resources/templates/blog.yaml +111 -0
  28. package/dist/resources/templates/crm.yaml +161 -0
  29. package/dist/resources/templates/ecommerce.yaml +169 -0
  30. package/dist/resources/templates/lms.yaml +459 -0
  31. package/dist/resources/templates/portfolio.yaml +139 -0
  32. package/dist/resources/templates/pricing.yaml +171 -0
  33. package/dist/resources/templates/saas-landing.yaml +199 -0
  34. package/dist/resources/templates/settings.yaml +151 -0
  35. package/dist/resources/templates/shadcn-admin.yaml +4660 -0
  36. package/dist/resources/templates/store.yaml +469 -0
  37. package/dist/resources/templates/support-inbox.yaml +96 -0
  38. package/dist/resources/templates/team-directory.yaml +98 -0
  39. package/dist/server.d.ts +23 -0
  40. package/dist/server.js +138 -0
  41. package/package.json +39 -4
  42. package/README.md +0 -3
@@ -0,0 +1,178 @@
1
+ ---
2
+ id: stripe-design
3
+ title: Stripe Design System
4
+ category: brand
5
+ tags: [light-first, blurple, layered, generous-whitespace, polished, fintech, 支付, 金融, 精致, 留白, 浅色, 营销]
6
+ layer: auto
7
+ ---
8
+
9
+ ## 1. Visual Theme & Atmosphere
10
+
11
+ Stripe feels confident, optimistic, and impeccably engineered. The canvas is
12
+ bright and clean, type is crisp, and the signature "blurple" anchors a palette
13
+ that can shift into gradients and gentle hue rotations without ever feeling
14
+ loud. Depth is layered: cards float on soft, multi-stop shadows; sections stack
15
+ with generous whitespace; angled planes and subtle gradients add dimension.
16
+ The mood is trustworthy and premium — the look of infrastructure you'd hand
17
+ your money to. Favor clarity, breathing room, and quietly delightful detail.
18
+
19
+ ## 2. Color Palette & Roles
20
+
21
+ | Role | Token | Value | Notes |
22
+ | --- | --- | --- | --- |
23
+ | Background | `--bg` | `#ffffff` | page canvas |
24
+ | Background alt | `--bg-alt` | `#f6f9fc` | section bands, subtle fills |
25
+ | Surface | `--surface` | `#ffffff` | cards on tinted bands |
26
+ | Foreground | `--fg` | `#0a2540` | primary text, deep navy |
27
+ | Muted foreground | `--fg-muted` | `#425466` | secondary text |
28
+ | Subtle foreground | `--fg-subtle` | `#697386` | captions, meta |
29
+ | Accent | `--accent` | `#635bff` | blurple, primary action |
30
+ | Accent hover | `--accent-hover` | `#7a73ff` | hover |
31
+ | Accent foreground | `--accent-fg` | `#ffffff` | text on accent |
32
+ | Border | `--border` | `#e6e9ec` | hairlines |
33
+ | Success | `--success` | `#3ecf8e` | positive |
34
+ | Warning | `--warning` | `#f5be58` | caution |
35
+ | Danger | `--danger` | `#df1b41` | error, decline |
36
+ | Gradient | `--grad` | `linear-gradient(101deg,#a960ee,#635bff 40%,#21d4fd)` | hero accents |
37
+
38
+ ## 3. Typography Rules
39
+
40
+ - **Sans:** `"Söhne", "Inter", -apple-system, "Segoe UI", sans-serif`
41
+ - **Mono:** `"Söhne Mono", "SF Mono", ui-monospace, monospace`
42
+
43
+ Headings are tight and dark navy; body stays highly legible at comfortable
44
+ sizes. Whitespace does the heavy lifting, so type can stay restrained.
45
+
46
+ | Role | Size | Weight | Line-height | Tracking |
47
+ | --- | --- | --- | --- | --- |
48
+ | Display | `3.5rem` | `600` | `1.08` | `-0.02em` |
49
+ | H1 | `2.5rem` | `600` | `1.12` | `-0.018em` |
50
+ | H2 | `1.75rem` | `560` | `1.2` | `-0.012em` |
51
+ | H3 | `1.25rem` | `560` | `1.3` | `-0.008em` |
52
+ | Body | `1rem` | `400` | `1.6` | `0` |
53
+ | Body large | `1.125rem` | `400` | `1.6` | `0` |
54
+ | Label | `0.875rem` | `560` | `1.4` | `0.01em` |
55
+ | Caption | `0.8125rem` | `420` | `1.5` | `0.01em` |
56
+
57
+ ## 4. Component Stylings
58
+
59
+ ### Buttons
60
+
61
+ - **Primary:** bg `#635bff`, text `#ffffff`, radius `0.5rem`, padding
62
+ `0.625rem 1rem`, weight `560`, font-size `0.9375rem`, shadow
63
+ `0 2px 5px rgba(99,91,255,0.25)`. Hover bg `#7a73ff` + lift to
64
+ `0 4px 12px rgba(99,91,255,0.3)`. Active translateY `1px`. Focus ring
65
+ `0 0 0 3px rgba(99,91,255,0.35)`.
66
+ - **Secondary:** bg `#ffffff`, text `#635bff`, border `1px solid #e6e9ec`,
67
+ shadow `0 1px 2px rgba(10,37,64,0.08)`.
68
+ - **Disabled:** opacity `0.5`, no lift.
69
+
70
+ ### Cards
71
+
72
+ - bg `#ffffff`, radius `0.75rem`, padding `1.5rem`, border `1px solid #e6e9ec`,
73
+ shadow `0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.07)`.
74
+
75
+ ### Inputs
76
+
77
+ - bg `#ffffff`, border `1px solid #e6e9ec`, radius `0.5rem`, height `2.5rem`,
78
+ padding `0 0.75rem`, text `#0a2540`, placeholder `#8792a2`, shadow
79
+ `0 1px 2px rgba(10,37,64,0.06)`.
80
+ - Focus: border `#635bff`, ring `0 0 0 3px rgba(99,91,255,0.2)`.
81
+
82
+ ### Badges
83
+
84
+ - Pill, radius `9999px`, font-size `0.75rem`, weight `560`, padding
85
+ `0.1875rem 0.625rem`. Success: bg `#d7f7e9`, text `#0e6245`.
86
+
87
+ ### Navigation
88
+
89
+ - Top bar, bg `rgba(255,255,255,0.8)` with `backdrop-filter: blur(10px)`,
90
+ height `4rem`, border-bottom `1px solid #e6e9ec`. Links `#425466`, weight
91
+ `560`; hover `#0a2540`. CTA uses primary button.
92
+
93
+ ## 5. Layout Principles
94
+
95
+ - **Spacing scale:** `0.25rem · 0.5rem · 1rem · 1.5rem · 2rem · 3rem · 5rem · 8rem`.
96
+ - **Container max-width:** `73.125rem` (≈1170px), centered, side padding
97
+ `1.5rem`.
98
+ - **Grid:** 12-column, gutter `2rem`; cards in 3-up on desktop.
99
+ - **Whitespace:** generous — section vertical rhythm `5rem`–`8rem`.
100
+ - **Radius scale:** `sm 0.375rem · md 0.5rem · lg 0.75rem · xl 1rem · full 9999px`.
101
+
102
+ ## 6. Depth & Elevation
103
+
104
+ Shadows are soft, layered (two stops), and tinted cool — never harsh black.
105
+
106
+ | Level | Use | Shadow |
107
+ | --- | --- | --- |
108
+ | 0 | flat / on tinted band | `none` |
109
+ | 1 | input, subtle card | `0 1px 2px rgba(10,37,64,0.08)` |
110
+ | 2 | card | `0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.07)` |
111
+ | 3 | popover, hovered card | `0 13px 27px rgba(50,50,93,0.14), 0 8px 16px rgba(0,0,0,0.08)` |
112
+ | 4 | modal | `0 30px 60px rgba(50,50,93,0.18), 0 18px 36px rgba(0,0,0,0.1)` |
113
+
114
+ ## 7. Do's and Don'ts
115
+
116
+ **Do**
117
+
118
+ - Keep the page bright; alternate white and `#f6f9fc` bands for rhythm.
119
+ - Use blurple `#635bff` for primary actions and accent moments.
120
+ - Layer soft two-stop shadows for floating cards.
121
+ - Give sections generous vertical breathing room (`5rem`+).
122
+ - Reach for the brand gradient only for hero/feature accents.
123
+
124
+ **Don't**
125
+
126
+ - Don't use harsh pure-black shadows; keep them cool and tinted.
127
+ - Don't crowd content — whitespace is part of the brand.
128
+ - Don't overuse the gradient as a flat background for text blocks.
129
+ - Don't drop below `1rem` body size for primary reading.
130
+ - Don't mix in a competing saturated accent next to blurple.
131
+
132
+ ## 8. Responsive Behavior
133
+
134
+ | Breakpoint | Min width | Behavior |
135
+ | --- | --- | --- |
136
+ | `sm` | `640px` | single column, full-width cards |
137
+ | `md` | `768px` | 2-up card grids, nav stays inline |
138
+ | `lg` | `1024px` | 3-up grids, full multi-column sections |
139
+ | `xl` | `1280px` | max container `73.125rem`, wider gutters |
140
+
141
+ - **Touch targets:** minimum `44px × 44px`; buttons keep `2.5rem`+ height.
142
+ - **Collapsing strategy:** nav collapses to a hamburger drawer below `md`;
143
+ multi-column feature sections stack vertically while preserving whitespace.
144
+
145
+ ## 9. Agent Prompt Guide
146
+
147
+ ### Quick Color Reference
148
+
149
+ - Accent (blurple): `#635bff` (hover `#7a73ff`)
150
+ - Background: `#ffffff` · Band: `#f6f9fc`
151
+ - Text: `#0a2540` · Muted: `#425466` · Subtle: `#697386`
152
+ - Border: `#e6e9ec`
153
+ - Success `#3ecf8e` · Warning `#f5be58` · Danger `#df1b41`
154
+ - Gradient: `linear-gradient(101deg,#a960ee,#635bff 40%,#21d4fd)`
155
+
156
+ ### Example prompts (copy-paste)
157
+
158
+ 1. "Generate a pricing card in the Stripe system: white surface, radius
159
+ `0.75rem`, level-2 shadow `0 7px 14px rgba(50,50,93,0.1),0 3px 6px
160
+ rgba(0,0,0,0.07)`, navy `#0a2540` heading, `#425466` body, a primary blurple
161
+ `#635bff` CTA with `0 2px 5px rgba(99,91,255,0.25)` shadow, generous
162
+ `1.5rem` padding."
163
+ 2. "Build a feature hero: white canvas, a `73.125rem` centered container, an H1
164
+ at `2.5rem`/weight 600/`-0.018em`, a subhead in `#425466` at `1.125rem`, and
165
+ an accent flourish using the gradient `linear-gradient(101deg,#a960ee,#635bff
166
+ 40%,#21d4fd)`. Vertical rhythm `5rem`."
167
+ 3. "Create a form input + primary button row: input height `2.5rem`, border
168
+ `#e6e9ec`, focus border `#635bff` with `0 0 0 3px rgba(99,91,255,0.2)` ring;
169
+ button bg `#635bff`, radius `0.5rem`, lifting to `0 4px 12px
170
+ rgba(99,91,255,0.3)` on hover."
171
+
172
+ ### Iteration guide
173
+
174
+ 1. Start light: white canvas, alternate `#f6f9fc` bands.
175
+ 2. Place blurple `#635bff` only on primary actions and accents.
176
+ 3. Increase whitespace until sections breathe (`5rem`+ vertical).
177
+ 4. Swap any flat shadow for a soft, cool, two-stop layered shadow.
178
+ 5. Reserve the gradient for one hero/feature moment, never body text.
@@ -0,0 +1,185 @@
1
+ ---
2
+ id: supabase-design
3
+ title: Supabase Design System
4
+ category: brand
5
+ tags: [dark-first, emerald, technical, developer, monospace, data-dense, 数据库, 开发者, 暗色, 深色, 技术, 数据密集]
6
+ layer: auto
7
+ ---
8
+
9
+ ## 1. Visual Theme & Atmosphere
10
+
11
+ Supabase feels like a developer console you actually enjoy using: dark, precise,
12
+ and quietly energetic. The canvas is a deep neutral charcoal (not pure black),
13
+ surfaces step up in cool grays, and a vivid emerald green carries the brand's
14
+ signal — success, action, "it's working." The voice is technical and confident;
15
+ monospace shows up wherever there's data, SQL, or a key. Tables, logs, and code
16
+ are first-class citizens, so the system favors density, alignment, and clear
17
+ status color. Build interfaces that respect engineers' attention: scannable,
18
+ fast, and unmistakably green-accented.
19
+
20
+ ## 2. Color Palette & Roles
21
+
22
+ | Role | Token | Value | Notes |
23
+ | --- | --- | --- | --- |
24
+ | Background | `--bg` | `#1c1c1c` | app canvas, warm charcoal |
25
+ | Surface | `--surface` | `#232323` | cards, panels |
26
+ | Surface raised | `--surface-2` | `#2a2a2a` | popovers, headers |
27
+ | Foreground | `--fg` | `#ededed` | primary text |
28
+ | Muted foreground | `--fg-muted` | `#a0a0a0` | secondary text |
29
+ | Subtle foreground | `--fg-subtle` | `#707070` | meta, disabled |
30
+ | Accent | `--accent` | `#3ecf8e` | emerald, primary action |
31
+ | Accent hover | `--accent-hover` | `#34b87b` | hover |
32
+ | Accent foreground | `--accent-fg` | `#11181c` | dark text on emerald |
33
+ | Border | `--border` | `#2e2e2e` | hairlines |
34
+ | Border strong | `--border-strong` | `#3d3d3d` | input borders |
35
+ | Success | `--success` | `#3ecf8e` | healthy (same as accent) |
36
+ | Warning | `--warning` | `#f5a623` | attention |
37
+ | Danger | `--danger` | `#f56565` | error, destructive |
38
+
39
+ ## 3. Typography Rules
40
+
41
+ - **Sans:** `"Custom Sans", "Inter", -apple-system, "Segoe UI", sans-serif`
42
+ - **Mono:** `"Source Code Pro", "SF Mono", "Berkeley Mono", ui-monospace, monospace`
43
+
44
+ Sans for prose and chrome; mono for SQL, table values, API keys, and code
45
+ blocks. Headings are clean and moderately tight; body stays compact for
46
+ data density.
47
+
48
+ | Role | Size | Weight | Line-height | Tracking |
49
+ | --- | --- | --- | --- | --- |
50
+ | Display | `2.25rem` | `600` | `1.1` | `-0.02em` |
51
+ | H1 | `1.5rem` | `600` | `1.2` | `-0.015em` |
52
+ | H2 | `1.25rem` | `500` | `1.3` | `-0.01em` |
53
+ | H3 | `1rem` | `500` | `1.4` | `-0.005em` |
54
+ | Body | `0.875rem` | `400` | `1.5` | `0` |
55
+ | Label | `0.8125rem` | `500` | `1.4` | `0` |
56
+ | Caption | `0.75rem` | `400` | `1.4` | `0` |
57
+ | Mono / cell | `0.8125rem` | `400` | `1.5` | `0` |
58
+
59
+ ## 4. Component Stylings
60
+
61
+ ### Buttons
62
+
63
+ - **Primary:** bg `#3ecf8e`, text `#11181c`, radius `0.375rem`, padding
64
+ `0.4375rem 0.875rem`, weight `500`, font-size `0.875rem`. Hover bg `#34b87b`.
65
+ Focus ring `0 0 0 2px rgba(62,207,142,0.4)`.
66
+ - **Secondary:** bg `#2a2a2a`, text `#ededed`, border `1px solid #3d3d3d`.
67
+ Hover bg `#323232`.
68
+ - **Ghost:** transparent, text `#a0a0a0`. Hover bg `rgba(255,255,255,0.05)`,
69
+ text `#ededed`.
70
+ - **Disabled:** opacity `0.5`, `cursor: not-allowed`.
71
+
72
+ ### Cards
73
+
74
+ - bg `#232323`, border `1px solid #2e2e2e`, radius `0.5rem`, padding `1.25rem`.
75
+ - No shadow at rest; structure from borders. Section headers on `#2a2a2a`.
76
+
77
+ ### Inputs
78
+
79
+ - bg `#1c1c1c`, border `1px solid #3d3d3d`, radius `0.375rem`, height `2.25rem`,
80
+ padding `0 0.625rem`, text `#ededed`, placeholder `#707070`. Mono variant for
81
+ keys/SQL.
82
+ - Focus: border `#3ecf8e`, ring `0 0 0 2px rgba(62,207,142,0.25)`.
83
+
84
+ ### Badges
85
+
86
+ - Pill, radius `9999px`, font-size `0.75rem`, weight `500`, padding
87
+ `0.125rem 0.5rem`. Status: success bg `rgba(62,207,142,0.15)` text `#3ecf8e`;
88
+ error bg `rgba(245,101,101,0.15)` text `#f56565`.
89
+
90
+ ### Navigation
91
+
92
+ - Left sidebar, bg `#1a1a1a`, width `14rem`. Item height `2rem`, radius
93
+ `0.375rem`, text `#a0a0a0`. Active: bg `rgba(62,207,142,0.1)`, text `#3ecf8e`,
94
+ left accent bar `2px #3ecf8e`. Hover: bg `rgba(255,255,255,0.04)`.
95
+
96
+ ### Tables (first-class)
97
+
98
+ - Header row bg `#2a2a2a`, text `#a0a0a0`, `0.8125rem` uppercase labels.
99
+ - Rows `2.25rem` tall, mono `#ededed` values, hairline `#2e2e2e` dividers,
100
+ hover bg `rgba(255,255,255,0.03)`.
101
+
102
+ ## 5. Layout Principles
103
+
104
+ - **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.25rem · 2rem · 3rem`.
105
+ - **Container max-width:** full-bleed dashboard; content panels `64rem`.
106
+ - **Grid:** sidebar + main; main uses 12-column with `1rem` gutter; tables span
107
+ full width.
108
+ - **Whitespace:** efficient — favor density and alignment over padding.
109
+ - **Radius scale:** `sm 0.25rem · md 0.375rem · lg 0.5rem · xl 0.75rem · full 9999px`.
110
+
111
+ ## 6. Depth & Elevation
112
+
113
+ Dark surfaces step in lightness; shadows appear only for true overlays.
114
+
115
+ | Level | Use | Shadow |
116
+ | --- | --- | --- |
117
+ | 0 | flat surfaces | `none` |
118
+ | 1 | hovered card | `0 1px 2px rgba(0,0,0,0.4)` |
119
+ | 2 | dropdown, popover | `0 4px 16px rgba(0,0,0,0.5)` |
120
+ | 3 | modal, dialog | `0 16px 48px rgba(0,0,0,0.6)` |
121
+
122
+ ## 7. Do's and Don'ts
123
+
124
+ **Do**
125
+
126
+ - Use warm charcoal `#1c1c1c`, not pure black, and step surfaces in cool grays.
127
+ - Reserve emerald `#3ecf8e` for primary actions, success, and active nav.
128
+ - Use monospace for SQL, table cells, API keys, and code.
129
+ - Treat tables/logs as first-class: dense rows, hairline dividers, hover states.
130
+ - Pair emerald text with dark `#11181c` foreground on filled buttons for
131
+ contrast.
132
+
133
+ **Don't**
134
+
135
+ - Don't put light text directly on bright emerald — use dark foreground.
136
+ - Don't use pure black `#000000` backgrounds.
137
+ - Don't add a second saturated accent competing with emerald.
138
+ - Don't loosen table density; engineers scan, they don't browse.
139
+ - Don't rely on heavy shadows on resting surfaces — use borders.
140
+
141
+ ## 8. Responsive Behavior
142
+
143
+ | Breakpoint | Min width | Behavior |
144
+ | --- | --- | --- |
145
+ | `sm` | `640px` | sidebar → drawer; tables scroll horizontally |
146
+ | `md` | `768px` | sidebar icon rail + main panel |
147
+ | `lg` | `1024px` | full sidebar + main + optional detail drawer |
148
+ | `xl` | `1280px` | wider tables, persistent inspector panel |
149
+
150
+ - **Touch targets:** minimum `36px` for table rows, `44px` for primary controls.
151
+ - **Collapsing strategy:** sidebar collapses to a drawer below `md`; wide tables
152
+ become horizontally scrollable with a sticky first column; keep status color
153
+ visible when stacked.
154
+
155
+ ## 9. Agent Prompt Guide
156
+
157
+ ### Quick Color Reference
158
+
159
+ - Accent (emerald): `#3ecf8e` (hover `#34b87b`, on it use `#11181c` text)
160
+ - Background: `#1c1c1c` · Surface: `#232323` · Raised: `#2a2a2a`
161
+ - Text: `#ededed` · Muted: `#a0a0a0` · Subtle: `#707070`
162
+ - Border: `#2e2e2e` (strong `#3d3d3d`)
163
+ - Warning `#f5a623` · Danger `#f56565`
164
+
165
+ ### Example prompts (copy-paste)
166
+
167
+ 1. "Generate a database table view in the Supabase system: `#1c1c1c` canvas,
168
+ header row `#2a2a2a` with `0.8125rem` uppercase `#a0a0a0` labels, `2.25rem`
169
+ rows with mono `#ededed` values, `#2e2e2e` hairline dividers, row hover
170
+ `rgba(255,255,255,0.03)`, and a green `#3ecf8e` 'Insert row' primary button."
171
+ 2. "Build a project sidebar: `#1a1a1a` panel `14rem` wide, items `2rem` tall in
172
+ `#a0a0a0`, active item bg `rgba(62,207,142,0.1)` with `#3ecf8e` text and a
173
+ `2px` emerald left bar, hover `rgba(255,255,255,0.04)`."
174
+ 3. "Create an API-key card: surface `#232323`, `1px #2e2e2e` border, radius
175
+ `0.5rem`, a monospace key in `#ededed`, a success badge bg
176
+ `rgba(62,207,142,0.15)`/text `#3ecf8e`, and a secondary 'Copy' button
177
+ (`#2a2a2a` / `1px #3d3d3d`)."
178
+
179
+ ### Iteration guide
180
+
181
+ 1. Set a warm charcoal base `#1c1c1c` and step surfaces `#232323`/`#2a2a2a`.
182
+ 2. Add emerald `#3ecf8e` only for actions, success, and active state.
183
+ 3. Switch data, keys, and code to monospace.
184
+ 4. Make tables dense and aligned with hairline dividers and hover rows.
185
+ 5. Verify emerald fills use dark `#11181c` text for legible contrast.
@@ -0,0 +1,172 @@
1
+ ---
2
+ id: vercel-design
3
+ title: Vercel Design System
4
+ category: brand
5
+ tags: [high-contrast, monochrome, minimal, sharp, geist, developer, 极简, 黑白, 高对比, 开发者]
6
+ layer: auto
7
+ ---
8
+
9
+ ## 1. Visual Theme & Atmosphere
10
+
11
+ Vercel is uncompromising black-and-white minimalism. The system is built on pure
12
+ contrast: near-black ink on white (or the inverse in dark mode), with color used
13
+ only as a rare functional signal. Edges are crisp, geometry is exact, and the
14
+ Geist typeface gives everything a clean, slightly technical voice. There is no
15
+ ornament — clarity and speed are the brand. Build interfaces that feel like a
16
+ well-set terminal turned into product UI: sharp, fast, legible, and confident in
17
+ their restraint.
18
+
19
+ ## 2. Color Palette & Roles
20
+
21
+ | Role | Token | Value | Notes |
22
+ | --- | --- | --- | --- |
23
+ | Background | `--bg` | `#ffffff` | light canvas |
24
+ | Background dark | `--bg-dark` | `#000000` | dark canvas |
25
+ | Surface | `--surface` | `#ffffff` | cards (light) |
26
+ | Surface dark | `--surface-dark` | `#0a0a0a` | cards (dark) |
27
+ | Foreground | `--fg` | `#000000` | primary ink (light) |
28
+ | Foreground dark | `--fg-dark` | `#ededed` | primary ink (dark) |
29
+ | Muted foreground | `--fg-muted` | `#666666` | secondary text |
30
+ | Subtle foreground | `--fg-subtle` | `#8f8f8f` | meta, disabled |
31
+ | Accent | `--accent` | `#0070f3` | functional blue (links/focus) |
32
+ | Border | `--border` | `#eaeaea` | hairlines (light) |
33
+ | Border dark | `--border-dark` | `#333333` | hairlines (dark) |
34
+ | Success | `--success` | `#0070f3` | / use blue or green `#50e3c2` |
35
+ | Warning | `--warning` | `#f5a623` | caution |
36
+ | Danger | `--danger` | `#ee0000` | error, destructive |
37
+
38
+ ## 3. Typography Rules
39
+
40
+ - **Sans:** `"Geist", "Geist Sans", -apple-system, "Segoe UI", sans-serif`
41
+ - **Mono:** `"Geist Mono", "SF Mono", ui-monospace, monospace`
42
+
43
+ Geist is geometric and even; headings are bold and tight, body is plain and
44
+ highly legible. Mono is used liberally for code, metrics, and labels to signal
45
+ the developer audience.
46
+
47
+ | Role | Size | Weight | Line-height | Tracking |
48
+ | --- | --- | --- | --- | --- |
49
+ | Display | `3.75rem` | `700` | `1.0` | `-0.04em` |
50
+ | H1 | `2.25rem` | `600` | `1.1` | `-0.03em` |
51
+ | H2 | `1.5rem` | `600` | `1.2` | `-0.02em` |
52
+ | H3 | `1.125rem` | `600` | `1.3` | `-0.012em` |
53
+ | Body | `1rem` | `400` | `1.5` | `-0.005em` |
54
+ | Label | `0.875rem` | `500` | `1.4` | `0` |
55
+ | Caption | `0.8125rem` | `400` | `1.4` | `0` |
56
+ | Mono | `0.875rem` | `400` | `1.5` | `0` |
57
+
58
+ ## 4. Component Stylings
59
+
60
+ ### Buttons
61
+
62
+ - **Primary (light):** bg `#000000`, text `#ffffff`, radius `0.375rem`, padding
63
+ `0.5rem 0.875rem`, weight `500`, font-size `0.875rem`. Hover bg `#383838`.
64
+ Active bg `#000000`. Focus ring `0 0 0 2px #ffffff, 0 0 0 4px #000000`.
65
+ - **Primary (dark):** bg `#ffffff`, text `#000000`. Hover bg `#cccccc`.
66
+ - **Secondary:** bg `transparent`, text `#000000`, border `1px solid #eaeaea`.
67
+ Hover border `#000000`.
68
+ - **Disabled:** bg `#fafafa`, text `#8f8f8f`, border `#eaeaea`.
69
+
70
+ ### Cards
71
+
72
+ - bg `#ffffff`, border `1px solid #eaeaea`, radius `0.5rem`, padding `1.5rem`.
73
+ - No shadow at rest; rely on the hairline border. Optional level-1 on hover.
74
+
75
+ ### Inputs
76
+
77
+ - bg `#ffffff`, border `1px solid #eaeaea`, radius `0.375rem`, height `2.5rem`,
78
+ padding `0 0.75rem`, text `#000000`, placeholder `#8f8f8f`.
79
+ - Focus: border `#000000`, ring `0 0 0 1px #000000`.
80
+
81
+ ### Badges
82
+
83
+ - Pill, radius `9999px`, font-size `0.75rem`, weight `500`, padding
84
+ `0.125rem 0.5rem`, border `1px solid #eaeaea`, text `#000000`. Status
85
+ variants use a small `0.5rem` colored dot rather than a fill.
86
+
87
+ ### Navigation
88
+
89
+ - Top bar, bg `rgba(255,255,255,0.8)` + `backdrop-filter: blur(8px)`,
90
+ height `4rem`, border-bottom `1px solid #eaeaea`. Links `#666666`; active/hover
91
+ `#000000`. Avatar/CTA on the right.
92
+
93
+ ## 5. Layout Principles
94
+
95
+ - **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 4rem · 6rem`.
96
+ - **Container max-width:** `75rem` (1200px), side padding `1.5rem`.
97
+ - **Grid:** 12-column, gutter `1.5rem`; precise, aligned to an `8px` baseline.
98
+ - **Whitespace:** ample but exact — alignment matters more than padding size.
99
+ - **Radius scale:** `sm 0.25rem · md 0.375rem · lg 0.5rem · xl 0.75rem · full 9999px`.
100
+
101
+ ## 6. Depth & Elevation
102
+
103
+ Elevation is mostly avoided; structure comes from borders and contrast.
104
+
105
+ | Level | Use | Shadow |
106
+ | --- | --- | --- |
107
+ | 0 | flat (default) | `none` |
108
+ | 1 | hovered card | `0 2px 4px rgba(0,0,0,0.06)` |
109
+ | 2 | dropdown, popover | `0 4px 12px rgba(0,0,0,0.1)` |
110
+ | 3 | modal | `0 12px 32px rgba(0,0,0,0.16)` |
111
+
112
+ ## 7. Do's and Don'ts
113
+
114
+ **Do**
115
+
116
+ - Lead with pure black and white; treat color as a rare functional signal.
117
+ - Use hairline `#eaeaea` borders to define structure instead of shadows.
118
+ - Use Geist Mono for code, metrics, and technical labels.
119
+ - Apply tight negative tracking to large headings.
120
+ - Keep edges sharp and alignment exact (snap to an `8px` grid).
121
+
122
+ **Don't**
123
+
124
+ - Don't introduce decorative gradients or multiple accent colors.
125
+ - Don't soften the look with heavy shadows or large radii.
126
+ - Don't reduce contrast below clearly legible black-on-white.
127
+ - Don't add ornament; if it isn't functional, remove it.
128
+ - Don't mix many font weights — bold for headings, regular for body.
129
+
130
+ ## 8. Responsive Behavior
131
+
132
+ | Breakpoint | Min width | Behavior |
133
+ | --- | --- | --- |
134
+ | `sm` | `640px` | single column, full-width |
135
+ | `md` | `768px` | 2-column grids |
136
+ | `lg` | `1024px` | full 12-column layout |
137
+ | `xl` | `1280px` | max container `75rem` |
138
+
139
+ - **Touch targets:** minimum `44px × 44px`; buttons keep `2.5rem` height.
140
+ - **Collapsing strategy:** nav collapses to a hamburger below `md`; multi-column
141
+ grids stack to one column; preserve hairline dividers when stacked.
142
+
143
+ ## 9. Agent Prompt Guide
144
+
145
+ ### Quick Color Reference
146
+
147
+ - Ink: `#000000` (dark mode `#ededed`)
148
+ - Canvas: `#ffffff` (dark mode `#000000`)
149
+ - Muted: `#666666` · Subtle: `#8f8f8f`
150
+ - Border: `#eaeaea` (dark `#333333`)
151
+ - Accent (functional): `#0070f3` · Danger `#ee0000` · Warning `#f5a623`
152
+
153
+ ### Example prompts (copy-paste)
154
+
155
+ 1. "Generate a dashboard stat card in the Vercel system: white surface, `1px
156
+ #eaeaea` border, radius `0.5rem`, no shadow; a metric in Geist Mono
157
+ `0.875rem`, a label in `#666666`, and a tiny `0.5rem` status dot instead of a
158
+ filled badge."
159
+ 2. "Build a top nav: `4rem` tall, `rgba(255,255,255,0.8)` with `blur(8px)`,
160
+ `1px #eaeaea` bottom border, links in `#666666` turning `#000000` on hover,
161
+ and a black primary button (`#000000`/white, radius `0.375rem`) on the right."
162
+ 3. "Create a deploy log panel: `#000000` canvas, `#ededed` text, Geist Mono
163
+ `0.875rem`/`1.5` line-height, `#333333` hairline rows, blue `#0070f3` for
164
+ active/link states only. Sharp corners, no shadow."
165
+
166
+ ### Iteration guide
167
+
168
+ 1. Strip color: render in pure black and white first.
169
+ 2. Define structure with `#eaeaea` hairlines, not shadows.
170
+ 3. Add Geist Mono wherever data or code appears.
171
+ 4. Tighten heading tracking and keep edges sharp (no large radii).
172
+ 5. Reintroduce one functional accent (`#0070f3`/`#ee0000`) only where it signals.
@@ -0,0 +1,42 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: app-shell-floating
4
+ path: /
5
+ title: Floating App
6
+ blocks:
7
+ - type: PageLayout
8
+ props:
9
+ title: Floating App
10
+ variant: floating
11
+ collapsible: none
12
+ slots:
13
+ sidebar:
14
+ - type: PageSiderMenu
15
+ props:
16
+ title: Workspace
17
+ children:
18
+ - type: MenuGroup
19
+ props:
20
+ title: Main
21
+ children:
22
+ - type: MenuLink
23
+ props:
24
+ label: Home
25
+ href: "#"
26
+ icon: "▦"
27
+ active: true
28
+ - type: MenuLink
29
+ props:
30
+ label: Search
31
+ href: "#"
32
+ icon: "◍"
33
+ children:
34
+ - type: Heading
35
+ props:
36
+ level: 2
37
+ text: Overview
38
+ - type: Paragraph
39
+ props:
40
+ size: sm
41
+ muted: true
42
+ text: "App shell placeholder. Replace main content in Builder."
@@ -0,0 +1,42 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: app-shell-icon-rail
4
+ path: /
5
+ title: Icon Rail
6
+ blocks:
7
+ - type: PageLayout
8
+ props:
9
+ title: Icon Rail
10
+ variant: sidebar
11
+ collapsible: icon
12
+ slots:
13
+ sidebar:
14
+ - type: PageSiderMenu
15
+ props:
16
+ title: Rail
17
+ children:
18
+ - type: MenuGroup
19
+ props:
20
+ title: Main
21
+ children:
22
+ - type: MenuLink
23
+ props:
24
+ label: Home
25
+ href: "#"
26
+ icon: "▦"
27
+ active: true
28
+ - type: MenuLink
29
+ props:
30
+ label: Inbox
31
+ href: "#"
32
+ icon: "▤"
33
+ children:
34
+ - type: Heading
35
+ props:
36
+ level: 2
37
+ text: Overview
38
+ - type: Paragraph
39
+ props:
40
+ size: sm
41
+ muted: true
42
+ text: "App shell placeholder. Replace main content in Builder."
@@ -0,0 +1,42 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: app-shell-inset
4
+ path: /
5
+ title: Inset App
6
+ blocks:
7
+ - type: PageLayout
8
+ props:
9
+ title: Inset App
10
+ variant: inset
11
+ collapsible: none
12
+ slots:
13
+ sidebar:
14
+ - type: PageSiderMenu
15
+ props:
16
+ title: Workspace
17
+ children:
18
+ - type: MenuGroup
19
+ props:
20
+ title: Platform
21
+ children:
22
+ - type: MenuLink
23
+ props:
24
+ label: Dashboard
25
+ href: "#"
26
+ icon: "▦"
27
+ active: true
28
+ - type: MenuLink
29
+ props:
30
+ label: Reports
31
+ href: "#"
32
+ icon: "◔"
33
+ children:
34
+ - type: Heading
35
+ props:
36
+ level: 2
37
+ text: Overview
38
+ - type: Paragraph
39
+ props:
40
+ size: sm
41
+ muted: true
42
+ text: "App shell placeholder. Replace main content in Builder."