Style Catalog/Linear Style

Linear Style

Linear 风格

B
82/100Good
Rate this style

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

Linear styleLinear app designdark uidark modedeveloper tool aestheticSaaS landing pageminimal dark themesubtle gradientsprecise typographyproduct website
View Full Showcase →
Templates

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)

AI Implementation

Copy the Hard Prompt first, then use the spec when needed

Use the Hard Prompt by default to generate UI. Use the Design Spec to understand, modify, and review the style. Use the Creative Brief for early exploration.

Hard Prompt

Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.

When to use

  • When AI should generate UI directly
  • When repeated outputs must stay consistent
  • When style drift is the main risk

How to use

  • Copy the full prompt
  • Append the concrete requirement
  • Review against forbidden rules and UI states
STYLEKIT_STYLE_REFERENCE
style_name: Linear Style
style_slug: linear-style
style_source: /styles/linear-style

# Hard Prompt

## When To Use
Use this when you want AI to generate code with strict style consistency. It is the safest default for production UI.

## How To Use
- Copy the full prompt into ChatGPT, Claude, Cursor, or another coding assistant.
- Append the concrete product/page requirement after the prompt.
- After generation, check the forbidden rules and interaction states before accepting the output.

Strictly follow the style rules below and maintain consistency. No style drift allowed.

## Requirements

- Prioritize style consistency first, then creative extension.
- When conflicts arise, treat prohibitions as the highest priority.
- Self-check before output: verify colors, typography, spacing, and interactions still match this style.

## Style Rules

You are a Linear Style design expert. This style emulates the design language of the Linear project management tool — precise, restrained, and developer-focused.

## Absolute Rules
- Background: #0a0a0b or bg-zinc-950 — always dark
- Text: text-white for primary, text-zinc-400 for secondary, text-zinc-500/600 for tertiary
- Borders: border border-white/10 — always 1px, always semi-transparent
- Brand color: #5e6ad2 (indigo-purple) — used sparingly for CTAs and accents
- Font: Inter only, tracking-tight, text-sm as default body size
- Border-radius: rounded-lg max, rounded-md for small elements

## Forbidden
- White or light backgrounds
- Large border-radius (rounded-2xl+)
- Colored shadows
- Multiple fonts
- High-saturation colors (except brand purple)
- Decorative elements (gradients as decoration, blobs, patterns)

## Interaction Pattern
- Use opacity for hover states: hover:opacity-90 or hover:bg-white/[0.06]
- Transitions must be fast: duration-150
- No scale transforms on hover
- Focus: focus:border-[#5e6ad2]/50

## Typography Scale
- Hero: text-4xl font-semibold tracking-tight
- Section: text-2xl font-semibold tracking-tight
- Body: text-sm text-zinc-400
- Label: text-xs text-zinc-500 font-medium uppercase tracking-wider

---

# Linear Style Design System

> Linear 。、、。。

## Design Philosophy

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

Core principles:
- Dark-first: near-black background (#0a0a0b), content is the only focus
- Precise typography: Inter font, fine-tuned letter-spacing, balanced line-height
- Restrained gradients: purple gradient only for primary CTAs and branding
- Subtle borders: 1px semi-transparent white borders for hierarchy
- No excess: no shadows, no oversized border-radius, no flashy effects

---

## Token Dictionary (exact class mapping)

### Border
```
Width: border
Color: border-white/10
Radius: rounded-lg
```

### Shadow
```
sm: shadow-none
md: shadow-none
lg: shadow-none
hover: shadow-none
focus: shadow-none
```

### Interaction
```
Hover translate: 
Hover scale: (none)
Hover opacity: (none)
Transition: transition-all duration-150
Active: active:opacity-80
```

### Typefaces
```
Heading: font-sans font-semibold tracking-tight
Body: font-sans text-sm
Mono: font-mono
```

### Type scale
```
Hero: text-4xl font-semibold tracking-tight
H1: text-2xl font-semibold tracking-tight
H2: text-xl font-semibold tracking-tight
H3: text-base font-medium tracking-tight
Body: text-sm
Small: text-xs
```

### Spacing
```
Section: py-12 md:py-20
Container: px-4 md:px-8
Card: p-5
Gap sm: gap-1.5
Gap md: gap-3
Gap lg: gap-5
```

### Color roles
```
Background primary: bg-[#0a0a0b]
Background secondary: bg-white/[0.03]
Background accent: bg-[#5e6ad2]
Text primary: text-white
Text secondary: text-zinc-400
Text muted: text-zinc-500
Button primary: bg-gradient-to-r from-[#5e6ad2] to-[#8b5cf6] text-white
Button secondary: bg-white/[0.03] text-white border border-white/10
```

---

## [FORBIDDEN]

These classes are banned in this style. Check for them before returning code:

### Banned classes
- `bg-white`
- `bg-gray-50`
- `bg-gray-100`
- `bg-slate-50`
- `rounded-2xl`
- `rounded-3xl`
- `rounded-full`
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `shadow-xl`
- `shadow-purple-500/20`
- `shadow-indigo-500/20`
- `font-serif`
- `font-mono`
- `text-pink-400`
- `text-green-400`
- `text-orange-400`

### Banned patterns
- matches `^bg-(?:white|gray-(?:50|100)|slate-50)$`
- matches `^rounded-(?:2xl|3xl|full)$`
- matches `^shadow-(?:sm|md|lg|xl|2xl)$`
- matches `^shadow-.*\/\d+$`
- matches `^font-(?:serif|mono)$`

### Why they are banned
- `bg-white`: Linear Style uses dark backgrounds only (#0a0a0b)
- `rounded-2xl`: Linear Style uses rounded-lg max for restrained aesthetics
- `shadow-sm`: Linear Style avoids shadows entirely; uses borders for hierarchy
- `font-serif`: Linear Style uses Inter (sans-serif) exclusively
- `font-mono`: Linear Style uses Inter (sans-serif) exclusively for UI text

> WARNING: if your code contains any of the above, replace it before shipping.

---

## [REQUIRED]

### Every button must include
```
rounded-lg
font-medium
text-sm
transition-opacity duration-150
```

### Every card must include
```
rounded-lg
border border-white/10
bg-white/[0.03]
```

### Every input must include
```
rounded-lg
border border-white/10
bg-white/[0.03]
text-white text-sm
focus:outline-none
```

---

## [COMPARE] Linear Style wrong vs right

The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.

### Button

[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
 Click me
</button>
```

[CORRECT] **Right** (uses this style's tokens):
```html
<button class="rounded-lg font-medium text-sm transition-opacity duration-150 bg-gradient-to-r from-[#5e6ad2] to-[#8b5cf6] text-white">
 Click me
</button>
```

### Card

[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
 <h3>{TITLE}</h3>
</div>
```

[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="rounded-lg border border-white/10 bg-white/[0.03] p-5">
 <h3 class="font-sans font-semibold tracking-tight text-base font-medium tracking-tight">{TITLE}</h3>
</div>
```

### Input

[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```

[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="rounded-lg border border-white/10 bg-white/[0.03] text-white text-sm focus:outline-none" placeholder="{PLACEHOLDER}" />
```

---

## [TEMPLATES] Linear Style page skeletons

These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:

### Navigation
```html
<nav class="bg-[#0a0a0b] text-white border border-white/10 px-4 md:px-8">
 <div class="flex items-center justify-between max-w-6xl mx-auto gap-3">
 <a href="/" class="font-sans font-semibold tracking-tight text-base font-medium tracking-tight">
 {LOGO_TEXT}
 </a>
 <div class="flex gap-3 font-sans text-sm text-xs">
 {NAV_LINKS}
 </div>
 </div>
</nav>
```

### Hero section
```html
<section class="bg-[#5e6ad2] text-white py-12 md:py-20 px-4 md:px-8">
 <div class="max-w-4xl mx-auto">
 <h1 class="font-sans font-semibold tracking-tight text-4xl font-semibold tracking-tight">
 {HEADLINE}
 </h1>
 <p class="font-sans text-sm text-sm max-w-xl">
 {SUBHEADLINE}
 </p>
 <button class="rounded-lg font-medium text-sm transition-opacity duration-150 bg-gradient-to-r from-[#5e6ad2] to-[#8b5cf6] text-white">
 {CTA_TEXT}
 </button>
 </div>
</section>
```

### Card grid
```html
<section class="bg-[#0a0a0b] text-white py-12 md:py-20 px-4 md:px-8">
 <div class="max-w-6xl mx-auto">
 <h2 class="font-sans font-semibold tracking-tight text-xl font-semibold tracking-tight">{SECTION_TITLE}</h2>
 <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3">
 <!-- Card template - repeat for each card -->
 <div class="rounded-lg border border-white/10 bg-white/[0.03] p-5">
 <h3 class="font-sans font-semibold tracking-tight text-base font-medium tracking-tight">{CARD_TITLE}</h3>
 <p class="font-sans text-sm text-sm text-zinc-500">{CARD_DESCRIPTION}</p>
 </div>
 </div>
 </div>
</section>
```

### Form input
```html
<input class="rounded-lg border border-white/10 bg-white/[0.03] text-white text-sm focus:outline-none" placeholder="{PLACEHOLDER}" />
```

### Footer
```html
<footer class="bg-white/[0.03] text-zinc-400 py-12 md:py-20 px-4 md:px-8">
 <div class="max-w-6xl mx-auto">
 <div class="grid grid-cols-1 md:grid-cols-3 gap-5">
 <div>
 <span class="font-sans font-semibold tracking-tight text-base font-medium tracking-tight">{LOGO_TEXT}</span>
 <p class="font-sans text-sm text-xs">{TAGLINE}</p>
 </div>
 <div>
 <h4 class="font-sans font-semibold tracking-tight text-base font-medium tracking-tight">{COLUMN_TITLE}</h4>
 <ul class="font-sans text-sm text-xs">
 {FOOTER_LINKS}
 </ul>
 </div>
 </div>
 </div>
</footer>
```

---

## [CHECKLIST] Linear Style post-generation self check

**Before returning code, verify every token and rule below. Fix any violation before delivering:**

### Token check
- [ ] Button includes: `rounded-lg font-medium text-sm transition-opacity duration-150`
- [ ] Card includes: `rounded-lg border border-white/10 bg-white/[0.03]`
- [ ] Input includes: `rounded-lg border border-white/10 bg-white/[0.03] text-white text-sm focus:outline-none`

### Forbidden check
- [ ] Not using `bg-white`
- [ ] Not using `bg-gray-50`
- [ ] Not using `bg-gray-100`
- [ ] Not using `bg-slate-50`
- [ ] Not using `rounded-2xl`
- [ ] Not using `rounded-3xl`
- [ ] Not using `rounded-full`
- [ ] Not using `shadow-sm`

### Style rule check
- [ ] Near-black backgrounds: bg-[#0a0a0b] or bg-zinc-950
- [ ] Text hierarchy: text-white and text-zinc-400
- [ ] Subtle borders: border border-white/10
- [ ] Button gradient: bg-gradient-to-r from-[#5e6ad2] to-[#8b5cf6]
- [ ] Inter font with tracking-tight or -tracking-[0.01em]

### Style drift check
- [ ] Does not violate: No white/light backgrounds (dark is the foundation)
- [ ] Does not violate: No large border-radius: rounded-2xl, rounded-3xl, rounded-full
- [ ] Does not violate: No colored shadows or large shadows
- [ ] Does not violate: No multiple fonts (Inter only)
- [ ] Does not violate: No oversaturated colors (except brand purple)

### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Linear Style

## Absolute Bans (Match and Refuse)

If any of the following patterns appear, it is a style violation — rewrite without exception.

- white/light backgrounds (dark is the foundation)
- large border-radius: rounded-2xl, rounded-3xl, rounded-full
- colored shadows or large shadows
- multiple fonts (Inter only)
- oversaturated colors (except brand purple)
- decorative elements (gradient backgrounds, blobs, noise textures)

## Self-Check (Verify Before Shipping)

If any item fails, the style has drifted — fix before shipping.

- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] no white/light backgrounds (dark is the foundation)
- [ ] no large border-radius: rounded-2xl, rounded-3xl, rounded-full
- [ ] no colored shadows or large shadows
- [ ] no multiple fonts (Inter only)
- [ ] no oversaturated colors (except brand purple)

More prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

按钮

Linear 风格的渐变按钮

Frontend Readiness

Dark Mode, States, Motion, and Accessibility

This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.

Overall

73%

Curated

Dark Mode

70%

Partial

UI States

85%

Partial

Motion

70%

Partial

A11y

70%

Partial

Performance

70%

Partial

Key State Coverage

light / dark
HoverFocus VisibleDisabledLoadingEmptyErrorSuccess

Button

Default / Hover / Focus Visible / Active / Disabled

Input

Default / Hover / Focus Visible / Disabled / Error

Card

Default / Hover / Focus Visible / Loading / Skeleton

Form

Default / Focus Visible / Disabled / Loading / Error

Implementation Notes

  • Use crisp dark surfaces with low-contrast borders and a single cool accent.
  • Check contrast in both light and dark modes.
  • Keep generated pages image-aware: explicit dimensions, lazy loading below the fold, and no layout shift.

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

IDE Integration

IDE Configuration Export

Download configuration files for AI coding assistants to generate code in this style.

Style Pack

Export Style Pack

Get complete machine-readable style assets including design tokens, Tailwind presets, CSS variables, and shadcn/ui themes.

Metadata

Style metadata including version information

Design Tokens

Compatible with Figma / Style Dictionary / Tokens Studio

Tailwind Preset

Tailwind CSS theme preset, import directly in config

Global CSS

CSS variables and base styles

shadcn Theme

shadcn/ui theme configuration

CSS Variables

Pure CSS variables, works with any project

SKILL.md

Loadable skill pack for Cursor / Claude Code / VS Code

Design Philosophy

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

Accessibility

Accessibility Score

WCAG 2.1 compliance analysis based on color contrast and typography readability.

82

Overall Score

Grade: B - Good

Contrast Ratios

Score: 88/100Average Ratio: 12.25:1
AA PassAAA Fail
ContextColorsRatioAAAAA
Text on background
/#ffffff / #0a0a0b
19.79:1
Text on accent 1
/#ffffff / #5e6ad2
4.7:1

Readability

Score

67/100

Font Size

text-sm

Font Weight

font-sans font-semibold tracking-tight

Line Height

default

Scoring is based on WCAG 2.1 standards. AA requires 4.5:1 contrast for normal text, 3:1 for large text; AAA requires 7:1 for normal text, 4.5:1 for large text.

Design Recipes

Recommended Combinations with Linear Style

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