@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.
- package/content/README.md +122 -0
- package/content/_TEMPLATE.design.md +137 -0
- package/content/claude.design.md +178 -0
- package/content/control-console.design.md +176 -0
- package/content/figma.design.md +102 -0
- package/content/frontend-principles.design.md +155 -0
- package/content/ibm.design.md +109 -0
- package/content/linear.design.md +175 -0
- package/content/notion.design.md +175 -0
- package/content/raycast.design.md +106 -0
- package/content/stripe.design.md +178 -0
- package/content/supabase.design.md +185 -0
- package/content/vercel.design.md +172 -0
- package/dist/content.d.ts +15 -0
- package/dist/evolution-adapter.d.ts +111 -0
- package/dist/export.d.ts +18 -0
- package/dist/fs-source.d.ts +7 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +207 -0
- package/dist/loader.d.ts +6 -0
- package/dist/project-design.d.ts +30 -0
- package/dist/registry.d.ts +23 -0
- package/dist/remote-source.d.ts +62 -0
- package/dist/schema.d.ts +34 -0
- package/dist/selector.d.ts +7 -0
- package/dist/tokens.d.ts +6 -0
- package/package.json +41 -4
- package/README.md +0 -3
|
@@ -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.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ibm-design
|
|
3
|
+
name: IBM Carbon Design System
|
|
4
|
+
title: IBM Carbon Design System
|
|
5
|
+
category: brand
|
|
6
|
+
tags: [enterprise, admin, carbon, light-first, square, ibm-blue, saas-chrome, 企业, 后台, 管理系统, 严谨]
|
|
7
|
+
origin: github:VoltAgent/awesome-design-md
|
|
8
|
+
sourceUrl: https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/ibm/DESIGN.md
|
|
9
|
+
version: "1.0.0"
|
|
10
|
+
layer: auto
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Adapted from the public VoltAgent awesome-design-md IBM / Carbon analysis
|
|
14
|
+
(MIT). Tokens follow the documented Carbon-shaped marketing canvas. Rewritten
|
|
15
|
+
as a UIBot 9-section seed with Spec recipes. Not a verbatim copy.
|
|
16
|
+
|
|
17
|
+
## 1. Visual Theme & Atmosphere
|
|
18
|
+
|
|
19
|
+
Enterprise gravitas reframed for cloud: white surfaces, charcoal type, IBM
|
|
20
|
+
Blue `#0f62fe` as the single accent, and a flat-square aesthetic (0–4px
|
|
21
|
+
radius). Cards are thin-bordered tiles without shadow. This is the admin /
|
|
22
|
+
SaaS chrome lane when the brief wants Carbon, not shadcn-dark.
|
|
23
|
+
|
|
24
|
+
## 2. Color Palette & Roles
|
|
25
|
+
|
|
26
|
+
| Role | Token | Value | Notes |
|
|
27
|
+
| --- | --- | --- | --- |
|
|
28
|
+
| Background | `--bg` | `#ffffff` | canvas |
|
|
29
|
+
| Surface | `--surface` | `#f4f4f4` | rows / well |
|
|
30
|
+
| Surface 2 | `--surface-2` | `#e0e0e0` | |
|
|
31
|
+
| Foreground | `--fg` | `#161616` | ink |
|
|
32
|
+
| Muted | `--fg-muted` | `#525252` | |
|
|
33
|
+
| Subtle | `--fg-subtle` | `#8c8c8c` | |
|
|
34
|
+
| Inverse bg | `--bg-inverse` | `#161616` | |
|
|
35
|
+
| Inverse fg | `--fg-inverse` | `#ffffff` | |
|
|
36
|
+
| Accent | `--accent` | `#0f62fe` | IBM Blue 60 |
|
|
37
|
+
| Accent hover | `--accent-hover` | `#0050e6` | |
|
|
38
|
+
| Accent deep | `--accent-deep` | `#002d9c` | |
|
|
39
|
+
| Border | `--border` | `#e0e0e0` | |
|
|
40
|
+
| Border strong | `--border-strong` | `#161616` | |
|
|
41
|
+
| Success | `--success` | `#24a148` | |
|
|
42
|
+
| Warning | `--warning` | `#f1c21b` | |
|
|
43
|
+
| Danger | `--danger` | `#da1e28` | |
|
|
44
|
+
|
|
45
|
+
## 3. Typography Rules
|
|
46
|
+
|
|
47
|
+
IBM Plex Sans: display at weight 300 (the brand signature), body 400, emphasis
|
|
48
|
+
600. In UIBot, set `className` with a Plex stack when available; otherwise a
|
|
49
|
+
light grotesque — not Inter-as-default-marketing.
|
|
50
|
+
|
|
51
|
+
| Role | Size | Weight | Line-height |
|
|
52
|
+
| --- | --- | --- | --- |
|
|
53
|
+
| Display | `2.625rem` | `300` | `1.2` |
|
|
54
|
+
| Headline | `2rem` | `400` | `1.25` |
|
|
55
|
+
| Body | `1rem` | `400` | `1.5` |
|
|
56
|
+
| Caption | `0.75rem` | `400` | `1.33` |
|
|
57
|
+
| Button | `0.875rem` | `400` | `1.29` |
|
|
58
|
+
|
|
59
|
+
## 4. Component Stylings
|
|
60
|
+
|
|
61
|
+
- Primary button: square-ish (`rounded-none` / `rounded-[2px]`), IBM Blue fill,
|
|
62
|
+
white label. Hover `#0050e6`.
|
|
63
|
+
- Cards: 1px `#e0e0e0`, zero shadow, 0–4px radius.
|
|
64
|
+
- Inputs: 1px strong border, square corners, clear focus ring in Blue.
|
|
65
|
+
|
|
66
|
+
```yaml
|
|
67
|
+
- type: PageLayout
|
|
68
|
+
props: { title: Catalog, variant: sidebar }
|
|
69
|
+
children:
|
|
70
|
+
- type: Heading
|
|
71
|
+
props: { level: 1, text: "Resource catalog", className: "font-light tracking-tight" }
|
|
72
|
+
- type: Table
|
|
73
|
+
props: { striped: false, emptyText: No resources in this space. }
|
|
74
|
+
- type: Button
|
|
75
|
+
props: { text: "Create resource", className: "rounded-none bg-[#0f62fe] text-white" }
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## 5. Layout Principles
|
|
79
|
+
|
|
80
|
+
- Section bands alternate `#ffffff` / `#f4f4f4`.
|
|
81
|
+
- Spacing 4 / 8 / 16 / 24 / 32 / 48. Content max ~ `99rem` for enterprise, but
|
|
82
|
+
UIBot pages should stay readable (`max-w-6xl` for app chrome).
|
|
83
|
+
- Radius: `0` / `2px` / `4px` only.
|
|
84
|
+
|
|
85
|
+
## 6. Depth & Elevation
|
|
86
|
+
|
|
87
|
+
None on cards. Inverse header (`#161616`) is the only dramatic surface.
|
|
88
|
+
Focus is a 2px Blue outline.
|
|
89
|
+
|
|
90
|
+
## 7. Do's and Don'ts
|
|
91
|
+
|
|
92
|
+
- Do: one blue, square corners, Plex-light display, honest empty states.
|
|
93
|
+
- Do: pair with `control-console` recipes for tables and KPIs.
|
|
94
|
+
- Don't: rounded-xl marketing cards, purple gradients, drop shadows, fake
|
|
95
|
+
"trusted by 4,821 enterprises" metrics.
|
|
96
|
+
- Don't: unscoped element CSS to force Carbon; scope tokens on the root `Box`.
|
|
97
|
+
|
|
98
|
+
## 8. Responsive Behavior
|
|
99
|
+
|
|
100
|
+
375: stack sider offcanvas, full-width blue CTA, table as cards or scroll.
|
|
101
|
+
768: compact header + filters. 1440: sider + data table. Touch ≥ 44px.
|
|
102
|
+
|
|
103
|
+
Quick tokens: `--bg: #ffffff` `--fg: #161616` `--accent: #0f62fe` `--danger: #da1e28`
|
|
104
|
+
|
|
105
|
+
## 9. Agent Prompt Guide
|
|
106
|
+
|
|
107
|
+
Use for enterprise admin, Carbon-like SaaS chrome, documentation hubs.
|
|
108
|
+
Quick colors: `#ffffff` `#161616` `#0f62fe` `#da1e28`. If the user wants a
|
|
109
|
+
dark ops wall, prefer `control-console` + zinc tokens instead of inverting Blue.
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: linear-design
|
|
3
|
+
title: Linear Design System
|
|
4
|
+
category: brand
|
|
5
|
+
tags: [dark-first, minimal, product, tight-tracking, indigo, low-elevation, 暗色, 深色, 极简, 产品]
|
|
6
|
+
layer: auto
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. Visual Theme & Atmosphere
|
|
10
|
+
|
|
11
|
+
Linear feels like a precision instrument: dark, quiet, and fast. The canvas is
|
|
12
|
+
near-black, surfaces are barely lifted off it, and a single cool indigo carries
|
|
13
|
+
all the energy. Nothing decorative competes for attention — type is tightly
|
|
14
|
+
tracked, borders are hairlines, motion is short and snappy. The mood is
|
|
15
|
+
focused, engineered, calm under load. Build for keyboard-first power users who
|
|
16
|
+
value density without clutter; every pixel should feel intentional and every
|
|
17
|
+
interaction should feel instant.
|
|
18
|
+
|
|
19
|
+
## 2. Color Palette & Roles
|
|
20
|
+
|
|
21
|
+
| Role | Token | Value | Notes |
|
|
22
|
+
| --- | --- | --- | --- |
|
|
23
|
+
| Background | `--bg` | `#08090a` | app canvas, near-black |
|
|
24
|
+
| Surface | `--surface` | `#0f1011` | cards, panels |
|
|
25
|
+
| Surface raised | `--surface-2` | `#16171a` | popovers, menus |
|
|
26
|
+
| Foreground | `--fg` | `#f7f8f8` | primary text |
|
|
27
|
+
| Muted foreground | `--fg-muted` | `#8a8f98` | secondary text, labels |
|
|
28
|
+
| Subtle foreground | `--fg-subtle` | `#62666d` | timestamps, hints |
|
|
29
|
+
| Accent | `--accent` | `#5e6ad2` | primary action, focus |
|
|
30
|
+
| Accent hover | `--accent-hover` | `#6e79e0` | hover state |
|
|
31
|
+
| Accent foreground | `--accent-fg` | `#ffffff` | text on accent |
|
|
32
|
+
| Border | `--border` | `#23252a` | hairlines, dividers |
|
|
33
|
+
| Border strong | `--border-strong` | `#34373d` | input borders |
|
|
34
|
+
| Success | `--success` | `#4cb782` | done, healthy |
|
|
35
|
+
| Warning | `--warning` | `#f2c94c` | attention |
|
|
36
|
+
| Danger | `--danger` | `#eb5757` | destructive, blocked |
|
|
37
|
+
|
|
38
|
+
## 3. Typography Rules
|
|
39
|
+
|
|
40
|
+
- **Sans:** `"Inter", "Inter var", system-ui, -apple-system, sans-serif`
|
|
41
|
+
- **Mono:** `"Berkeley Mono", "SF Mono", ui-monospace, monospace`
|
|
42
|
+
|
|
43
|
+
Inter is used as a variable font; favor fractional weights for optical balance.
|
|
44
|
+
Tracking is consistently negative at display sizes and neutral at body.
|
|
45
|
+
|
|
46
|
+
| Role | Size | Weight | Line-height | Tracking |
|
|
47
|
+
| --- | --- | --- | --- | --- |
|
|
48
|
+
| Display | `2.5rem` | `560` | `1.05` | `-0.03em` |
|
|
49
|
+
| H1 | `1.75rem` | `538` | `1.1` | `-0.022em` |
|
|
50
|
+
| H2 | `1.3125rem` | `538` | `1.2` | `-0.018em` |
|
|
51
|
+
| H3 | `1.0625rem` | `510` | `1.3` | `-0.012em` |
|
|
52
|
+
| Body | `0.9375rem` | `400` | `1.5` | `-0.006em` |
|
|
53
|
+
| Label | `0.8125rem` | `510` | `1.4` | `-0.004em` |
|
|
54
|
+
| Caption | `0.75rem` | `400` | `1.4` | `0` |
|
|
55
|
+
| Code | `0.8125rem` | `400` | `1.5` | `0` |
|
|
56
|
+
|
|
57
|
+
## 4. Component Stylings
|
|
58
|
+
|
|
59
|
+
### Buttons
|
|
60
|
+
|
|
61
|
+
- **Primary:** bg `#5e6ad2`, text `#ffffff`, radius `0.5rem`, padding
|
|
62
|
+
`0.4375rem 0.75rem`, weight `510`, font-size `0.8125rem`. Hover bg
|
|
63
|
+
`#6e79e0`. Active scale `0.98`. Focus ring `0 0 0 2px rgba(94,106,210,0.4)`.
|
|
64
|
+
- **Secondary:** bg `#16171a`, text `#f7f8f8`, border `1px solid #23252a`.
|
|
65
|
+
Hover bg `#1c1d21`.
|
|
66
|
+
- **Ghost:** transparent bg, text `#8a8f98`. Hover bg `rgba(255,255,255,0.04)`,
|
|
67
|
+
text `#f7f8f8`.
|
|
68
|
+
- **Disabled:** opacity `0.45`, no hover, `cursor: not-allowed`.
|
|
69
|
+
|
|
70
|
+
### Cards
|
|
71
|
+
|
|
72
|
+
- bg `#0f1011`, border `1px solid #23252a`, radius `0.75rem`, padding `1rem`.
|
|
73
|
+
- No drop shadow at rest (level 1 only on hover for interactive cards).
|
|
74
|
+
|
|
75
|
+
### Inputs
|
|
76
|
+
|
|
77
|
+
- bg `#0f1011`, border `1px solid #34373d`, radius `0.5rem`, height `2rem`,
|
|
78
|
+
padding `0 0.625rem`, text `#f7f8f8`, placeholder `#62666d`.
|
|
79
|
+
- Focus: border `#5e6ad2`, ring `0 0 0 2px rgba(94,106,210,0.3)`.
|
|
80
|
+
|
|
81
|
+
### Badges
|
|
82
|
+
|
|
83
|
+
- Pill, radius `9999px`, font-size `0.75rem`, weight `510`, padding
|
|
84
|
+
`0.125rem 0.5rem`. Tinted: bg `rgba(94,106,210,0.14)`, text `#a3abef`.
|
|
85
|
+
|
|
86
|
+
### Navigation
|
|
87
|
+
|
|
88
|
+
- Left sidebar, bg `#0c0d0e`, width `13.5rem`. Item height `1.875rem`, radius
|
|
89
|
+
`0.375rem`, text `#8a8f98`. Active: bg `rgba(255,255,255,0.06)`, text
|
|
90
|
+
`#f7f8f8`. Hover: bg `rgba(255,255,255,0.04)`.
|
|
91
|
+
|
|
92
|
+
## 5. Layout Principles
|
|
93
|
+
|
|
94
|
+
- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem`.
|
|
95
|
+
- **Container max-width:** `64rem` for content; full-bleed app shell.
|
|
96
|
+
- **Grid:** 12-column, gutter `1rem`; dense list rows ~`2.25rem` tall.
|
|
97
|
+
- **Whitespace:** tight but breathing — section gaps `1.5rem`, never crowd
|
|
98
|
+
controls.
|
|
99
|
+
- **Radius scale:** `sm 0.375rem · md 0.5rem · lg 0.75rem · xl 1rem · full 9999px`.
|
|
100
|
+
|
|
101
|
+
## 6. Depth & Elevation
|
|
102
|
+
|
|
103
|
+
Elevation is deliberately restrained — depth comes from borders and subtle
|
|
104
|
+
background steps, not heavy shadows.
|
|
105
|
+
|
|
106
|
+
| Level | Use | Shadow |
|
|
107
|
+
| --- | --- | --- |
|
|
108
|
+
| 0 | flat surfaces | `none` |
|
|
109
|
+
| 1 | hovered card | `0 1px 2px rgba(0,0,0,0.3)` |
|
|
110
|
+
| 2 | dropdown, popover | `0 4px 16px rgba(0,0,0,0.4)` |
|
|
111
|
+
| 3 | modal, command menu | `0 16px 48px rgba(0,0,0,0.55)` |
|
|
112
|
+
|
|
113
|
+
## 7. Do's and Don'ts
|
|
114
|
+
|
|
115
|
+
**Do**
|
|
116
|
+
|
|
117
|
+
- Keep the canvas near-black and lift surfaces only one or two steps.
|
|
118
|
+
- Use indigo `#5e6ad2` sparingly as the single source of color energy.
|
|
119
|
+
- Apply negative tracking to headings; keep body close to neutral.
|
|
120
|
+
- Prefer hairline borders and subtle background steps over shadows.
|
|
121
|
+
- Keep motion under 150ms and use ease-out.
|
|
122
|
+
|
|
123
|
+
**Don't**
|
|
124
|
+
|
|
125
|
+
- Don't introduce a second saturated accent color.
|
|
126
|
+
- Don't use pure black `#000000` or pure white `#ffffff` for large fills.
|
|
127
|
+
- Don't add large drop shadows or glows on resting surfaces.
|
|
128
|
+
- Don't loosen letter-spacing or use rounded, friendly type.
|
|
129
|
+
- Don't pad controls generously — density is the point.
|
|
130
|
+
|
|
131
|
+
## 8. Responsive Behavior
|
|
132
|
+
|
|
133
|
+
| Breakpoint | Min width | Behavior |
|
|
134
|
+
| --- | --- | --- |
|
|
135
|
+
| `sm` | `640px` | sidebar collapses to icon rail or drawer |
|
|
136
|
+
| `md` | `768px` | two-pane (list + detail) |
|
|
137
|
+
| `lg` | `1024px` | full three-region shell (nav + list + detail) |
|
|
138
|
+
| `xl` | `1280px` | wider detail pane, persistent peek panel |
|
|
139
|
+
|
|
140
|
+
- **Touch targets:** minimum `36px` height for rows, `44px` for primary
|
|
141
|
+
controls on touch.
|
|
142
|
+
- **Collapsing strategy:** detail pane stacks below list on `sm`; sidebar
|
|
143
|
+
becomes an overlay drawer; keep dense rows but increase tap height.
|
|
144
|
+
|
|
145
|
+
## 9. Agent Prompt Guide
|
|
146
|
+
|
|
147
|
+
### Quick Color Reference
|
|
148
|
+
|
|
149
|
+
- Accent: `#5e6ad2` (hover `#6e79e0`)
|
|
150
|
+
- Background: `#08090a` · Surface: `#0f1011` · Raised: `#16171a`
|
|
151
|
+
- Text: `#f7f8f8` · Muted: `#8a8f98` · Subtle: `#62666d`
|
|
152
|
+
- Border: `#23252a` (strong `#34373d`)
|
|
153
|
+
- Success `#4cb782` · Warning `#f2c94c` · Danger `#eb5757`
|
|
154
|
+
|
|
155
|
+
### Example prompts (copy-paste)
|
|
156
|
+
|
|
157
|
+
1. "Generate an issue-list row in the Linear system: near-black canvas
|
|
158
|
+
`#08090a`, `0.9375rem` Inter at weight 400 with `-0.006em` tracking, a
|
|
159
|
+
`9999px` status badge tinted `rgba(94,106,210,0.14)`/`#a3abef`, a `36px`
|
|
160
|
+
tall row with a `rgba(255,255,255,0.06)` hover, hairline `#23252a` divider."
|
|
161
|
+
2. "Build a command-menu (cmd-k) modal: surface `#16171a`, radius `0.75rem`,
|
|
162
|
+
level-3 shadow `0 16px 48px rgba(0,0,0,0.55)`, search input with focus border
|
|
163
|
+
`#5e6ad2` and ring `rgba(94,106,210,0.3)`, results in muted `#8a8f98` with
|
|
164
|
+
the active item highlighted on a `rgba(255,255,255,0.06)` background."
|
|
165
|
+
3. "Create a primary + secondary button pair: primary bg `#5e6ad2` / text white
|
|
166
|
+
/ radius `0.5rem` / weight `510` / `0.4375rem 0.75rem` padding / active scale
|
|
167
|
+
`0.98`; secondary bg `#16171a` with a `1px #23252a` border. Both `0.8125rem`."
|
|
168
|
+
|
|
169
|
+
### Iteration guide
|
|
170
|
+
|
|
171
|
+
1. Start dark: lock background `#08090a` and one surface step `#0f1011`.
|
|
172
|
+
2. Add exactly one accent (`#5e6ad2`); resist a second hue.
|
|
173
|
+
3. Tighten type — apply negative tracking and Inter fractional weights.
|
|
174
|
+
4. Replace any shadows on resting elements with hairline borders.
|
|
175
|
+
5. Compress spacing toward the dense end of the scale; verify rows ≤ `36px`.
|