Best For
Linear style / Linear app design / dark ui
Linear 风格
Rate this style受 Linear 应用启发的极简暗色设计风格。精确的排版、克制的动效、开发者审美的极致表达。深色背景配合微妙的渐变和精细的边框。
Best For
Linear style / Linear app design / dark ui
Primary Move
Near-black backgrounds: bg-[#0a0a0b] or bg-zinc-950
Watch Out
No white/light backgrounds (dark is the foundation)
design.md
One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.
A near-black ground, 1px white rules and one indigo gradient — an interface built like a precision instrument.
Theme: dark
Linear is the most imitated dark system of the last few years. Its layers are extremely thin: a near-black ground (#0a0a0b), panels only three to six percent brighter, borders always 1px white at 10%, and almost no shadow. The only color is an indigo-to-violet gradient, reserved for the primary button and the mark. The interaction discipline is opacity only — hover never changes hue, it lifts text from 70% to 100% and a panel from 3% to 6%, over 150ms. That restraint is what makes a dense product surface read as quiet.
| Name | Value | Token | Role |
|---|---|---|---|
| Near Black | #0a0a0b | --color-near-black | Page ground — not pure black, or brightened panels have nothing to move against. |
| Panel | rgba(255,255,255,0.03) | --color-panel | Cards and row containers, rising to 6% on hover — the only layering device in the system. |
| Indigo | #5e6ad2 | --color-indigo | The primary button's start, selection and links — the single brand tone. |
| Violet | #8b5cf6 | --color-violet | The gradient's far end, appearing only alongside indigo. |
| Amber | #f2c94c | --color-amber | Priority and blocked states, on 8px dots and short labels only. |
| Green | #27ae60 | --color-green | Done and presence, on status dots. |
| Red | #eb5757 | --color-red | Urgent and error, on status dots and destructive actions. |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| heading | — | 600 | 24px | 1.25 | -0.01em | --text-heading |
| subheading | — | 600 | 20px | 1.3 | — | --text-subheading |
| body-lg | — | 500 | 16px | 1.5 | — | --text-body-lg |
| body | — | 400 | 13px | 1.5 | — | --text-body |
| body-sm | — | 400 | 12px | 1.45 | — | --text-body-sm |
| label | — | 500 | 11px | 1.4 | 0.02em | --text-label |
Base unit: 4px Density: compact
| Name | Value | Token |
|---|---|---|
| 4 | 4px | --spacing-4 |
| 8 | 8px | --spacing-8 |
| 12 | 12px | --spacing-12 |
| 16 | 16px | --spacing-16 |
| 20 | 20px | --spacing-20 |
| 24 | 24px | --spacing-24 |
| 32 | 32px | --spacing-32 |
| 48 | 48px | --spacing-48 |
| Element | Value |
|---|---|
| cards | 8px |
| buttons | 8px |
| inputs | 8px |
| pills | 999px |
Role: Primary action
A horizontal indigo-to-violet gradient, white text, 8px radius, no border. 14px type at weight 500, 8px 16px padding. Hover does not change hue — it drops the whole element to 90% opacity, and press to 80%. 150ms, animating opacity only.
Role: Cards, list rows and board items
3% white fill, a 1px white border at 10%, 8px radius, 20px padding, no shadow. Title at 14px/500 in pure white, description at 12px in 50% white, timestamp at 11px in 40%. A 16px status ring with a 2px stroke sits on the left, colored by state. Hover raises the fill to 6% over 150ms.
Role: Forms and search
3% white fill, a 1px white border at 10%, 8px radius, 8px 12px padding at 13px. The label sits at 12px in 60% white. Focus turns the border to 50% indigo and the fill to 5%, with no outer ring. 150ms.
Role: The top command bar and its flyout
4% white fill, a 1px white border at 10%, 12px radius, 12px blur, 8px padding. A 16px search icon sits left, placeholder at 13px in 50% white, and a ⌘K hint at 11px in 30% on the right. Expanded, the container reaches 360px with 36px option rows hovering to a 6% white fill.
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Near Black | #0a0a0b | 页面底 |
| 1 | Panel 3% | rgba(255,255,255,0.03) | 卡片与行 |
| 2 | Panel 6% | rgba(255,255,255,0.06) | hover 与浮层 |
none — 1px borders only0 12px 32px rgba(0,0,0,0.55)Almost no imagery: 16px avatars, status dots and a small brand mark. No photography, illustration or background images — any image breaks the density this system depends on.
Capped at 1280px with 16px padding, sections 32px apart and 8px between cards. A 240px rail sits beside a list whose rows run 56px. Density approaches a desktop application; whitespace appears only between sections.
QUICK COLOR REFERENCE:
#ffffff#0a0a0brgba(255,255,255,0.03)#5e6ad2#8a8a94rgba(255,255,255,0.10)EXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-near-black: #0a0a0b;
--color-panel: rgba(255,255,255,0.03);
--color-indigo: #5e6ad2;
--color-violet: #8b5cf6;
--color-amber: #f2c94c;
--color-green: #27ae60;
--color-red: #eb5757;
/* Typography — Font Families */
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-heading: 24px;
--leading-heading: 1.25;
--tracking-heading: -0.01em;
--text-subheading: 20px;
--leading-subheading: 1.3;
--text-body-lg: 16px;
--leading-body-lg: 1.5;
--text-body: 13px;
--leading-body: 1.5;
--text-body-sm: 12px;
--leading-body-sm: 1.45;
--text-label: 11px;
--leading-label: 1.4;
--tracking-label: 0.02em;
/* Typography — Weights */
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
/* Spacing */
--spacing-unit: 4px;
--spacing-4: 4px;
--spacing-8: 8px;
--spacing-12: 12px;
--spacing-16: 16px;
--spacing-20: 20px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-48: 48px;
/* Layout */
--page-max-width: 1280px;
--section-gap: 32px;
--card-padding: 20px;
--element-gap: 8px;
--density: compact;
/* Border Radius */
--radius-cards: 8px;
--radius-buttons: 8px;
--radius-inputs: 8px;
--radius-pills: 999px;
/* Surfaces */
--surface-near-black: #0a0a0b;
--surface-panel-3: rgba(255,255,255,0.03);
--surface-panel-6: rgba(255,255,255,0.06);
}
Component Templates
FAQ
/* Linear Style Global Styles */
@layer base {
body {
@apply bg-[#0a0a0b] text-white antialiased;
font-family: 'Inter', -apple-system, system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
letter-spacing: -0.01em;
}
}
@layer utilities {
.linear-border {
border: 1px solid rgba(255, 255, 255, 0.1);
}
.linear-surface {
background: rgba(255, 255, 255, 0.03);
}
.linear-surface-hover {
background: rgba(255, 255, 255, 0.06);
}
.linear-gradient {
background: linear-gradient(to right, #5e6ad2, #8b5cf6);
}
}
/* Linear Style Design Tokens */
:root {
--linear-style-primary: #5e6ad2;
--linear-style-secondary: #0a0a0b;
--linear-style-accent: #f2c94c;
--linear-style-glow: rgba(94, 106, 210, 0.3);
}
@keyframes linear-style-fade-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes linear-style-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.linear-style-card {
position: relative;
overflow: hidden;
}
.linear-style-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(94, 106, 210, 0.05), transparent);
pointer-events: none;
}
.linear-style-card:hover::before {
opacity: 1;
}
.linear-style-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(94, 106, 210, 0.08);
}
.linear-style-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.linear-style-animate-in {
animation: linear-style-fade-in 0.5s ease-out both;
}Related Styles
Explore these styles for ready-made tokens and components.
Linear Style and Apple Style sit closest to each other. The table below gives the real differences in color, use case, and tags, so the choice between them is made on facts.
| Attribute | Linear Style | Apple Style |
|---|---|---|
| Primary color | #5e6ad2 | #000000 |
| Secondary color | #0a0a0b | #f5f5f7 |
| Best for | Linear style / Linear app design / dark ui | Apple style / Apple design / minimalist website |
| Unique tags | — | — |
Linear Style draws from the beloved developer tool Linear. The design philosophy: "Every pixel has a purpose."
Design Recipes
These curated recipes combine this style with layouts and animations, optimized for specific use cases.