Architecture
The theme system uses a cascading configuration model where themes can be defined at the app level and customized per workspace.Theme configuration is stored in
~/.craft-agent/theme.json for app-level customization.6-Color Semantic System
Every theme is built around six core semantic colors that provide consistent meaning across the UI:background
Main application background color
foreground
Primary text and content color
accent
Brand color (purple #8B5CF6) - used for Execute mode and primary actions
info
Amber color for Ask mode, warnings, and informational states
success
Green color for successful operations
destructive
Red color for errors and destructive actions
Color Formats
Craft Agent supports all modern CSS color formats:OKLCH is recommended for perceptually uniform color manipulation and better color mixing in CSS.
Surface Colors
In addition to semantic colors, themes can define surface colors for specific UI regions. All surface colors are optional and fall back tobackground if not specified:
AI messages, cards, and elevated content backgrounds
Left sidebar background color
Input field background color
Dropdowns, modals, and context menus (always solid, no transparency)
Guaranteed 100% opaque popover background (required for scenic mode)
Dark Mode Support
Themes support optional dark mode overrides. When the system is in dark mode, colors from thedark object override the light mode values:
theme.json
Theme Modes
Craft Agent supports two visual modes:Solid Mode (Default)
Traditional solid color backgrounds throughout the application.theme.json
Scenic Mode
Full-window background image with glass panel effects for UI elements.theme.json
When using scenic mode, ensure
popoverSolid is defined as a fully opaque color for proper rendering of dropdowns and modals.Storage Locations
Themes are stored in specific locations in the Craft Agent configuration directory:| Location | Purpose |
|---|---|
~/.craft-agent/theme.json | App-level theme overrides |
~/.craft-agent/themes/*.json | Preset themes library |
Default Theme
Craft Agent ships with a carefully designed default theme:Next Steps
Customize Themes
Learn how to create and customize your own themes
Theme API
Explore the complete theme configuration API