@uibot/design-md 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.
@@ -0,0 +1,175 @@
1
+ ---
2
+ id: notion-design
3
+ title: Notion Design System
4
+ category: brand
5
+ tags: [light-first, warm-neutral, serif-accents, soft, content-first, calm, 笔记, 文档, 内容, 温暖, 柔和]
6
+ layer: auto
7
+ ---
8
+
9
+ ## 1. Visual Theme & Atmosphere
10
+
11
+ Notion feels like a calm, well-lit page — paper-like, warm, and unhurried. The
12
+ background is an off-white that's easy on the eyes, ink is a soft near-black, and
13
+ color appears only as gentle highlight tints. Serif type adds an editorial,
14
+ documentary warmth at headings while a humanist sans keeps the body friendly.
15
+ Chrome recedes; content leads. Borders are barely-there, radii are soft, and
16
+ interaction states are quiet. Build interfaces that feel like a thoughtfully
17
+ typeset notebook: approachable, flexible, and content-first.
18
+
19
+ ## 2. Color Palette & Roles
20
+
21
+ | Role | Token | Value | Notes |
22
+ | --- | --- | --- | --- |
23
+ | Background | `--bg` | `#ffffff` | page |
24
+ | Background warm | `--bg-warm` | `#f7f6f3` | sidebar, soft panels |
25
+ | Surface | `--surface` | `#ffffff` | cards, blocks |
26
+ | Foreground | `--fg` | `#37352f` | primary ink, warm near-black |
27
+ | Muted foreground | `--fg-muted` | `#787066` | secondary text |
28
+ | Subtle foreground | `--fg-subtle` | `#9b9588` | placeholders, meta |
29
+ | Accent | `--accent` | `#2383e2` | links, primary action (Notion blue) |
30
+ | Accent foreground | `--accent-fg` | `#ffffff` | text on accent |
31
+ | Border | `--border` | `#ebeae8` | hairlines |
32
+ | Highlight yellow | `--hl-yellow` | `#fbf3db` | text highlight |
33
+ | Highlight blue | `--hl-blue` | `#e7f3f8` | callout/highlight |
34
+ | Success | `--success` | `#448361` | done |
35
+ | Warning | `--warning` | `#cb912f` | caution |
36
+ | Danger | `--danger` | `#d44c47` | error, delete |
37
+
38
+ ## 3. Typography Rules
39
+
40
+ - **Serif (headings/accents):** `"Lyon", "Georgia", "Times New Roman", serif`
41
+ - **Sans (body/UI):** `"Inter", -apple-system, "Segoe UI", sans-serif`
42
+ - **Mono:** `"iA Writer Mono", "SF Mono", ui-monospace, monospace`
43
+
44
+ Headings may use the serif for editorial warmth; UI and body use the humanist
45
+ sans. Generous line-height keeps long documents comfortable.
46
+
47
+ | Role | Size | Weight | Line-height | Tracking | Family |
48
+ | --- | --- | --- | --- | --- | --- |
49
+ | Title | `2.5rem` | `700` | `1.2` | `-0.01em` | serif |
50
+ | H1 | `1.875rem` | `600` | `1.3` | `-0.005em` | serif |
51
+ | H2 | `1.5rem` | `600` | `1.3` | `0` | serif |
52
+ | H3 | `1.25rem` | `600` | `1.4` | `0` | sans |
53
+ | Body | `1rem` | `400` | `1.65` | `0` | sans |
54
+ | Small | `0.875rem` | `400` | `1.5` | `0` | sans |
55
+ | Caption | `0.75rem` | `400` | `1.4` | `0.01em` | sans |
56
+ | Code | `0.85rem` | `400` | `1.5` | `0` | mono |
57
+
58
+ ## 4. Component Stylings
59
+
60
+ ### Buttons
61
+
62
+ - **Primary:** bg `#2383e2`, text `#ffffff`, radius `0.375rem`, padding
63
+ `0.375rem 0.75rem`, weight `500`, font-size `0.875rem`. Hover bg `#1a73d1`.
64
+ Focus ring `0 0 0 2px rgba(35,131,226,0.3)`.
65
+ - **Subtle (default UI):** bg `transparent`, text `#37352f`. Hover bg
66
+ `rgba(55,53,47,0.06)`. This is the most common button in product chrome.
67
+ - **Disabled:** opacity `0.5`.
68
+
69
+ ### Cards / Blocks
70
+
71
+ - bg `#ffffff`, radius `0.5rem`, padding `1rem`, border `1px solid #ebeae8`.
72
+ - Callouts: tinted bg (`#f7f6f3` / `#e7f3f8`), radius `0.375rem`, padding
73
+ `1rem`, with a leading emoji/icon slot.
74
+
75
+ ### Inputs
76
+
77
+ - bg `#ffffff`, border `1px solid #ebeae8`, radius `0.375rem`, height `2.25rem`,
78
+ padding `0 0.625rem`, text `#37352f`, placeholder `#9b9588`.
79
+ - Focus: border `#2383e2`, ring `0 0 0 2px rgba(35,131,226,0.2)`.
80
+ - Inline editing: borderless until hover (bg `rgba(55,53,47,0.04)`).
81
+
82
+ ### Badges / Tags
83
+
84
+ - Pill, radius `0.25rem`, font-size `0.75rem`, weight `500`, padding
85
+ `0.0625rem 0.375rem`. Soft tints, e.g. bg `#fbf3db`, text `#7a5c1e`.
86
+
87
+ ### Navigation
88
+
89
+ - Left sidebar, bg `#f7f6f3`, width `15rem`. Item height `1.75rem`, radius
90
+ `0.375rem`, text `#787066`. Hover bg `rgba(55,53,47,0.06)`. Active bg
91
+ `rgba(55,53,47,0.08)`, text `#37352f`.
92
+
93
+ ## 5. Layout Principles
94
+
95
+ - **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem`.
96
+ - **Container max-width:** `45rem` for reading documents; full-width app shell.
97
+ - **Grid:** content is single-column and centered; optional 2–3 column block
98
+ galleries with `0.75rem` gaps.
99
+ - **Whitespace:** soft and even; comfortable reading measure (~70ch).
100
+ - **Radius scale:** `sm 0.25rem · md 0.375rem · lg 0.5rem · xl 0.75rem`.
101
+
102
+ ## 6. Depth & Elevation
103
+
104
+ Depth is minimal and warm — content sits on the page, popovers lift gently.
105
+
106
+ | Level | Use | Shadow |
107
+ | --- | --- | --- |
108
+ | 0 | inline content | `none` |
109
+ | 1 | hovered block | `0 1px 2px rgba(15,15,15,0.08)` |
110
+ | 2 | popover, menu | `0 3px 12px rgba(15,15,15,0.12)` |
111
+ | 3 | modal, page peek | `0 12px 36px rgba(15,15,15,0.16)` |
112
+
113
+ ## 7. Do's and Don'ts
114
+
115
+ **Do**
116
+
117
+ - Use warm neutrals (`#ffffff` / `#f7f6f3`) and warm ink `#37352f`.
118
+ - Let content lead; keep chrome quiet and borders barely-there.
119
+ - Reach for serif at titles/headings for editorial warmth.
120
+ - Use soft tint highlights (`#fbf3db`, `#e7f3f8`) for callouts and tags.
121
+ - Keep generous line-height (`1.65`) for readable documents.
122
+
123
+ **Don't**
124
+
125
+ - Don't use cold pure-gray neutrals or stark pure black `#000000`.
126
+ - Don't over-border or box every element; prefer hover-revealed affordances.
127
+ - Don't use heavy shadows or saturated fills on content blocks.
128
+ - Don't crowd the reading measure beyond ~75 characters.
129
+ - Don't let UI chrome compete visually with the content.
130
+
131
+ ## 8. Responsive Behavior
132
+
133
+ | Breakpoint | Min width | Behavior |
134
+ | --- | --- | --- |
135
+ | `sm` | `640px` | sidebar collapses to drawer; single-column doc |
136
+ | `md` | `768px` | persistent sidebar peek; doc centered |
137
+ | `lg` | `1024px` | full sidebar + centered `45rem` reading column |
138
+ | `xl` | `1280px` | wider gallery grids, comments panel |
139
+
140
+ - **Touch targets:** minimum `36px` for list rows, `44px` for primary controls.
141
+ - **Collapsing strategy:** sidebar becomes an overlay drawer below `md`; block
142
+ galleries stack to one column; keep the reading measure centered and calm.
143
+
144
+ ## 9. Agent Prompt Guide
145
+
146
+ ### Quick Color Reference
147
+
148
+ - Accent (Notion blue): `#2383e2`
149
+ - Background: `#ffffff` · Warm panel: `#f7f6f3`
150
+ - Ink: `#37352f` · Muted: `#787066` · Subtle: `#9b9588`
151
+ - Border: `#ebeae8`
152
+ - Highlights: yellow `#fbf3db` · blue `#e7f3f8`
153
+ - Success `#448361` · Warning `#cb912f` · Danger `#d44c47`
154
+
155
+ ### Example prompts (copy-paste)
156
+
157
+ 1. "Generate a document page in the Notion system: warm `#ffffff` canvas, a
158
+ serif title at `2.5rem`/700, body in Inter `1rem`/`1.65` line-height in warm
159
+ ink `#37352f`, centered to a `45rem` reading column with a calm, chrome-light
160
+ feel."
161
+ 2. "Build a callout block: tinted bg `#e7f3f8`, radius `0.375rem`, `1rem`
162
+ padding, a leading emoji slot, body text `#37352f`, no hard border. Keep it
163
+ soft and editorial."
164
+ 3. "Create a left sidebar nav: `#f7f6f3` panel, `15rem` wide, rows `1.75rem`
165
+ tall with `0.375rem` radius, text `#787066`, hover `rgba(55,53,47,0.06)`,
166
+ active `rgba(55,53,47,0.08)` with ink `#37352f`."
167
+
168
+ ### Iteration guide
169
+
170
+ 1. Warm the neutrals: replace cold grays with `#ffffff`/`#f7f6f3` and ink
171
+ `#37352f`.
172
+ 2. Promote content: shrink and quiet the chrome, reveal affordances on hover.
173
+ 3. Add serif at titles/headings for editorial character.
174
+ 4. Apply soft tint highlights for callouts/tags instead of saturated fills.
175
+ 5. Loosen line-height to `1.65` and constrain the reading measure.
@@ -0,0 +1,106 @@
1
+ ---
2
+ id: raycast-design
3
+ name: Raycast Design System
4
+ title: Raycast Design System
5
+ category: brand
6
+ tags: [dark-first, command-palette, dense, developer-tools, monochrome, product, 命令面板, 效率, 开发者, 暗色, 深色, 单色]
7
+ origin: github:VoltAgent/awesome-design-md
8
+ sourceUrl: https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/raycast/DESIGN.md
9
+ version: "1.0.0"
10
+ layer: auto
11
+ ---
12
+
13
+ Adapted from the public VoltAgent awesome-design-md Raycast analysis (MIT).
14
+ Tokens below are the publicly documented marketing/product chrome from that
15
+ file, rewritten as a UIBot 9-section seed with Spec recipes. Not a verbatim
16
+ copy of the upstream DESIGN.md.
17
+
18
+ ## 1. Visual Theme & Atmosphere
19
+
20
+ Raycast reads as an extended product screenshot: near-black canvas, command
21
+ palette chrome at marketing scale, hairline borders, and rare saturated
22
+ category accents. The page never leaves dark mode. Energy comes from a red
23
+ diagonal hero stripe and real UI captures, not from purple SaaS gradients.
24
+
25
+ ## 2. Color Palette & Roles
26
+
27
+ | Role | Token | Value | Notes |
28
+ | --- | --- | --- | --- |
29
+ | Background | `--bg` | `#07080a` | inky canvas |
30
+ | Surface | `--surface` | `#0d0d0d` | panels |
31
+ | Surface raised | `--surface-2` | `#101111` | elevated chrome |
32
+ | Card | `--surface-card` | `#121212` | palette rows |
33
+ | Foreground | `--fg` | `#f4f4f6` | ink |
34
+ | Body | `--fg-body` | `#cdcdcd` | secondary |
35
+ | Muted | `--fg-muted` | `#9c9c9d` | meta |
36
+ | Border | `--border` | `#242728` | 1px hairline |
37
+ | CTA | `--cta` | `#ffffff` | white pill on dark |
38
+ | CTA ink | `--cta-fg` | `#000000` | |
39
+ | Accent red | `--accent-red` | `#ff6161` | hero stripe / danger |
40
+ | Accent yellow | `--accent-yellow` | `#ffc533` | category |
41
+ | Accent green | `--accent-green` | `#59d499` | category |
42
+ | Accent blue | `--accent-blue` | `#57c1ff` | category |
43
+
44
+ ## 3. Typography Rules
45
+
46
+ Upstream marketing uses Inter with `ss03`. For UIBot, prefer a quiet grotesque
47
+ already in the runtime (or Geist) rather than inventing a new webfont. Keep
48
+ the **product** scale tight:
49
+
50
+ | Role | Size | Weight | Line-height |
51
+ | --- | --- | --- | --- |
52
+ | Display | `3.5rem` | `600` | `1.1` |
53
+ | H1 | `1.5rem` | `500` | `1.2` |
54
+ | Body | `1rem` | `400` | `1.6` |
55
+ | Meta | `0.875rem` | `500` | `1.4` |
56
+
57
+ ## 4. Component Stylings
58
+
59
+ - Primary CTA: white pill (`rounded-full`), black label. One per hero.
60
+ - Cards: 6–10px radius, 1px `#242728`, no heavy shadow.
61
+ - Command-row recipe: icon slot + title + shortcut kbd on the right.
62
+ - Category color is for tiles/illustrations, not for every badge.
63
+
64
+ ```yaml
65
+ - type: Box
66
+ props:
67
+ className: "rounded-[10px] border border-[#242728] bg-[#121212] px-3 py-2 flex items-center gap-3"
68
+ children:
69
+ - type: Paragraph
70
+ props: { text: "Switch Window" }
71
+ - type: Badge
72
+ props: { text: "⌘ Tab" }
73
+ ```
74
+
75
+ ## 5. Layout Principles
76
+
77
+ - Continuous dark canvas. Section rhythm ~ `6rem` on marketing; `0.5–0.75rem`
78
+ inside a palette.
79
+ - Max content ~ `72rem`. Hero can full-bleed the red stripe.
80
+ - Radius scale: `6px` / `10px` / pill.
81
+
82
+ ## 6. Depth & Elevation
83
+
84
+ Almost flat. Surfaces step `#07080a → #0d0d0d → #121212`. No drop-shadow
85
+ ladders. Focus is a 1px light hairline or accent ring.
86
+
87
+ ## 7. Do's and Don'ts
88
+
89
+ - Do: command-palette density, keyboard hints, monochrome chrome.
90
+ - Do: one white pill CTA; saturate only category art.
91
+ - Don't: light-mode marketing, purple gradient hero, Inter-as-personality
92
+ without the dark palette around it.
93
+ - Don't: fake extension counts or store ratings.
94
+
95
+ ## 8. Responsive Behavior
96
+
97
+ 375: stack hero, hide shortcut kbd or wrap. 768: two-column feature tiles.
98
+ 1440: palette mock + copy rail. Touch targets ≥ 44px outside the dense list.
99
+
100
+ Quick tokens: `--bg: #07080a` `--surface-card: #121212` `--cta: #ffffff` `--accent-red: #ff6161`
101
+
102
+ ## 9. Agent Prompt Guide
103
+
104
+ Use for launcher / command palette / dark developer-tool chrome. Quick colors:
105
+ `#07080a` `#121212` `#ffffff` `#ff6161`. Prefer `Box` + `Badge` + `Input` over
106
+ custom CSS. If the brief is a bright landing page, pick another brand.
@@ -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.