StyleKit

Linear Style

Linear 风格

Rate this style

受 Linear 应用启发的极简暗色设计风格。精确的排版、克制的动效、开发者审美的极致表达。深色背景配合微妙的渐变和精细的边框。

Linear styleLinear app designdark uidark modedeveloper tool aestheticSaaS landing pageminimal dark themesubtle gradientsprecise typographyproduct website

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

Linear Style as a design document

One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.

Document view

Linear Style — Style Reference

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.

Colors

NameValueTokenRole
Near Black#0a0a0b--color-near-blackPage ground — not pure black, or brightened panels have nothing to move against.
Panelrgba(255,255,255,0.03)--color-panelCards and row containers, rising to 6% on hover — the only layering device in the system.
Indigo#5e6ad2--color-indigoThe primary button's start, selection and links — the single brand tone.
Violet#8b5cf6--color-violetThe gradient's far end, appearing only alongside indigo.
Amber#f2c94c--color-amberPriority and blocked states, on 8px dots and short labels only.
Green#27ae60--color-greenDone and presence, on status dots.
Red#eb5757--color-redUrgent and error, on status dots and destructive actions.

Typography

Inter — The only face, running tiny at 11 to 14px with -0.01em tracking throughout. Dense yet clear is the tone.
  • Substitute: -apple-system, 'SF Pro Text', system-ui, sans-serif
  • Weights: 400, 500, 600
  • Sizes: 11, 12, 13, 14, 16, 20, 24
  • Line height: 1.2 (display), 1.3 (headings), 1.5 (body)
  • Letter spacing: -0.01em on display, 0.02em on uppercase labels
Type Scale
RoleFamilyWeightSizeLine HeightLetter SpacingToken
heading—60024px1.25-0.01em--text-heading
subheading—60020px1.3—--text-subheading
body-lg—50016px1.5—--text-body-lg
body—40013px1.5—--text-body
body-sm—40012px1.45—--text-body-sm
label—50011px1.40.02em--text-label

Spacing & Layout

Base unit: 4px Density: compact

Spacing Scale
NameValueToken
44px--spacing-4
88px--spacing-8
1212px--spacing-12
1616px--spacing-16
2020px--spacing-20
2424px--spacing-24
3232px--spacing-32
4848px--spacing-48
Border Radius
ElementValue
cards8px
buttons8px
inputs8px
pills999px
  • Page max-width: 1280px
  • Section gap: 32px
  • Card padding: 20px
  • Element gap: 8px

Components

Gradient Button

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.

  • Sizes: padding 8px 16px; label 14px
  • States: hover: opacity 90%; active: opacity 80%
Issue Card

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.

  • States: hover: fill 3%→6%
Dark Input

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.

  • States: focus: border indigo 50%, fill 5%
Command Bar

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.

Do's and Don'ts

Do
  • Ground in near black, never pure black
  • Layer with two fills only: 3% and 6% white
  • Borders are always 1px white at 10%
  • Hover changes opacity, never hue
  • The one gradient belongs to the primary button
  • Type runs 11 to 14px on -0.01em tracking
Don't
  • No light grounds
  • No colored shadows or large shadow spreads
  • Never add a second typeface
  • No saturated color beyond the brand violet
  • Do not layer with shadow
  • No motion longer than 150ms

Surfaces

LevelNameValuePurpose
0Near Black#0a0a0b页面底
1Panel 3%rgba(255,255,255,0.03)卡片与行
2Panel 6%rgba(255,255,255,0.06)hover 与浮层

Elevation

  • None: none — 1px borders only
  • Flyout: 0 12px 32px rgba(0,0,0,0.55)

Imagery

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.

Layout

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.

Agent Prompt Guide

Implementation Contract
  • Use the requested page, user task and real content as the brief. Implement only the requested scope; identify missing business information instead of inventing data or capabilities.
  • Inspect the current project, stack and components first. Reuse its structure, routes, dependencies and components; do not rebuild unrelated pages or features.
  • Use the project's breakpoints to adapt columns and spacing for narrow and desktop screens. Preserve hierarchy and prevent accidental horizontal overflow.
  • For interactions in scope, support keyboard focus and reduced motion, with applicable disabled, loading, empty and error states.
  • Run the project's existing checks after implementation. Report only tests and visual checks actually run, and list unverified behavior.

QUICK COLOR REFERENCE:

  • text: #ffffff
  • background: #0a0a0b
  • panel: rgba(255,255,255,0.03)
  • accent: #5e6ad2
  • muted: #8a8a94
  • border: rgba(255,255,255,0.10)

EXAMPLE COMPONENT PROMPTS:

  1. Build a Linear-style card: background rgba(255,255,255,0.03), 1px rgba(255,255,255,0.1) border, 8px radius, 20px padding, no shadow. Title at 14px/500 in pure white, description at 12px in rgba(255,255,255,0.5). Hover raises the background to rgba(255,255,255,0.06) over 150ms. The page ground is #0a0a0b and the primary button uses linear-gradient(to right, #5e6ad2, #8b5cf6).

Similar Brands

  • Dark Mode — Also dark, though Linear is thinner and leans entirely on opacity
  • macOS Vibrancy — Also pursues precision, though that one uses system material and serif titles

Quick Start


: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);
}

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

Button

FAQ

Linear Style — Frequently Asked Questions

What is the Linear Style design style?
受 Linear 应用启发的极简暗色设计风格。精确的排版、克制的动效、开发者审美的极致表达。深色背景配合微妙的渐变和精细的边框。 Its core principle: Linear Style draws from the beloved developer tool Linear.
What colors does Linear Style use?
Linear Style uses #5e6ad2 as its primary color and #0a0a0b as its secondary color, with accent colors #f2c94c, #27ae60, #eb5757, #2d9cdb. Every hex value can be copied from the palette on this page.
How do I apply Linear Style correctly?
Key practices: Near-black backgrounds: bg-[#0a0a0b] or bg-zinc-950. Text hierarchy: text-white and text-zinc-400. Subtle borders: border border-white/10.
What are common mistakes with Linear Style?
Avoid: No white/light backgrounds (dark is the foundation). No large border-radius: rounded-2xl, rounded-3xl, rounded-full. No colored shadows or large shadows.
How do I prompt AI to generate Linear Style UI?
Copy the ready-made AI prompt on this page — it bundles the design tokens and component rules — and paste it into ChatGPT, Claude, Claude Code, or Codex. Effective prompts include the keywords: Linear style, Linear app design, dark ui, dark mode.
Global Styles

Global CSS

css
/* 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

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.

AttributeLinear StyleApple Style
Primary color#5e6ad2#000000
Secondary color#0a0a0b#f5f5f7
Best forLinear style / Linear app design / dark uiApple style / Apple design / minimalist website
Unique tags——
Design Philosophy

Linear Style draws from the beloved developer tool Linear. The design philosophy: "Every pixel has a purpose."

Design Recipes

Recommended Combinations with Linear Style

These curated recipes combine this style with layouts and animations, optimized for specific use cases.