Back to Discover

Cursor

The AI code editor

cursor.com
14 colors
17 components
Geist, Geist Mono
Apr 26, 2026
Website Preview
Cursor screenshot
Colors
Primary
#146EF5

CTAs, links, active states

#0F5CD1

Hover state

#8B5CF6

AI/chat elements, suggestion highlights

Neutral
#111111

Marketing page body

#D4D4D4

Editor text

#6B7280

Captions, metadata

#FFFFFF

Marketing bg

#1C1C1C

Editor bg

#252526

Editor panels

#E5E7EB

Marketing dividers

#3C3C3C

Editor borders

Semantic
#22C55E

Accepted changes

#EF4444

Linting errors, rejected

#F59E0B

Warnings

Typography
Geist
Role
SizeWeightHeight
Display
56px7001.1
H1
40px7001.2
H2
28px6001.3
H3
20px6001.4
Body
16px4001.6
UI Label
13px4001.4
Geist Mono
Role
SizeWeightHeight
Editor
14px4001.5

Design System Inspired by Cursor

1. Visual Theme & Atmosphere

Cursor is an AI-powered code editor built on VS Code. A confident blue on white (marketing) and near-black (editor) creates a clean, focused environment. The design bridges the familiar IDE aesthetic with a conversational AI interface layered alongside the code canvas.

Key Characteristics:

  • Bright blue on white for marketing; dark canvas for the editor
  • Geist typeface — purpose-built for code and UI
  • Two distinct modes: light web, dark editor
  • AI as a first-class UI element, not a bolt-on

2. Color Palette & Roles

Primary

  • Blue (#146EF5): CTAs, links, active states
  • Blue Dark (#0F5CD1): Hover state

Accent Colors

  • Purple (#8B5CF6): AI/chat elements, suggestion highlights

Neutral Scale

  • Text Primary Light (#111111): Marketing page body
  • Text Primary Dark (#D4D4D4): Editor text
  • Text Secondary (#6B7280): Captions, metadata

Surface & Borders

  • Background Light (#FFFFFF): Marketing bg
  • Background Dark (#1C1C1C): Editor bg
  • Surface Dark (#252526): Editor panels
  • Border Light (#E5E7EB): Marketing dividers
  • Border Dark (#3C3C3C): Editor borders

Semantic / Status

  • Success (#22C55E): Accepted changes
  • Error (#EF4444): Linting errors, rejected
  • Warning (#F59E0B): Warnings
  • AI Diff Add (rgba(34,197,94,0.15)): AI-added lines
  • AI Diff Remove (rgba(239,68,68,0.15)): AI-removed lines

3. Typography Rules

Font Family

Primary: Geist, fallback: system-ui, sans-serif. Code: Geist Mono

Hierarchy

RoleFontSizeWeightLine HeightLetter SpacingNotes
DisplayGeist56px7001.1-0.02emMarketing hero
H1Geist40px7001.2-0.01emPage titles
H2Geist28px6001.30Section headings
H3Geist20px6001.40Sub-sections
BodyGeist16px4001.60Marketing prose
EditorGeist Mono14px4001.50Code content
UI LabelGeist13px4001.40Editor chrome

Principles

  • Geist Mono is the brand font — use it for all code rendering
  • Editor chrome uses Geist at 13px — compact but readable

4. Component Stylings

Buttons

  • Primary: bg #146EF5, text #FFFFFF, padding 10px 20px, radius 8px, font 15px/600
  • Secondary: bg #F4F4F4, text #111111, radius 8px
  • Ghost: bg transparent, text #6B7280, hover text #111111

Cards & Containers

  • Marketing: bg #FFFFFF, border 1px solid #E5E7EB, radius 12px, padding 24px
  • Editor panel: bg #252526, border 1px solid #3C3C3C, no radius

Inputs & Forms

  • Marketing: border 1px solid #E5E7EB, radius 8px, padding 10px 16px
  • AI input: bg #252526, border 1px solid #3C3C3C, radius 6px
  • Focus: border #146EF5

Navigation

  • Marketing: top nav #FFFFFF, height 64px, border-bottom #E5E7EB
  • Editor: activity bar left 48px, sidebar 240px, both #1C1C1C

5. Layout Principles

Spacing System

  • 4px — Icon gaps, editor chrome
  • 8px — Editor padding, small gaps
  • 12px — Tab bar height gaps
  • 16px — Marketing card padding
  • 24px — Marketing section gaps
  • 32px — Marketing component blocks
  • 48px — Marketing page sections
  • 64px — Marketing hero spacing

Grid & Container

  • Marketing max width 1100px. Editor: fluid, fills window.

Whitespace Philosophy

Marketing pages are spacious. Editor is compact — every pixel of canvas matters.

Border Radius Scale

  • None (0px): Editor itself
  • Sm (4px): Editor badges, keybind chips
  • Md (8px): Marketing buttons, cards
  • Lg (12px): Marketing feature cards
  • Full (9999px): Avatar, status pills

6. Depth & Elevation

LevelTreatmentUse
FlatnoneEditor canvas
Raised0 1px 3px rgba(0,0,0,0.1)Marketing cards
Overlay0 4px 16px rgba(0,0,0,0.15)Command palette
Modal0 8px 32px rgba(0,0,0,0.2)Dialogs

7. Do's and Don'ts

Do

  • Use Geist Mono for all code rendering — it's the brand
  • Keep AI suggestions visually distinct from the user's code
  • Show diff colors (green add, red remove) at low opacity

Don't

  • Don't mix light and dark themes in the editor
  • Don't animate code being written — instant feedback
  • Don't use purple for anything other than AI-related elements

8. Responsive Behavior

Breakpoints

NameWidthKey Changes
Mobile0–767pxMarketing only; editor is desktop
Tablet768–1023pxMarketing 2-column; editor no sidebar
Desktop1024px+Full editor + marketing layouts

Touch Targets

Minimum 44×44px on marketing site. Editor is mouse/keyboard optimised.

Collapsing Strategy

Marketing nav collapses to hamburger. Editor sidebars toggle via keyboard.

9. Agent Prompt Guide

Quick Color Reference

  • CTA: Blue (#146EF5)
  • Marketing bg: White (#FFFFFF)
  • Editor bg: Near-black (#1C1C1C)
  • Editor text: #D4D4D4
  • AI elements: Purple (#8B5CF6)
  • Diff add: Green at 15% opacity
  • Diff remove: Red at 15% opacity

Iteration Guide

  1. Geist Mono for all code — never switch to another monospace
  2. Marketing uses rounded-8 cards; editor uses zero-radius panels
  3. AI suggestions are purple-tinted — distinct from user code
  4. Command palette is the primary navigation in the editor
  5. Blue is the only interactive color in the marketing site

Want a DESIGN.md like this for your own website?