Background Colors
These variables control the background colors throughout the application.| Variable | Usage | Example Value (Dark) | Example Value (Light) |
|---|---|---|---|
--bg-primary | Main editor background | #161618 | #ffffff |
--bg-secondary | Secondary panels, cards | #1C1C1E | #f6f8fa |
--bg-sidebar | Sidebar/file tree | #161618 | #fafbfc |
--bg-tertiary | Hover states, tertiary UI | #2C2C2E | #eaeef2 |
Text Colors
| Variable | Usage | Example Value (Dark) | Example Value (Light) |
|---|---|---|---|
--text-primary | Main text content | #e0e0e0 | #24292f |
--text-secondary | Less important text | #a0a0a0 | #57606a |
--text-muted | Disabled or subtle text | #707070 | #8c959f |
Border Colors
Primary/Accent Colors
- Interactive elements (buttons, links)
- Active states
- Focus indicators
- Primary actions
Editor Variables
Controls the code editor appearance:| Variable | Usage |
|---|---|
--editor-bg | Editor background color |
--editor-fg | Editor foreground (text) color |
--editor-selection | Background color of selected text |
--editor-cursor | Cursor/caret color |
--editor-active-line | Background of current line |
--editor-line-number | Line number color |
--editor-scrollbar | Scrollbar thumb color |
Heading Colors
Each heading level can have its own color:Font Weights
Control the weight of different markdown elements:Markdown Syntax Colors
Colors for markdown syntax elements:Code Block Syntax Highlighting
Colors for syntax highlighting in code blocks:CodeMirror Editor Tokens
These variables control syntax highlighting in the editor:Highlight Colors
Callout/Alert Colors
Each callout type has four variables (background, border, title, icon):Table Colors
Diff View Colors
UI Element Colors
Buttons
Tabs
Inputs
Shadows
Notice/Toast System
Interactive Modifiers
Shared Constants (Cannot be customized per-theme)
These variables are the same for all themes but can be overridden in custom themes:Font Families
Font Sizes
Spacing
Border Radius
Heading Sizes
Code Sizing
Usage Examples
Minimal Theme (Override Essentials Only)
Complete Theme
For a production theme, define all color variables. See the quickstart guide for a complete example.Next Steps
Quick Start
Create your first theme
Best Practices
Tips for great theme development
