Shadcn 设计系统.
Shadcn 设计系统 — 受 Shadcn/ui 启发的设计,具有简洁的组件、单色调色板和实用优先的模式。
在真实场景中查看
同一套设计 token 应用于不同类型的产物——网站、应用、幻灯片、海报。这些是用该系统重新换肤的原创样稿,而非截图。
it
real.
设计 token
56 个 token,符合 Open Design 的 token 契约——你的 agent 读取的正是这套结构化的配色、字体、间距和动效值,用以为任意产物设定主题。
表面
-
--bg#ffffff -
--surface#ffffff -
--surface-warmvar(--surface)
文本
-
--fg#111827 -
--fg-2var(--fg) -
--muted#64748b -
--metavar(--muted)
边框
-
--border#e5e7eb -
--border-softvar(--border)
强调色
-
--accent#000000 -
--accent-on#ffffff -
--accent-hovercolor-mix(in oklab, var(--accent), white 10%) -
--accent-activecolor-mix(in oklab, var(--accent), white 18%)
语义
-
--success#16a34a -
--warn#d97706 -
--danger#dc2626
字体排印
-
--font-display"Geist", "Geist Sans", -apple-system, system-ui, "Segoe UI", Arial, sans-serif -
--font-body"Geist", "Geist Sans", -apple-system, system-ui, "Segoe UI", Arial, sans-serif -
--font-mono"Fira Code", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace
字号层级
-
--text-xs12px -
--text-sm14px -
--text-base16px -
--text-lg20px -
--text-xl24px -
--text-2xl32px -
--text-3xl40px -
--text-4xl48px -
--leading-body1.5 -
--leading-tight1.2 -
--tracking-display-0.02em
间距
-
--space-14px -
--space-28px -
--space-312px -
--space-416px -
--space-520px -
--space-624px -
--space-832px -
--space-1248px -
--section-y-desktop96px -
--section-y-tablet64px -
--section-y-phone48px
圆角
-
--radius-sm6px -
--radius-md8px -
--radius-lg12px -
--radius-pill9999px
层级阴影
-
--elev-flatnone -
--elev-ring0 0 0 1px var(--border) -
--elev-raised0 1px 2px 0 color-mix(in oklab, var(--fg), transparent 92%), 0 1px 3px 0 color-mix(in oklab, var(--fg), transparent 88%)
聚焦
-
--focus-ring0 0 0 2px var(--bg), 0 0 0 4px var(--accent)
动效
-
--motion-fast150ms -
--motion-base200ms -
--ease-standardcubic-bezier(0.2, 0, 0, 1)
布局
-
--container-max1280px -
--container-gutter-desktop24px -
--container-gutter-tablet16px -
--container-gutter-phone16px
Design System Inspired by Shadcn
Category: Modern & Minimal Shadcn/ui-inspired design with minimal, clean components, monochrome palette, and utility-first patterns.
1. Visual Theme & Atmosphere
Shadcn/ui-inspired design with minimal, clean components, monochrome palette, and utility-first patterns.
- Visual style: minimal, clean
- Color stance: primary, secondary
- Design intent: Keep outputs recognizable to this style family while preserving usability and readability.
2. Color
-
Primary:
#000000— Token from style foundations. -
Secondary:
#111111— Token from style foundations. -
Success:
#16A34A— Token from style foundations. -
Warning:
#D97706— Token from style foundations. -
Danger:
#DC2626— Token from style foundations. -
Surface:
#FFFFFF— Token from style foundations. -
Text:
#111827— Token from style foundations. -
Neutral:
#FFFFFF— Derived from the surface token for official format compatibility. -
Favor Primary (#000000) for CTA emphasis.
-
Use Surface (#FFFFFF) for large backgrounds and cards.
-
Keep body copy on Text (#111827) for legibility.
3. Typography
- Scale: 12/14/16/20/24/32
- Families: primary=Geist, display=Geist, mono=Fira Code
- Weights: 100, 200, 300, 400, 500, 600, 700, 800, 900
- Headings should carry the style personality; body text should optimize scanability and contrast.
4. Spacing & Grid
- Spacing scale: 4/8/12/16/24/32
- Keep vertical rhythm consistent across sections and components.
- Align columns and modules to a predictable grid; avoid ad-hoc offsets.
5. Layout & Composition
- Prefer clear content blocks with consistent internal padding.
- Keep hierarchy obvious: headline → support text → primary action.
- Use whitespace to separate concerns before adding borders or shadows.
6. Components
- Buttons: primary action uses
#000000; secondary actions stay neutral. - Inputs: strong focus-visible states, clear labels, and predictable error messaging.
- Cards/sections: use consistent radii, spacing, and elevation strategy across the page.
7. Motion & Interaction
- Use subtle transitions that emphasize Primary (#000000) as the interaction signal.
- Default to short, purposeful transitions (150–250ms) with stable easing.
- Ensure hover, focus-visible, active, disabled, and loading states are explicit.
8. Voice & Brand
- Tone should reflect the visual style: concise, confident, and product-specific.
- Keep microcopy action-oriented and avoid generic filler language.
- Preserve the style identity in headlines while keeping UI labels literal and clear.
9. Anti-patterns
- Do not introduce off-palette colors when an existing token can solve the problem.
- Do not flatten hierarchy by using the same type size/weight for all text.
- Do not add decorative effects that reduce readability or accessibility.
- Do not mix unrelated visual metaphors in the same interface.
标签
design-systemfirst-partydesignmodern-minimal