styles

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package styles defines the visual design system including color palettes, lipgloss styles, gradient tabs, and theme application for consistent UI rendering.

Index

Constants

View Source
const (
	TargetSelectionSeparation = 2.65
	SelectionSeparationFloor  = 1.18
)

TargetSelectionSeparation is the contrast a text-selection highlight aims for against the canvas when deriving from scratch.

SelectionSeparationFloor is the CheckPaletteContrast minimum; deriveSelectionBg still aims at TargetSelectionSeparation for untinted derivations.

View Source
const ANSIReset = "\x1b[0m"

ANSIReset is the ANSI escape code to reset formatting.

View Source
const DefaultGradientAngle = 30.0

DefaultGradientAngle is the default angle for gradient borders (30 degrees).

View Source
const FreshInstallTheme = "sidecar-modern"

FreshInstallTheme is the theme a Sidecar with no recorded theme choice lands on.

View Source
const SidecarModernSyntaxThemeName = "sidecar-modern"

SidecarModernSyntaxThemeName is the identifier for the custom Chroma style tuned to the Sidecar Modern launch visual language.

Variables

View Source
var (
	// Primary colors
	Primary   = lipgloss.Color("#7C3AED") // Purple
	Secondary = lipgloss.Color("#3B82F6") // Blue
	Accent    = lipgloss.Color("#F59E0B") // Amber

	// Status colors
	Success = lipgloss.Color("#10B981") // Green
	Warning = lipgloss.Color("#F59E0B") // Amber
	Error   = lipgloss.Color("#EF4444") // Red
	Info    = lipgloss.Color("#3B82F6") // Blue

	// Text colors
	TextPrimary        = lipgloss.Color("#F9FAFB")
	TextSecondary      = lipgloss.Color("#9CA3AF")
	TextMuted          = lipgloss.Color("#6B7280")
	TextSubtle         = lipgloss.Color("#4B5563")
	TextSelectionColor = lipgloss.Color("#F9FAFB") // Text on selection backgrounds (BgTertiary)

	// Background colors
	BgPrimary   = lipgloss.Color("#111827")
	BgSecondary = lipgloss.Color("#1F2937")
	BgTertiary  = lipgloss.Color("#374151")
	BgOverlay   = lipgloss.Color("#00000080")

	// CardSelectedBg fills selected multi-coloured kanban/overview cards.
	// Darker than the board (not the lighter BgTertiary lift of ListItemSelected)
	// so project hues, agent chips, and lane colours stay readable.
	CardSelectedBg = lipgloss.Color("#090D14")

	// Derived contrast-guaranteed roles (see NormalizePalette)
	SurfaceRaised  = lipgloss.Color("#2B3544") // Chrome for key hints/chips
	KeyHintFgColor = lipgloss.Color("#F9FAFB") // Shortcut key text on SurfaceRaised
	OnPrimaryColor = lipgloss.Color("#FFFFFF") // Text on a Primary-coloured fill
	OnWarningColor = lipgloss.Color("#000000") // Text on a Warning-coloured fill

	// Border colors
	BorderNormal = lipgloss.Color("#374151")
	BorderActive = lipgloss.Color("#7C3AED")
	BorderMuted  = lipgloss.Color("#1F2937")

	// Diff foreground colors (also updated by ApplyTheme)
	DiffAddFg    = lipgloss.Color("#10B981")
	DiffRemoveFg = lipgloss.Color("#EF4444")

	// Additional themeable colors
	TextHighlight         = lipgloss.Color("#E5E7EB") // For subtitle, special text
	ButtonHoverColor      = lipgloss.Color("#9D174D") // Button hover background
	TabTextInactiveColor  = lipgloss.Color("#1a1a1a") // Inactive tab text
	LinkColor             = lipgloss.Color("#60A5FA") // Hyperlink color
	ToastSuccessTextColor = lipgloss.Color("#000000") // Toast success foreground
	ToastErrorTextColor   = lipgloss.Color("#FFFFFF") // Toast error foreground

	// Danger button colors
	DangerLight  = lipgloss.Color("#FCA5A5") // Light red text
	DangerDark   = lipgloss.Color("#7F1D1D") // Dark red background
	DangerBright = lipgloss.Color("#DC2626") // Bright red focused bg
	DangerHover  = lipgloss.Color("#B91C1C") // Darker red hover bg
	TextInverse  = lipgloss.Color("#FFFFFF") // Inverse/contrast text

	// Scrollbar colors (default to TextSubtle/TextMuted)
	ScrollbarTrackColor = lipgloss.Color("#4B5563") // Same as TextSubtle
	ScrollbarThumbColor = lipgloss.Color("#6B7280") // Same as TextMuted

	// Blame age gradient colors
	BlameAge1 = lipgloss.Color("#34D399") // < 1 week
	BlameAge2 = lipgloss.Color("#84CC16") // < 1 month
	BlameAge3 = lipgloss.Color("#FBBF24") // < 3 months
	BlameAge4 = lipgloss.Color("#F97316") // < 6 months
	BlameAge5 = lipgloss.Color("#9CA3AF") // < 1 year

	// Third-party theme names (updated by ApplyTheme)
	CurrentSyntaxTheme = "monokai"
)

Color palette - default dark theme

View Source
var (
	CurrentTabStyle  = "rainbow"
	CurrentTabColors = []RGB{{220, 60, 60}, {60, 220, 60}, {60, 60, 220}, {156, 60, 220}} // Default rainbow
)

Tab theme state (updated by ApplyTheme)

View Source
var (
	// Active panel with highlighted border
	PanelActive = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(BorderActive).
				Padding(0, 1)

	// Inactive panel with subtle border
	PanelInactive = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder()).
					BorderForeground(BorderNormal).
					Padding(0, 1)

	// Panel header
	PanelHeader = lipgloss.NewStyle().
				Bold(true).
				Foreground(TextPrimary).
				MarginBottom(1)

	// Panel with no border
	PanelNoBorder = lipgloss.NewStyle().
					Padding(0, 1)
)

Panel styles

View Source
var (
	Title = lipgloss.NewStyle().
			Bold(true).
			Foreground(TextPrimary)

	Subtitle = lipgloss.NewStyle().
				Foreground(TextHighlight)

	// WorktreeIndicator shows the current worktree branch in the header
	WorktreeIndicator = lipgloss.NewStyle().
						Foreground(Warning).
						Bold(true)

	Body = lipgloss.NewStyle().
			Foreground(TextPrimary)

	Muted = lipgloss.NewStyle().
			Foreground(TextMuted)

	Subtle = lipgloss.NewStyle().
			Foreground(TextSubtle)

	Code = lipgloss.NewStyle().
			Foreground(Accent)

	Link = lipgloss.NewStyle().
			Foreground(LinkColor).
			Underline(true)

	KeyHint = lipgloss.NewStyle().
			Foreground(KeyHintFgColor).
			Background(SurfaceRaised).
			Padding(0, 1)

			Foreground(Primary).
			Bold(true)
)

Text styles

View Source
var (
	StatusStaged = lipgloss.NewStyle().
					Foreground(Success).
					Bold(true)

	StatusModified = lipgloss.NewStyle().
					Foreground(Warning).
					Bold(true)

	// Toast styles for status messages
	ToastSuccess = lipgloss.NewStyle().
					Background(Success).
					Foreground(ToastSuccessTextColor).
					Bold(true).
					Padding(0, 1)

	ToastError = lipgloss.NewStyle().
				Background(Error).
				Foreground(ToastErrorTextColor).
				Bold(true).
				Padding(0, 1)

	StatusUntracked = lipgloss.NewStyle().
					Foreground(TextMuted)

	StatusDeleted = lipgloss.NewStyle().
					Foreground(Error).
					Bold(true)

	StatusInProgress = lipgloss.NewStyle().
						Foreground(Info).
						Bold(true)

	StatusCompleted = lipgloss.NewStyle().
					Foreground(Success)

	StatusBlocked = lipgloss.NewStyle().
					Foreground(Error)

	StatusPending = lipgloss.NewStyle().
					Foreground(TextMuted)

	// Note status indicator styles
	StatusArchived = lipgloss.NewStyle().
					Foreground(Info)

	StatusDeletedNote = lipgloss.NewStyle().
						Foreground(Error)
)

Status indicator styles

View Source
var (
	ListItemNormal = lipgloss.NewStyle().
					Foreground(TextPrimary)

	ListItemSelected = lipgloss.NewStyle().
						Foreground(TextSelectionColor).
						Background(BgTertiary)

	// CardSelected is ListItemSelected's counterpart for multi-coloured cards
	// (kanban / overview). Uses CardSelectedBg instead of BgTertiary.
	CardSelected = lipgloss.NewStyle().
					Foreground(TextSelectionColor).
					Background(CardSelectedBg)

	ListItemFocused = lipgloss.NewStyle().
					Foreground(OnPrimaryColor).
					Background(Primary)

	ListCursor = lipgloss.NewStyle().
				Foreground(Primary).
				Bold(true)
)

List item styles

View Source
var (
	BarTitle = lipgloss.NewStyle().
				Foreground(TextPrimary).
				Bold(true)

	// semantic styles instead of borrowing destination-title styling.
	BrandLogo = lipgloss.NewStyle().
				Foreground(Primary).
				Bold(true)

	HeaderDivider = lipgloss.NewStyle().
					Foreground(TextMuted)

	BarText = lipgloss.NewStyle().
			Foreground(TextMuted)

	BarChip = lipgloss.NewStyle().
			Foreground(KeyHintFgColor).
			Background(SurfaceRaised).
			Padding(0, 1)

	BarChipActive = lipgloss.NewStyle().
					Foreground(OnPrimaryColor).
					Background(Primary).
					Padding(0, 1).
					Bold(true)

	ProjectSelector = lipgloss.NewStyle().
					Foreground(Primary).
					Background(SurfaceRaised).
					Padding(0, 1).
					Bold(true)

	// GlobalHeaderAction is deliberately transparent: global scope uses the
	// same header surface as project scope, with text-only actions at the right.
	GlobalHeaderAction = lipgloss.NewStyle().
						Foreground(Primary).
						Padding(0, 1).
						Bold(true)

	ProjectRestore = lipgloss.NewStyle().
					Foreground(TextSecondary).
					Padding(0, 1)
)

Bar element styles (shared by header/footer)

View Source
var (
	DiffAdd = lipgloss.NewStyle().
			Foreground(Success)

	DiffRemove = lipgloss.NewStyle().
				Foreground(Error)

	DiffContext = lipgloss.NewStyle().
				Foreground(TextMuted)

	DiffHeader = lipgloss.NewStyle().
				Foreground(Info).
				Bold(true)

	// Subtle diff backgrounds for syntax-highlighted lines
	DiffAddBg    = lipgloss.Color("#0D2818") // Very subtle dark green
	DiffRemoveBg = lipgloss.Color("#2D1A1A") // Very subtle dark red
)

Diff line styles

View Source
var (
	// Directory names - bold blue
	FileBrowserDir = lipgloss.NewStyle().
					Foreground(Secondary).
					Bold(true)

	// Regular file names
	FileBrowserFile = lipgloss.NewStyle().
					Foreground(TextPrimary)

	// Gitignored files - muted/dimmed
	FileBrowserIgnored = lipgloss.NewStyle().
						Foreground(TextSubtle)

	// Line numbers in preview
	FileBrowserLineNumber = lipgloss.NewStyle().
							Foreground(TextMuted).
							Width(5).
							AlignHorizontal(lipgloss.Right)

	// Tree icons (>, +)
	FileBrowserIcon = lipgloss.NewStyle().
					Foreground(TextMuted)

	// Drop target row while dragging a file onto a directory. Deliberately
	// uses Primary rather than the BgTertiary of ListItemSelected: during a
	// drag both are on screen at once and must not look alike. The foreground
	// is OnPrimary, not TextPrimary, which is near-illegible on Primary in
	// most themes.
	FileBrowserDropTarget = lipgloss.NewStyle().
							Foreground(OnPrimaryColor).
							Background(Primary).
							Bold(true)

	// The row being dragged, dimmed so it reads as "in flight".
	FileBrowserDragSource = lipgloss.NewStyle().
							Foreground(TextSubtle).
							Italic(true)

	// Content search match highlighting
	SearchMatch = lipgloss.NewStyle().
				Background(Warning).
				Foreground(OnWarningColor) // Yellow background for all matches

	SearchMatchCurrent = lipgloss.NewStyle().
						Background(Primary).
						Foreground(OnPrimaryColor)

	// Fuzzy match character highlighting (bold in result list)
	FuzzyMatchChar = lipgloss.NewStyle().
					Foreground(Primary).
					Bold(true)

	// Quick open result row (normal)
	QuickOpenItem = lipgloss.NewStyle().
					Foreground(TextPrimary)

	// Quick open result row (selected)
	QuickOpenItemSelected = lipgloss.NewStyle().
							Foreground(TextSelectionColor).
							Background(BgTertiary)

	// Palette entry styles (reusable for modals)
	PaletteEntry = lipgloss.NewStyle().
					Foreground(TextPrimary)

	PaletteEntrySelected = lipgloss.NewStyle().
							Foreground(TextSelectionColor).
							Background(BgTertiary)

	PaletteKey = lipgloss.NewStyle().
				Foreground(KeyHintFgColor).
				Background(SurfaceRaised).
				Padding(0, 1)

	// Text selection for preview pane drag selection
	TextSelection = lipgloss.NewStyle().
					Background(BgTertiary).
					Foreground(TextSelectionColor)
)

File browser styles

View Source
var (
	Footer = lipgloss.NewStyle().
			Foreground(TextMuted).
			Background(BgSecondary)

	Header = lipgloss.NewStyle().
			Background(BgSecondary)

	// HeaderGlobal tints the top bar in the cross-project space so the mode
	// is visible in peripheral vision even after the clock is dropped.
	HeaderGlobal = lipgloss.NewStyle().
					Background(BgTertiary)
)

Footer and header

View Source
var (
	ModalOverlay = lipgloss.NewStyle().
					Background(BgOverlay)

	ModalBox = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(Primary).
				Background(BgSecondary).
				Padding(1, 2)

	ModalTitle = lipgloss.NewStyle().
				Foreground(TextPrimary).
				Bold(true).
				MarginBottom(1)
)

Modal styles

View Source
var (
	Button = lipgloss.NewStyle().
			Foreground(TextSecondary).
			Background(BgTertiary).
			Padding(0, 2)

	ButtonFocused = lipgloss.NewStyle().
					Foreground(TextPrimary).
					Background(Primary).
					Padding(0, 2).
					Bold(true)

	ButtonHover = lipgloss.NewStyle().
				Foreground(TextPrimary).
				Background(ButtonHoverColor).
				Padding(0, 2)

	// Danger button styles (for destructive actions like delete)
	ButtonDanger = lipgloss.NewStyle().
					Foreground(DangerLight).
					Background(DangerDark).
					Padding(0, 2)

	ButtonDangerFocused = lipgloss.NewStyle().
						Foreground(TextInverse).
						Background(DangerBright).
						Padding(0, 2).
						Bold(true)

	ButtonDangerHover = lipgloss.NewStyle().
						Foreground(TextInverse).
						Background(DangerHover).
						Padding(0, 2)
)

Button styles

View Source
var (
	// SidecarModernTheme is the launch theme, transcribed from the Agenda TUI
	// Refresh design (docs/guides/active/launch-visual-language.md).
	//
	// Its organising rule is that gold (#c0982f) is the only strong accent in
	// chrome — active tab, cursor, focused fill, key glyphs. Every other colour
	// is earned by semantics: teal for identifiers and open state, green for
	// live/success, red for failing and destructive, purple for reviewable,
	// blue for links. Structure is carried by a seven-step neutral ramp rather
	// than by saturation.
	SidecarModernTheme = Theme{
		Name:        "sidecar-modern",
		DisplayName: "Sidecar Modern",
		Colors: ColorPalette{

			Primary:   "#c0982f",
			Secondary: "#4a8f8f",
			Accent:    "#c0982f",

			Success: "#5b8f63",
			Warning: "#c0982f",
			Error:   "#c06c64",
			Info:    "#4a8f8f",

			TextPrimary:   "#cfd3d6",
			TextSecondary: "#8b9298",
			TextMuted:     "#858e95",
			TextSubtle:    "#697177",
			TextSelection: "#ffffff",

			BgPrimary:   "#0f1113",
			BgSecondary: "#131619",
			BgTertiary:  "#171b1f",
			BgOverlay:   "#0b0d0ecc",

			SelectionBg: "#264f78",

			SurfaceRaised: "#22272c",
			KeyHintFg:     "#c0982f",
			OnPrimary:     "#0f1113",
			OnWarning:     "#0f1113",

			BorderNormal: "#3d444a",
			BorderActive: "#c0982f",
			BorderMuted:  "#272d32",

			GradientBorderActive: []string{"#c0982f", "#b85d3b"},
			GradientBorderNormal: []string{"#3d444a", "#272d32"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#c0982f"},

			DiffAddFg:    "#7fae86",
			DiffAddBg:    "#14201a",
			DiffRemoveFg: "#c97a72",
			DiffRemoveBg: "#201415",

			TextHighlight:    "#e2e6e9",
			ButtonHover:      "#2f3438",
			TabTextInactive:  "#7b848c",
			Link:             "#4b8fd6",
			ToastSuccessText: "#0f1113",
			ToastErrorText:   "#0f1113",

			DangerLight:  "#d99a94",
			DangerDark:   "#2a1614",
			DangerBright: "#b0574f",
			DangerHover:  "#96453e",
			TextInverse:  "#ffffff",

			ScrollbarTrack: "#1c2126",
			ScrollbarThumb: "#5a6167",

			BlameAge1: "#7fae86",
			BlameAge2: "#5b8f63",
			BlameAge3: "#c0982f",
			BlameAge4: "#c06c64",
			BlameAge5: "#7b848c",

			SyntaxTheme:   "sidecar-modern",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#c0982f", "#4a8f8f", "#5b8f63", "#a57fb9", "#4b8fd6", "#c97a72"},
			AgentColors: map[string]string{
				"claude":      "#c17c5b",
				"codex":       "#8b9298",
				"grok":        "#cfd3d6",
				"antigravity": "#4f9999",
				"gemini":      "#4d90d6",
				"cursor":      "#a57fb9",
			},
			LaneWorking: "#5b8f63",
			LaneBlocked: "#c0982f",
			LaneDone:    "#a57fb9",
			LaneIdle:    "#8b9298",
			LanePaused:  "#7b848c",
		},
	}

	// DefaultTheme aliases SidecarModernTheme for backwards compatibility.
	DefaultTheme = SidecarModernTheme

	// Named aliases for themes in CuratedThemes
	CatppuccinMochaTheme = CuratedThemes["catppuccin-mocha"]
	TokyoNightTheme      = CuratedThemes["tokyonight-storm"]
	DraculaTheme         = CuratedThemes["dracula"]
	NordTheme            = CuratedThemes["nord"]
	SolarizedDarkTheme   = CuratedThemes["solarized-dark"]
	MolokaiTheme         = CuratedThemes["monokai-pro"]
)

Built-in themes

View Source
var CuratedThemes = map[string]Theme{
	"catppuccin-mocha": Theme{
		Name:        "catppuccin-mocha",
		DisplayName: "Catppuccin Mocha",
		Colors: ColorPalette{
			Primary:   "#89b4fa",
			Secondary: "#94e2d5",
			Accent:    "#89b4fa",

			Success: "#a6e3a1",
			Warning: "#f9e2af",
			Error:   "#f38ba8",
			Info:    "#94e2d5",

			TextPrimary:   "#cdd6f4",
			TextSecondary: "#a1a8c2",
			TextMuted:     "#a2a6ba",
			TextSubtle:    "#828598",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#1e1e2e",
			BgSecondary: "#191926",
			BgTertiary:  "#30303f",
			BgOverlay:   "#1e1e2ecc",
			SelectionBg: "#585b70",

			SurfaceRaised: "#393947",
			KeyHintFg:     "#89b4fa",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#50505c",
			BorderActive: "#89b4fa",
			BorderMuted:  "#343443",

			GradientBorderActive: []string{"#89b4fa", "#94e2d5"},
			GradientBorderNormal: []string{"#50505c", "#343443"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#89b4fa"},

			DiffAddFg:    "#a6e3a1",
			DiffAddBg:    "#323c3f",
			DiffRemoveFg: "#f38ba8",
			DiffRemoveBg: "#3e2e40",

			ButtonHover:      "#343443",
			TabTextInactive:  "#84879b",
			Link:             "#89b4fa",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#f7aec2",
			DangerDark:   "#493446",
			DangerBright: "#f38ba8",
			DangerHover:  "#cf768f",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#30303f",
			ScrollbarThumb: "#50505c",

			BlameAge1: "#a6e3a1",
			BlameAge2: "#94e2d5",
			BlameAge3: "#f9e2af",
			BlameAge4: "#f38ba8",
			BlameAge5: "#a2a6ba",

			SyntaxTheme:   "catppuccin-mocha",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#89b4fa", "#94e2d5", "#a6e3a1", "#f9e2af", "#f5c2e7", "#f38ba8"},
			AgentColors: map[string]string{
				"claude":      "#f9e2af",
				"codex":       "#a1a8c2",
				"grok":        "#cdd6f4",
				"antigravity": "#94e2d5",
				"gemini":      "#89b4fa",
				"cursor":      "#f5c2e7",
			},
			LaneWorking: "#a6e3a1",
			LaneBlocked: "#f9e2af",
			LaneDone:    "#f5c2e7",
			LaneIdle:    "#a1a8c2",
			LanePaused:  "#a2a6ba",
		},
	},
	"tokyonight-storm": Theme{
		Name:        "tokyonight-storm",
		DisplayName: "Tokyo Night Storm",
		Colors: ColorPalette{
			Primary:   "#7aa2f7",
			Secondary: "#7dcfff",
			Accent:    "#7aa2f7",

			Success: "#9ece6a",
			Warning: "#e0af68",
			Error:   "#f77d94",
			Info:    "#7dcfff",

			TextPrimary:   "#c0caf5",
			TextSecondary: "#a8afcf",
			TextMuted:     "#acb1c7",
			TextSubtle:    "#8b91a9",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#24283b",
			BgSecondary: "#1e2130",
			BgTertiary:  "#36394b",
			BgOverlay:   "#24283bcc",
			SelectionBg: "#283457",

			SurfaceRaised: "#3e4253",
			KeyHintFg:     "#8daff7",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#545766",
			BorderActive: "#7aa2f7",
			BorderMuted:  "#3a3e4f",

			GradientBorderActive: []string{"#7aa2f7", "#7dcfff"},
			GradientBorderNormal: []string{"#545766", "#3a3e4f"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#7aa2f7"},

			DiffAddFg:    "#9ece6a",
			DiffAddBg:    "#364142",
			DiffRemoveFg: "#f77d94",
			DiffRemoveBg: "#443548",

			ButtonHover:      "#3a3e4f",
			TabTextInactive:  "#868ca7",
			Link:             "#7aa2f7",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#f9a4b4",
			DangerDark:   "#4e394d",
			DangerBright: "#f77d94",
			DangerHover:  "#d26a7e",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#36394b",
			ScrollbarThumb: "#545766",

			BlameAge1: "#9ece6a",
			BlameAge2: "#7dcfff",
			BlameAge3: "#e0af68",
			BlameAge4: "#f77d94",
			BlameAge5: "#acb1c7",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#7aa2f7", "#7dcfff", "#9ece6a", "#e0af68", "#bb9af7", "#f77d94"},
			AgentColors: map[string]string{
				"claude":      "#e0af68",
				"codex":       "#a8afcf",
				"grok":        "#c0caf5",
				"antigravity": "#7dcfff",
				"gemini":      "#7aa2f7",
				"cursor":      "#bb9af7",
			},
			LaneWorking: "#9ece6a",
			LaneBlocked: "#e0af68",
			LaneDone:    "#bb9af7",
			LaneIdle:    "#a8afcf",
			LanePaused:  "#acb1c7",
		},
	},
	"gruvbox-dark": Theme{
		Name:        "gruvbox-dark",
		DisplayName: "Gruvbox Dark",
		Colors: ColorPalette{
			Primary:   "#fabd2f",
			Secondary: "#84af85",
			Accent:    "#fabd2f",

			Success: "#abaa44",
			Warning: "#d79921",
			Error:   "#e38984",
			Info:    "#84af85",

			TextPrimary:   "#ebdbb2",
			TextSecondary: "#baae8f",
			TextMuted:     "#b7af9e",
			TextSubtle:    "#928c7c",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#282828",
			BgSecondary: "#212121",
			BgTertiary:  "#393939",
			BgOverlay:   "#282828cc",
			SelectionBg: "#504945",

			SurfaceRaised: "#424242",
			KeyHintFg:     "#fabd2f",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#575757",
			BorderActive: "#fabd2f",
			BorderMuted:  "#3e3e3e",

			GradientBorderActive: []string{"#fabd2f", "#84af85"},
			GradientBorderNormal: []string{"#575757", "#3e3e3e"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#fabd2f"},

			DiffAddFg:    "#abaa44",
			DiffAddBg:    "#3c3c2c",
			DiffRemoveFg: "#e48f8a",
			DiffRemoveBg: "#443736",

			ButtonHover:      "#3e3e3e",
			TabTextInactive:  "#968e7b",
			Link:             "#fabd2f",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#ebaca9",
			DangerDark:   "#4d3b3a",
			DangerBright: "#e38984",
			DangerHover:  "#c17470",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#393939",
			ScrollbarThumb: "#575757",

			BlameAge1: "#abaa44",
			BlameAge2: "#84af85",
			BlameAge3: "#d79921",
			BlameAge4: "#e38984",
			BlameAge5: "#b7af9e",

			SyntaxTheme:   "gruvbox",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#fabd2f", "#84af85", "#abaa44", "#d79921", "#cb96ae", "#e38984"},
			AgentColors: map[string]string{
				"claude":      "#d79921",
				"codex":       "#baae8f",
				"grok":        "#ebdbb2",
				"antigravity": "#84af85",
				"gemini":      "#fabd2f",
				"cursor":      "#cb96ae",
			},
			LaneWorking: "#abaa44",
			LaneBlocked: "#d79921",
			LaneDone:    "#cb96ae",
			LaneIdle:    "#baae8f",
			LanePaused:  "#b7af9e",
		},
	},
	"dracula": Theme{
		Name:        "dracula",
		DisplayName: "Dracula",
		Colors: ColorPalette{
			Primary:   "#ff79c6",
			Secondary: "#8be9fd",
			Accent:    "#ff79c6",

			Success: "#50fa7b",
			Warning: "#f1fa8c",
			Error:   "#ff8383",
			Info:    "#8be9fd",

			TextPrimary:   "#f8f8f2",
			TextSecondary: "#c4c4c3",
			TextMuted:     "#b2b2b3",
			TextSubtle:    "#929396",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#282a36",
			BgSecondary: "#21222c",
			BgTertiary:  "#393b46",
			BgOverlay:   "#282a36cc",
			SelectionBg: "#44475a",

			SurfaceRaised: "#42444e",
			KeyHintFg:     "#ff8ccf",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#575962",
			BorderActive: "#ff79c6",
			BorderMuted:  "#3e3f4a",

			GradientBorderActive: []string{"#ff79c6", "#8be9fd"},
			GradientBorderNormal: []string{"#575962", "#3e3f4a"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#ff79c6"},

			DiffAddFg:    "#50fa7b",
			DiffAddBg:    "#2e4940",
			DiffRemoveFg: "#ff8383",
			DiffRemoveBg: "#483742",

			ButtonHover:      "#3e3f4a",
			TabTextInactive:  "#909194",
			Link:             "#ff79c6",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#ffa8a8",
			DangerDark:   "#533c45",
			DangerBright: "#ff8383",
			DangerHover:  "#d96f6f",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#393b46",
			ScrollbarThumb: "#575962",

			BlameAge1: "#50fa7b",
			BlameAge2: "#8be9fd",
			BlameAge3: "#f1fa8c",
			BlameAge4: "#ff8383",
			BlameAge5: "#b2b2b3",

			SyntaxTheme:   "dracula",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#ff79c6", "#8be9fd", "#50fa7b", "#f1fa8c", "#ff79c6", "#ff8383"},
			AgentColors: map[string]string{
				"claude":      "#f1fa8c",
				"codex":       "#c4c4c3",
				"grok":        "#f8f8f2",
				"antigravity": "#8be9fd",
				"gemini":      "#ff79c6",
				"cursor":      "#ff79c6",
			},
			LaneWorking: "#50fa7b",
			LaneBlocked: "#f1fa8c",
			LaneDone:    "#ff79c6",
			LaneIdle:    "#c4c4c3",
			LanePaused:  "#b2b2b3",
		},
	},
	"nord": Theme{
		Name:        "nord",
		DisplayName: "Nord",
		Colors: ColorPalette{
			Primary:   "#9db6d0",
			Secondary: "#88c0d0",
			Accent:    "#9db6d0",

			Success: "#a3be8c",
			Warning: "#ebcb8b",
			Error:   "#daa5aa",
			Info:    "#88c0d0",

			TextPrimary:   "#d8dee9",
			TextSecondary: "#b5bcc5",
			TextMuted:     "#b8bcc3",
			TextSubtle:    "#989ca6",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#2e3440",
			BgSecondary: "#262b34",
			BgTertiary:  "#3f444f",
			BgOverlay:   "#2e3440cc",
			SelectionBg: "#3b4a68",

			SurfaceRaised: "#474c57",
			KeyHintFg:     "#abc0d6",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#5c616a",
			BorderActive: "#9db6d0",
			BorderMuted:  "#434853",

			GradientBorderActive: []string{"#9db6d0", "#88c0d0"},
			GradientBorderNormal: []string{"#5c616a", "#434853"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#9db6d0"},

			DiffAddFg:    "#a3be8c",
			DiffAddBg:    "#40494b",
			DiffRemoveFg: "#dcaaae",
			DiffRemoveBg: "#484550",

			ButtonHover:      "#434853",
			TabTextInactive:  "#959aa3",
			Link:             "#9db6d0",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#e5c0c3",
			DangerDark:   "#504b55",
			DangerBright: "#daa5aa",
			DangerHover:  "#b98c90",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#3f444f",
			ScrollbarThumb: "#5c616a",

			BlameAge1: "#a3be8c",
			BlameAge2: "#88c0d0",
			BlameAge3: "#ebcb8b",
			BlameAge4: "#daa5aa",
			BlameAge5: "#b8bcc3",

			SyntaxTheme:   "nord",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#9db6d0", "#88c0d0", "#a3be8c", "#ebcb8b", "#c5a8bf", "#daa5aa"},
			AgentColors: map[string]string{
				"claude":      "#ebcb8b",
				"codex":       "#b5bcc5",
				"grok":        "#d8dee9",
				"antigravity": "#88c0d0",
				"gemini":      "#9db6d0",
				"cursor":      "#c5a8bf",
			},
			LaneWorking: "#a3be8c",
			LaneBlocked: "#ebcb8b",
			LaneDone:    "#c5a8bf",
			LaneIdle:    "#b5bcc5",
			LanePaused:  "#b8bcc3",
		},
	},
	"atom-one-dark": Theme{
		Name:        "atom-one-dark",
		DisplayName: "Atom One Dark",
		Colors: ColorPalette{
			Primary:   "#61afef",
			Secondary: "#56b6c2",
			Accent:    "#61afef",

			Success: "#98c379",
			Warning: "#e5c07b",
			Error:   "#e48189",
			Info:    "#56b6c2",

			TextPrimary:   "#abb2bf",
			TextSecondary: "#a8adb5",
			TextMuted:     "#a8abb2",
			TextSubtle:    "#8a8d95",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#21252b",
			BgSecondary: "#1b1e23",
			BgTertiary:  "#33363c",
			BgOverlay:   "#21252bcc",
			SelectionBg: "#2c3e55",

			SurfaceRaised: "#3c3f44",
			KeyHintFg:     "#69b3f0",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#52555a",
			BorderActive: "#61afef",
			BorderMuted:  "#373b40",

			GradientBorderActive: []string{"#61afef", "#56b6c2"},
			GradientBorderNormal: []string{"#52555a", "#373b40"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#61afef"},

			DiffAddFg:    "#98c379",
			DiffAddBg:    "#333d37",
			DiffRemoveFg: "#e5878f",
			DiffRemoveBg: "#3e3339",

			ButtonHover:      "#373b40",
			TabTextInactive:  "#898d95",
			Link:             "#61afef",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#eca7ac",
			DangerDark:   "#48373e",
			DangerBright: "#e48189",
			DangerHover:  "#c26e74",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#33363c",
			ScrollbarThumb: "#52555a",

			BlameAge1: "#98c379",
			BlameAge2: "#56b6c2",
			BlameAge3: "#e5c07b",
			BlameAge4: "#e48189",
			BlameAge5: "#a8abb2",

			SyntaxTheme:   "onedark",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#61afef", "#56b6c2", "#98c379", "#e5c07b", "#cc85e1", "#e48189"},
			AgentColors: map[string]string{
				"claude":      "#e5c07b",
				"codex":       "#a8adb5",
				"grok":        "#abb2bf",
				"antigravity": "#56b6c2",
				"gemini":      "#61afef",
				"cursor":      "#cc85e1",
			},
			LaneWorking: "#98c379",
			LaneBlocked: "#e5c07b",
			LaneDone:    "#cc85e1",
			LaneIdle:    "#a8adb5",
			LanePaused:  "#a8abb2",
		},
	},
	"kanagawa-wave": Theme{
		Name:        "kanagawa-wave",
		DisplayName: "Kanagawa Wave",
		Colors: ColorPalette{
			Primary:   "#7e9cd8",
			Secondary: "#7fa49a",
			Accent:    "#7e9cd8",

			Success: "#8aa37f",
			Warning: "#c0a36e",
			Error:   "#d78183",
			Info:    "#7fa49a",

			TextPrimary:   "#dcd7ba",
			TextSecondary: "#ada995",
			TextMuted:     "#aaa79c",
			TextSubtle:    "#88867f",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#1f1f28",
			BgSecondary: "#191921",
			BgTertiary:  "#313139",
			BgOverlay:   "#1f1f28cc",
			SelectionBg: "#2d4f67",

			SurfaceRaised: "#3a3a42",
			KeyHintFg:     "#8aa6dc",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#505057",
			BorderActive: "#7e9cd8",
			BorderMuted:  "#35353e",

			GradientBorderActive: []string{"#7e9cd8", "#7fa49a"},
			GradientBorderNormal: []string{"#505057", "#35353e"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#7e9cd8"},

			DiffAddFg:    "#8aa37f",
			DiffAddBg:    "#2f3335",
			DiffRemoveFg: "#d78183",
			DiffRemoveBg: "#3b2e36",

			ButtonHover:      "#35353e",
			TabTextInactive:  "#8a887f",
			Link:             "#7e9cd8",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#e3a7a8",
			DangerDark:   "#44333a",
			DangerBright: "#d78183",
			DangerHover:  "#b76e6f",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#313139",
			ScrollbarThumb: "#505057",

			BlameAge1: "#8aa37f",
			BlameAge2: "#7fa49a",
			BlameAge3: "#c0a36e",
			BlameAge4: "#d78183",
			BlameAge5: "#aaa79c",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#7e9cd8", "#7fa49a", "#8aa37f", "#c0a36e", "#a491c2", "#d78183"},
			AgentColors: map[string]string{
				"claude":      "#c0a36e",
				"codex":       "#ada995",
				"grok":        "#dcd7ba",
				"antigravity": "#7fa49a",
				"gemini":      "#7e9cd8",
				"cursor":      "#a491c2",
			},
			LaneWorking: "#8aa37f",
			LaneBlocked: "#c0a36e",
			LaneDone:    "#a491c2",
			LaneIdle:    "#ada995",
			LanePaused:  "#aaa79c",
		},
	},
	"rose-pine": Theme{
		Name:        "rose-pine",
		DisplayName: "Rose Pine",
		Colors: ColorPalette{
			Primary:   "#eb6f92",
			Secondary: "#ebbcba",
			Accent:    "#eb6f92",

			Success: "#6799ad",
			Warning: "#f6c177",
			Error:   "#eb6f92",
			Info:    "#ebbcba",

			TextPrimary:   "#e0def4",
			TextSecondary: "#aeacc0",
			TextMuted:     "#a09eae",
			TextSubtle:    "#817f8e",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#191724",
			BgSecondary: "#14131e",
			BgTertiary:  "#2b2a36",
			BgOverlay:   "#191724cc",
			SelectionBg: "#403d52",

			SurfaceRaised: "#35333e",
			KeyHintFg:     "#ed7d9c",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#4c4a54",
			BorderActive: "#eb6f92",
			BorderMuted:  "#302e3a",

			GradientBorderActive: []string{"#eb6f92", "#ebbcba"},
			GradientBorderNormal: []string{"#4c4a54", "#302e3a"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#eb6f92"},

			DiffAddFg:    "#6799ad",
			DiffAddBg:    "#252a39",
			DiffRemoveFg: "#eb6f92",
			DiffRemoveBg: "#382434",

			ButtonHover:      "#302e3a",
			TabTextInactive:  "#838192",
			Link:             "#eb6f92",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#f19ab3",
			DangerDark:   "#43293a",
			DangerBright: "#eb6f92",
			DangerHover:  "#c85e7c",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#2b2a36",
			ScrollbarThumb: "#4c4a54",

			BlameAge1: "#6799ad",
			BlameAge2: "#ebbcba",
			BlameAge3: "#f6c177",
			BlameAge4: "#eb6f92",
			BlameAge5: "#a09eae",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#eb6f92", "#ebbcba", "#6799ad", "#f6c177", "#c4a7e7", "#eb6f92"},
			AgentColors: map[string]string{
				"claude":      "#f6c177",
				"codex":       "#aeacc0",
				"grok":        "#e0def4",
				"antigravity": "#ebbcba",
				"gemini":      "#eb6f92",
				"cursor":      "#c4a7e7",
			},
			LaneWorking: "#6799ad",
			LaneBlocked: "#f6c177",
			LaneDone:    "#c4a7e7",
			LaneIdle:    "#aeacc0",
			LanePaused:  "#a09eae",
		},
	},
	"everforest-dark": Theme{
		Name:        "everforest-dark",
		DisplayName: "Everforest Dark",
		Colors: ColorPalette{
			Primary:   "#a7c080",
			Secondary: "#dbbc7f",
			Accent:    "#a7c080",

			Success: "#a7c080",
			Warning: "#dbbc7f",
			Error:   "#e88a8c",
			Info:    "#83c092",

			TextPrimary:   "#d3c6aa",
			TextSecondary: "#b7b1a0",
			TextMuted:     "#b3b0a5",
			TextSubtle:    "#929089",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#232a2e",
			BgSecondary: "#1d2226",
			BgTertiary:  "#353b3f",
			BgOverlay:   "#232a2ecc",
			SelectionBg: "#344246",

			SurfaceRaised: "#3d4447",
			KeyHintFg:     "#a7c080",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#53595c",
			BorderActive: "#a7c080",
			BorderMuted:  "#393f43",

			GradientBorderActive: []string{"#a7c080", "#dbbc7f"},
			GradientBorderNormal: []string{"#53595c", "#393f43"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#a7c080"},

			DiffAddFg:    "#a7c080",
			DiffAddBg:    "#37403a",
			DiffRemoveFg: "#e88a8c",
			DiffRemoveBg: "#41383c",

			ButtonHover:      "#393f43",
			TabTextInactive:  "#949187",
			Link:             "#a7c080",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#efadae",
			DangerDark:   "#4a3d41",
			DangerBright: "#e88a8c",
			DangerHover:  "#c57577",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#353b3f",
			ScrollbarThumb: "#53595c",

			BlameAge1: "#a7c080",
			BlameAge2: "#dbbc7f",
			BlameAge3: "#dbbc7f",
			BlameAge4: "#e88a8c",
			BlameAge5: "#b3b0a5",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#a7c080", "#dbbc7f", "#a7c080", "#dbbc7f", "#d699b6", "#e88a8c"},
			AgentColors: map[string]string{
				"claude":      "#dbbc7f",
				"codex":       "#b7b1a0",
				"grok":        "#d3c6aa",
				"antigravity": "#dbbc7f",
				"gemini":      "#a7c080",
				"cursor":      "#d699b6",
			},
			LaneWorking: "#a7c080",
			LaneBlocked: "#dbbc7f",
			LaneDone:    "#d699b6",
			LaneIdle:    "#b7b1a0",
			LanePaused:  "#b3b0a5",
		},
	},
	"solarized-dark": Theme{
		Name:        "solarized-dark",
		DisplayName: "Solarized Dark",
		Colors: ColorPalette{
			Primary:   "#b69034",
			Secondary: "#44a197",
			Accent:    "#b69034",

			Success: "#6cbe6c",
			Warning: "#b69034",
			Error:   "#e27075",
			Info:    "#44a197",

			TextPrimary:   "#9cc2c3",
			TextSecondary: "#83a3a6",
			TextMuted:     "#8fa6aa",
			TextSubtle:    "#688488",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#001e27",
			BgSecondary: "#001920",
			BgTertiary:  "#143038",
			BgOverlay:   "#001e27cc",
			SelectionBg: "#073642",

			SurfaceRaised: "#1f3941",
			KeyHintFg:     "#bd9b48",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#385057",
			BorderActive: "#b69034",
			BorderMuted:  "#1a343d",

			GradientBorderActive: []string{"#b69034", "#44a197"},
			GradientBorderNormal: []string{"#385057", "#1a343d"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#b69034"},

			DiffAddFg:    "#6cbe6c",
			DiffAddBg:    "#103631",
			DiffRemoveFg: "#e27075",
			DiffRemoveBg: "#222a33",

			ButtonHover:      "#1a343d",
			TabTextInactive:  "#678489",
			Link:             "#b69034",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#eb9b9e",
			DangerDark:   "#2d2e37",
			DangerBright: "#e27075",
			DangerHover:  "#c05f63",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#143038",
			ScrollbarThumb: "#385057",

			BlameAge1: "#6cbe6c",
			BlameAge2: "#44a197",
			BlameAge3: "#b69034",
			BlameAge4: "#e27075",
			BlameAge5: "#8fa6aa",

			SyntaxTheme:   "solarized-dark",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#b69034", "#44a197", "#6cbe6c", "#b69034", "#db70a5", "#e27075"},
			AgentColors: map[string]string{
				"claude":      "#b69034",
				"codex":       "#83a3a6",
				"grok":        "#9cc2c3",
				"antigravity": "#44a197",
				"gemini":      "#b69034",
				"cursor":      "#db70a5",
			},
			LaneWorking: "#6cbe6c",
			LaneBlocked: "#b69034",
			LaneDone:    "#db70a5",
			LaneIdle:    "#83a3a6",
			LanePaused:  "#8fa6aa",
		},
	},
	"monokai-pro": Theme{
		Name:        "monokai-pro",
		DisplayName: "Monokai Pro",
		Colors: ColorPalette{
			Primary:   "#ffd866",
			Secondary: "#a9dc76",
			Accent:    "#ffd866",

			Success: "#a9dc76",
			Warning: "#ffd866",
			Error:   "#ff7e9e",
			Info:    "#78dce8",

			TextPrimary:   "#fcfcfa",
			TextSecondary: "#c8c8c7",
			TextMuted:     "#b5b4b4",
			TextSubtle:    "#969496",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#2d2a2e",
			BgSecondary: "#252226",
			BgTertiary:  "#3e3b3f",
			BgOverlay:   "#2d2a2ecc",
			SelectionBg: "#534c54",

			SurfaceRaised: "#464447",
			KeyHintFg:     "#ffd866",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#5b595c",
			BorderActive: "#ffd866",
			BorderMuted:  "#423f43",

			GradientBorderActive: []string{"#ffd866", "#a9dc76"},
			GradientBorderNormal: []string{"#5b595c", "#423f43"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#ffd866"},

			DiffAddFg:    "#a9dc76",
			DiffAddBg:    "#404539",
			DiffRemoveFg: "#ff7e9e",
			DiffRemoveBg: "#4c373f",

			ButtonHover:      "#423f43",
			TabTextInactive:  "#949394",
			Link:             "#ffd866",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#ffa5bb",
			DangerDark:   "#573b44",
			DangerBright: "#ff7e9e",
			DangerHover:  "#d96b86",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#3e3b3f",
			ScrollbarThumb: "#5b595c",

			BlameAge1: "#a9dc76",
			BlameAge2: "#a9dc76",
			BlameAge3: "#ffd866",
			BlameAge4: "#ff7e9e",
			BlameAge5: "#b5b4b4",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#ffd866", "#a9dc76", "#a9dc76", "#ffd866", "#ab9df2", "#ff7e9e"},
			AgentColors: map[string]string{
				"claude":      "#ffd866",
				"codex":       "#c8c8c7",
				"grok":        "#fcfcfa",
				"antigravity": "#a9dc76",
				"gemini":      "#ffd866",
				"cursor":      "#ab9df2",
			},
			LaneWorking: "#a9dc76",
			LaneBlocked: "#ffd866",
			LaneDone:    "#ab9df2",
			LaneIdle:    "#c8c8c7",
			LanePaused:  "#b5b4b4",
		},
	},
	"night-owl": Theme{
		Name:        "night-owl",
		DisplayName: "Night Owl",
		Colors: ColorPalette{
			Primary:   "#82aaff",
			Secondary: "#21c7a8",
			Accent:    "#82aaff",

			Success: "#22da6e",
			Warning: "#addb67",
			Error:   "#f05c59",
			Info:    "#21c7a8",

			TextPrimary:   "#d6deeb",
			TextSecondary: "#a1acba",
			TextMuted:     "#8d99a7",
			TextSubtle:    "#707e8b",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#011627",
			BgSecondary: "#011220",
			BgTertiary:  "#152938",
			BgOverlay:   "#011627cc",
			SelectionBg: "#234d70",

			SurfaceRaised: "#1f3241",
			KeyHintFg:     "#82aaff",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#394957",
			BorderActive: "#82aaff",
			BorderMuted:  "#1a2d3d",

			GradientBorderActive: []string{"#82aaff", "#21c7a8"},
			GradientBorderNormal: []string{"#394957", "#1a2d3d"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#82aaff"},

			DiffAddFg:    "#22da6e",
			DiffAddBg:    "#063332",
			DiffRemoveFg: "#f05c59",
			DiffRemoveBg: "#25202e",

			ButtonHover:      "#1a2d3d",
			TabTextInactive:  "#6c7a89",
			Link:             "#82aaff",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#f48d8b",
			DangerDark:   "#312431",
			DangerBright: "#f05c59",
			DangerHover:  "#cc4e4c",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#152938",
			ScrollbarThumb: "#394957",

			BlameAge1: "#22da6e",
			BlameAge2: "#21c7a8",
			BlameAge3: "#addb67",
			BlameAge4: "#f05c59",
			BlameAge5: "#8d99a7",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#82aaff", "#21c7a8", "#22da6e", "#addb67", "#c792ea", "#f05c59"},
			AgentColors: map[string]string{
				"claude":      "#addb67",
				"codex":       "#a1acba",
				"grok":        "#d6deeb",
				"antigravity": "#21c7a8",
				"gemini":      "#82aaff",
				"cursor":      "#c792ea",
			},
			LaneWorking: "#22da6e",
			LaneBlocked: "#addb67",
			LaneDone:    "#c792ea",
			LaneIdle:    "#a1acba",
			LanePaused:  "#8d99a7",
		},
	},
	"ayu-mirage": Theme{
		Name:        "ayu-mirage",
		DisplayName: "Ayu Mirage",
		Colors: ColorPalette{
			Primary:   "#6dcbfa",
			Secondary: "#90e1c6",
			Accent:    "#6dcbfa",

			Success: "#87d96c",
			Warning: "#facc6e",
			Error:   "#ed8274",
			Info:    "#90e1c6",

			TextPrimary:   "#cccac2",
			TextSecondary: "#aaaaa8",
			TextMuted:     "#abacac",
			TextSubtle:    "#888a8c",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#1f2430",
			BgSecondary: "#191e27",
			BgTertiary:  "#313641",
			BgOverlay:   "#1f2430cc",
			SelectionBg: "#273747",

			SurfaceRaised: "#3a3e49",
			KeyHintFg:     "#6dcbfa",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#50545e",
			BorderActive: "#6dcbfa",
			BorderMuted:  "#353a45",

			GradientBorderActive: []string{"#6dcbfa", "#90e1c6"},
			GradientBorderNormal: []string{"#50545e", "#353a45"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#6dcbfa"},

			DiffAddFg:    "#87d96c",
			DiffAddBg:    "#2f3f39",
			DiffRemoveFg: "#ed8274",
			DiffRemoveBg: "#3e323a",

			ButtonHover:      "#353a45",
			TabTextInactive:  "#8a8a8c",
			Link:             "#6dcbfa",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#f2a79e",
			DangerDark:   "#48373e",
			DangerBright: "#ed8274",
			DangerHover:  "#c96e63",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#313641",
			ScrollbarThumb: "#50545e",

			BlameAge1: "#87d96c",
			BlameAge2: "#90e1c6",
			BlameAge3: "#facc6e",
			BlameAge4: "#ed8274",
			BlameAge5: "#abacac",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#6dcbfa", "#90e1c6", "#87d96c", "#facc6e", "#dabafa", "#ed8274"},
			AgentColors: map[string]string{
				"claude":      "#facc6e",
				"codex":       "#aaaaa8",
				"grok":        "#cccac2",
				"antigravity": "#90e1c6",
				"gemini":      "#6dcbfa",
				"cursor":      "#dabafa",
			},
			LaneWorking: "#87d96c",
			LaneBlocked: "#facc6e",
			LaneDone:    "#dabafa",
			LaneIdle:    "#aaaaa8",
			LanePaused:  "#abacac",
		},
	},
	"github-dark": Theme{
		Name:        "github-dark",
		DisplayName: "GitHub Dark",
		Colors: ColorPalette{
			Primary:   "#58a6ff",
			Secondary: "#39c5cf",
			Accent:    "#58a6ff",

			Success: "#3fb950",
			Warning: "#d29922",
			Error:   "#ff7b72",
			Info:    "#39c5cf",

			TextPrimary:   "#e6edf3",
			TextSecondary: "#b0b6bc",
			TextMuted:     "#8f959b",
			TextSubtle:    "#767b81",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#0d1117",
			BgSecondary: "#0b0e13",
			BgTertiary:  "#20242a",
			BgOverlay:   "#0d1117cc",
			SelectionBg: "#264f78",

			SurfaceRaised: "#2a2e33",
			KeyHintFg:     "#58a6ff",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#42454a",
			BorderActive: "#58a6ff",
			BorderMuted:  "#25292e",

			GradientBorderActive: []string{"#58a6ff", "#39c5cf"},
			GradientBorderNormal: []string{"#42454a", "#25292e"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#58a6ff"},

			DiffAddFg:    "#3fb950",
			DiffAddBg:    "#142a20",
			DiffRemoveFg: "#ff7b72",
			DiffRemoveBg: "#312125",

			ButtonHover:      "#25292e",
			TabTextInactive:  "#7a7f85",
			Link:             "#58a6ff",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#ffa39c",
			DangerDark:   "#3d2629",
			DangerBright: "#ff7b72",
			DangerHover:  "#d96961",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#20242a",
			ScrollbarThumb: "#42454a",

			BlameAge1: "#3fb950",
			BlameAge2: "#39c5cf",
			BlameAge3: "#d29922",
			BlameAge4: "#ff7b72",
			BlameAge5: "#8f959b",

			SyntaxTheme:   "github-dark",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#58a6ff", "#39c5cf", "#3fb950", "#d29922", "#bc8cff", "#ff7b72"},
			AgentColors: map[string]string{
				"claude":      "#d29922",
				"codex":       "#b0b6bc",
				"grok":        "#e6edf3",
				"antigravity": "#39c5cf",
				"gemini":      "#58a6ff",
				"cursor":      "#bc8cff",
			},
			LaneWorking: "#3fb950",
			LaneBlocked: "#d29922",
			LaneDone:    "#bc8cff",
			LaneIdle:    "#b0b6bc",
			LanePaused:  "#8f959b",
		},
	},
	"synthwave": Theme{
		Name:        "synthwave",
		DisplayName: "Synthwave",
		Colors: ColorPalette{
			Primary:   "#f97137",
			Secondary: "#19cde6",
			Accent:    "#f97137",

			Success: "#1ebb2b",
			Warning: "#fdf834",
			Error:   "#f6188f",
			Info:    "#12c3e2",

			TextPrimary:   "#dad9c7",
			TextSecondary: "#a3a395",
			TextMuted:     "#89887e",
			TextSubtle:    "#6a6a62",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#000000",
			BgSecondary: "#000000",
			BgTertiary:  "#141414",
			BgOverlay:   "#000000cc",
			SelectionBg: "#34294f",

			SurfaceRaised: "#1f1f1f",
			KeyHintFg:     "#f97137",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#383838",
			BorderActive: "#f97137",
			BorderMuted:  "#1a1a1a",

			GradientBorderActive: []string{"#f97137", "#19cde6"},
			GradientBorderNormal: []string{"#383838", "#1a1a1a"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#f97137"},

			DiffAddFg:    "#1ebb2b",
			DiffAddBg:    "#041c06",
			DiffRemoveFg: "#f6188f",
			DiffRemoveBg: "#250415",

			ButtonHover:      "#1a1a1a",
			TabTextInactive:  "#6d6c64",
			Link:             "#f97137",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#ffffff",

			DangerLight:  "#f95db1",
			DangerDark:   "#31051d",
			DangerBright: "#f6188f",
			DangerHover:  "#d1147a",
			TextInverse:  "#ffffff",

			ScrollbarTrack: "#141414",
			ScrollbarThumb: "#383838",

			BlameAge1: "#1ebb2b",
			BlameAge2: "#19cde6",
			BlameAge3: "#fdf834",
			BlameAge4: "#f6188f",
			BlameAge5: "#89887e",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#f97137", "#19cde6", "#1ebb2b", "#fdf834", "#f85a21", "#f6188f"},
			AgentColors: map[string]string{
				"claude":      "#fdf834",
				"codex":       "#a3a395",
				"grok":        "#dad9c7",
				"antigravity": "#19cde6",
				"gemini":      "#f97137",
				"cursor":      "#f85a21",
			},
			LaneWorking: "#1ebb2b",
			LaneBlocked: "#fdf834",
			LaneDone:    "#f85a21",
			LaneIdle:    "#a3a395",
			LanePaused:  "#89887e",
		},
	},
	"cobalt2": Theme{
		Name:        "cobalt2",
		DisplayName: "Cobalt2",
		Colors: ColorPalette{
			Primary:   "#ffe50a",
			Secondary: "#73a0e4",
			Accent:    "#ffe50a",

			Success: "#38de21",
			Warning: "#ffe50a",
			Error:   "#ff7575",
			Info:    "#00bbbb",

			TextPrimary:   "#ffffff",
			TextSecondary: "#c4c9cd",
			TextMuted:     "#a6adb3",
			TextSubtle:    "#848e97",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#132738",
			BgSecondary: "#10202e",
			BgTertiary:  "#263848",
			BgOverlay:   "#132738cc",
			SelectionBg: "#255a8a",

			SurfaceRaised: "#2f4150",
			KeyHintFg:     "#ffe50a",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#475764",
			BorderActive: "#ffe50a",
			BorderMuted:  "#2b3d4c",

			GradientBorderActive: []string{"#ffe50a", "#73a0e4"},
			GradientBorderNormal: []string{"#475764", "#2b3d4c"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#ffe50a"},

			DiffAddFg:    "#38de21",
			DiffAddBg:    "#194235",
			DiffRemoveFg: "#ff7575",
			DiffRemoveBg: "#363341",

			ButtonHover:      "#2b3d4c",
			TabTextInactive:  "#89939c",
			Link:             "#ffe50a",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#ff9e9e",
			DangerDark:   "#423744",
			DangerBright: "#ff7575",
			DangerHover:  "#d96363",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#263848",
			ScrollbarThumb: "#475764",

			BlameAge1: "#38de21",
			BlameAge2: "#73a0e4",
			BlameAge3: "#ffe50a",
			BlameAge4: "#ff7575",
			BlameAge5: "#a6adb3",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#ffe50a", "#73a0e4", "#38de21", "#ffe50a", "#ff6ea3", "#ff7575"},
			AgentColors: map[string]string{
				"claude":      "#ffe50a",
				"codex":       "#c4c9cd",
				"grok":        "#ffffff",
				"antigravity": "#73a0e4",
				"gemini":      "#ffe50a",
				"cursor":      "#ff6ea3",
			},
			LaneWorking: "#38de21",
			LaneBlocked: "#ffe50a",
			LaneDone:    "#ff6ea3",
			LaneIdle:    "#c4c9cd",
			LanePaused:  "#a6adb3",
		},
	},
	"horizon": Theme{
		Name:        "horizon",
		DisplayName: "Horizon",
		Colors: ColorPalette{
			Primary:   "#ed718e",
			Secondary: "#59e1e3",
			Accent:    "#ed718e",

			Success: "#29d398",
			Warning: "#fab795",
			Error:   "#ec6e8b",
			Info:    "#59e1e3",

			TextPrimary:   "#d5d8da",
			TextSecondary: "#a7aaad",
			TextMuted:     "#a0a3a6",
			TextSubtle:    "#84868a",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#1c1e26",
			BgSecondary: "#17191f",
			BgTertiary:  "#2e3037",
			BgOverlay:   "#1c1e26cc",
			SelectionBg: "#3f3a4d",

			SurfaceRaised: "#373940",
			KeyHintFg:     "#f0859e",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#4e5056",
			BorderActive: "#ed718e",
			BorderMuted:  "#33343c",

			GradientBorderActive: []string{"#ed718e", "#59e1e3"},
			GradientBorderNormal: []string{"#4e5056", "#33343c"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#ed718e"},

			DiffAddFg:    "#29d398",
			DiffAddBg:    "#1e3937",
			DiffRemoveFg: "#ec6e8b",
			DiffRemoveBg: "#3b2a35",

			ButtonHover:      "#33343c",
			TabTextInactive:  "#85888c",
			Link:             "#ed718e",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#f29aae",
			DangerDark:   "#462e3a",
			DangerBright: "#ec6e8b",
			DangerHover:  "#c95e76",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#2e3037",
			ScrollbarThumb: "#4e5056",

			BlameAge1: "#29d398",
			BlameAge2: "#59e1e3",
			BlameAge3: "#fab795",
			BlameAge4: "#ec6e8b",
			BlameAge5: "#a0a3a6",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#ed718e", "#59e1e3", "#29d398", "#fab795", "#ef6cb0", "#ec6e8b"},
			AgentColors: map[string]string{
				"claude":      "#fab795",
				"codex":       "#a7aaad",
				"grok":        "#d5d8da",
				"antigravity": "#59e1e3",
				"gemini":      "#ed718e",
				"cursor":      "#ef6cb0",
			},
			LaneWorking: "#29d398",
			LaneBlocked: "#fab795",
			LaneDone:    "#ef6cb0",
			LaneIdle:    "#a7aaad",
			LanePaused:  "#a0a3a6",
		},
	},
	"shades-of-purple": Theme{
		Name:        "shades-of-purple",
		DisplayName: "Shades Of Purple",
		Colors: ColorPalette{
			Primary:   "#ff77ff",
			Secondary: "#79e8fb",
			Accent:    "#ff77ff",

			Success: "#3ad900",
			Warning: "#ffe700",
			Error:   "#e9778b",
			Info:    "#00c5c7",

			TextPrimary:   "#ffffff",
			TextSecondary: "#c7c6cf",
			TextMuted:     "#a5a5b3",
			TextSubtle:    "#838396",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#1e1d40",
			BgSecondary: "#191834",
			BgTertiary:  "#302f4f",
			BgOverlay:   "#1e1d40cc",
			SelectionBg: "#493c8a",

			SurfaceRaised: "#393857",
			KeyHintFg:     "#ff77ff",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#504f6a",
			BorderActive: "#ff77ff",
			BorderMuted:  "#343453",

			GradientBorderActive: []string{"#ff77ff", "#79e8fb"},
			GradientBorderNormal: []string{"#504f6a", "#343453"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#ff77ff"},

			DiffAddFg:    "#3ad900",
			DiffAddBg:    "#223936",
			DiffRemoveFg: "#e9778b",
			DiffRemoveBg: "#3c2a4b",

			ButtonHover:      "#343453",
			TabTextInactive:  "#8e8ea0",
			Link:             "#ff77ff",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#f0a0ae",
			DangerDark:   "#472f4f",
			DangerBright: "#e9778b",
			DangerHover:  "#c66576",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#302f4f",
			ScrollbarThumb: "#504f6a",

			BlameAge1: "#3ad900",
			BlameAge2: "#79e8fb",
			BlameAge3: "#ffe700",
			BlameAge4: "#e9778b",
			BlameAge5: "#a5a5b3",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#ff77ff", "#79e8fb", "#3ad900", "#ffe700", "#ff6496", "#e9778b"},
			AgentColors: map[string]string{
				"claude":      "#ffe700",
				"codex":       "#c7c6cf",
				"grok":        "#ffffff",
				"antigravity": "#79e8fb",
				"gemini":      "#ff77ff",
				"cursor":      "#ff6496",
			},
			LaneWorking: "#3ad900",
			LaneBlocked: "#ffe700",
			LaneDone:    "#ff6496",
			LaneIdle:    "#c7c6cf",
			LanePaused:  "#a5a5b3",
		},
	},
	"spacegray-eighties": Theme{
		Name:        "spacegray-eighties",
		DisplayName: "Spacegray Eighties",
		Colors: ColorPalette{
			Primary:   "#7ba1cf",
			Secondary: "#57c2c1",
			Accent:    "#7ba1cf",

			Success: "#81a764",
			Warning: "#fec254",
			Error:   "#f07d84",
			Info:    "#57c2c1",

			TextPrimary:   "#bdbaae",
			TextSecondary: "#aaa8a0",
			TextMuted:     "#aaaaa5",
			TextSubtle:    "#8a8984",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#222222",
			BgSecondary: "#1c1c1c",
			BgTertiary:  "#343434",
			BgOverlay:   "#222222cc",
			SelectionBg: "#4a4846",

			SurfaceRaised: "#3d3d3d",
			KeyHintFg:     "#88aad3",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#535353",
			BorderActive: "#7ba1cf",
			BorderMuted:  "#383838",

			GradientBorderActive: []string{"#7ba1cf", "#57c2c1"},
			GradientBorderNormal: []string{"#535353", "#383838"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#7ba1cf"},

			DiffAddFg:    "#81a764",
			DiffAddBg:    "#30362c",
			DiffRemoveFg: "#f07d84",
			DiffRemoveBg: "#413031",

			ButtonHover:      "#383838",
			TabTextInactive:  "#8a8984",
			Link:             "#7ba1cf",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#f4a4a9",
			DangerDark:   "#4b3436",
			DangerBright: "#f07d84",
			DangerHover:  "#cc6a70",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#343434",
			ScrollbarThumb: "#535353",

			BlameAge1: "#81a764",
			BlameAge2: "#57c2c1",
			BlameAge3: "#fec254",
			BlameAge4: "#f07d84",
			BlameAge5: "#aaaaa5",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#7ba1cf", "#57c2c1", "#81a764", "#fec254", "#c289c4", "#f07d84"},
			AgentColors: map[string]string{
				"claude":      "#fec254",
				"codex":       "#aaa8a0",
				"grok":        "#bdbaae",
				"antigravity": "#57c2c1",
				"gemini":      "#7ba1cf",
				"cursor":      "#c289c4",
			},
			LaneWorking: "#81a764",
			LaneBlocked: "#fec254",
			LaneDone:    "#c289c4",
			LaneIdle:    "#aaa8a0",
			LanePaused:  "#aaaaa5",
		},
	},
	"zenburn": Theme{
		Name:        "zenburn",
		DisplayName: "Zenburn",
		Colors: ColorPalette{
			Primary:   "#90cbae",
			Secondary: "#f0dfaf",
			Accent:    "#90cbae",

			Success: "#90cbae",
			Warning: "#f0dfaf",
			Error:   "#c9bcbc",
			Info:    "#8cd0d3",

			TextPrimary:   "#dcdccc",
			TextSecondary: "#cbcbc2",
			TextMuted:     "#cdcdc8",
			TextSubtle:    "#a6a6a0",
			TextSelection: "#ffffff",
			TextHighlight: "#ffffff",

			BgPrimary:   "#3f3f3f",
			BgSecondary: "#343434",
			BgTertiary:  "#4e4e4e",
			BgOverlay:   "#3f3f3fcc",
			SelectionBg: "#545454",

			SurfaceRaised: "#565656",
			KeyHintFg:     "#aad6c0",
			OnPrimary:     "#11111b",
			OnWarning:     "#11111b",

			BorderNormal: "#696969",
			BorderActive: "#90cbae",
			BorderMuted:  "#525252",

			GradientBorderActive: []string{"#90cbae", "#f0dfaf"},
			GradientBorderNormal: []string{"#696969", "#525252"},
			GradientBorderAngle:  30.0,

			TabStyle:  "minimal",
			TabColors: []string{"#90cbae"},

			DiffAddFg:    "#9bd0b6",
			DiffAddBg:    "#4b5450",
			DiffRemoveFg: "#cfc2c2",
			DiffRemoveBg: "#545252",

			ButtonHover:      "#525252",
			TabTextInactive:  "#a8a8a1",
			Link:             "#90cbae",
			ToastSuccessText: "#11111b",
			ToastErrorText:   "#11111b",

			DangerLight:  "#d9d0d0",
			DangerDark:   "#5b5858",
			DangerBright: "#c9bcbc",
			DangerHover:  "#aba0a0",
			TextInverse:  "#11111b",

			ScrollbarTrack: "#4e4e4e",
			ScrollbarThumb: "#696969",

			BlameAge1: "#90cbae",
			BlameAge2: "#f0dfaf",
			BlameAge3: "#f0dfaf",
			BlameAge4: "#c9bcbc",
			BlameAge5: "#cdcdc8",

			SyntaxTheme:   "monokai",
			MarkdownTheme: "dark",

			ProjectHues: []string{"#90cbae", "#f0dfaf", "#90cbae", "#f0dfaf", "#e6aed5", "#c9bcbc"},
			AgentColors: map[string]string{
				"claude":      "#f0dfaf",
				"codex":       "#cbcbc2",
				"grok":        "#dcdccc",
				"antigravity": "#f0dfaf",
				"gemini":      "#90cbae",
				"cursor":      "#e6aed5",
			},
			LaneWorking: "#90cbae",
			LaneBlocked: "#f0dfaf",
			LaneDone:    "#e6aed5",
			LaneIdle:    "#cbcbc2",
			LanePaused:  "#cdcdc8",
		},
	},
}
View Source
var PillTabsEnabled = false

PillTabsEnabled enables rounded pill-style tabs (requires Nerd Font)

View Source
var SidecarModernChromaStyle = chroma.MustNewStyle(SidecarModernSyntaxThemeName, chroma.StyleEntries{
	chroma.Background: "bg:#0f1113 #cfd3d6",
	chroma.Text:       "#cfd3d6",

	chroma.Comment:            "#697177",
	chroma.CommentHashbang:    "#697177",
	chroma.CommentMultiline:   "#697177",
	chroma.CommentSingle:      "#697177",
	chroma.CommentSpecial:     "bold #c0982f",
	chroma.CommentPreproc:     "#4a8f8f",
	chroma.CommentPreprocFile: "#7fae86",

	chroma.Keyword:            "#c06c64",
	chroma.KeywordDeclaration: "#c06c64",
	chroma.KeywordNamespace:   "#c06c64",
	chroma.KeywordPseudo:      "#c06c64",
	chroma.KeywordReserved:    "#c06c64",
	chroma.KeywordConstant:    "#c0982f",
	chroma.KeywordType:        "#4a8f8f",

	chroma.NameClass:         "#4a8f8f",
	chroma.NameBuiltin:       "#4a8f8f",
	chroma.NameBuiltinPseudo: "#4a8f8f",
	chroma.NameNamespace:     "#4a8f8f",
	chroma.NameAttribute:     "#4a8f8f",
	chroma.NameVariableClass: "#4a8f8f",

	chroma.NameFunction:      "#c0982f",
	chroma.NameFunctionMagic: "#c0982f",
	chroma.NameDecorator:     "#a57fb9",

	chroma.Name:                  "#cfd3d6",
	chroma.NameVariable:          "#cfd3d6",
	chroma.NameVariableGlobal:    "#cfd3d6",
	chroma.NameVariableInstance:  "#cfd3d6",
	chroma.NameVariableAnonymous: "#cfd3d6",
	chroma.NameVariableMagic:     "#c0982f",
	chroma.NameProperty:          "#cfd3d6",
	chroma.NameOther:             "#cfd3d6",
	chroma.NameConstant:          "#c0982f",
	chroma.NameEntity:            "#c0982f",
	chroma.NameTag:               "#c06c64",
	chroma.NameLabel:             "#c06c64",
	chroma.NameException:         "#c06c64",
	chroma.NameKeyword:           "#c06c64",

	chroma.LiteralString:          "#7fae86",
	chroma.LiteralStringAffix:     "#c06c64",
	chroma.LiteralStringAtom:      "#7fae86",
	chroma.LiteralStringBacktick:  "#7fae86",
	chroma.LiteralStringBoolean:   "#c0982f",
	chroma.LiteralStringChar:      "#7fae86",
	chroma.LiteralStringDelimiter: "#8b9298",
	chroma.LiteralStringDoc:       "#858e95",
	chroma.LiteralStringDouble:    "#7fae86",
	chroma.LiteralStringEscape:    "#4a8f8f",
	chroma.LiteralStringHeredoc:   "#7fae86",
	chroma.LiteralStringInterpol:  "#c0982f",
	chroma.LiteralStringName:      "#7fae86",
	chroma.LiteralStringOther:     "#7fae86",
	chroma.LiteralStringRegex:     "#c97a72",
	chroma.LiteralStringSingle:    "#7fae86",
	chroma.LiteralStringSymbol:    "#c0982f",

	chroma.LiteralNumber:            "#a57fb9",
	chroma.LiteralNumberBin:         "#a57fb9",
	chroma.LiteralNumberFloat:       "#a57fb9",
	chroma.LiteralNumberHex:         "#a57fb9",
	chroma.LiteralNumberInteger:     "#a57fb9",
	chroma.LiteralNumberIntegerLong: "#a57fb9",
	chroma.LiteralNumberOct:         "#a57fb9",
	chroma.LiteralDate:              "#a57fb9",
	chroma.LiteralOther:             "#7fae86",

	chroma.Operator:     "#8b9298",
	chroma.OperatorWord: "#c06c64",
	chroma.Punctuation:  "#8b9298",

	chroma.GenericDeleted:    "#c97a72",
	chroma.GenericEmph:       "italic",
	chroma.GenericError:      "#c06c64",
	chroma.GenericHeading:    "bold #4b8fd6",
	chroma.GenericInserted:   "#7fae86",
	chroma.GenericOutput:     "#8b9298",
	chroma.GenericPrompt:     "#c0982f",
	chroma.GenericStrong:     "bold",
	chroma.GenericSubheading: "bold #4a8f8f",
	chroma.GenericTraceback:  "#c06c64",
	chroma.GenericUnderline:  "underline",
})

SidecarModernChromaStyle defines the syntax highlighting style for the sidecar-modern theme. It uses red for keywords, teal/blue-green (matching the directory names in the files plugin) for types, builtins, and namespaces, gold for function names and constants, sage green for strings, lavender for numbers, and muted neutrals for operators and comments.

View Source
var TabTextActive = lipgloss.NewStyle().
	Foreground(TextPrimary).
	Bold(true)

TabTextActive is the text color for active tabs

View Source
var TabTextInactive = lipgloss.NewStyle().
	Foreground(TabTextInactiveColor)

TabTextInactive is the text color for inactive tabs

View Source
var TabThemePresets = map[string]TabThemePreset{

	"rainbow": {
		Name:        "rainbow",
		DisplayName: "Rainbow",
		Style:       "gradient",
		Colors:      []string{"#DC3C3C", "#3CDC3C", "#3C3CDC", "#9C3CDC"},
	},
	"sunset": {
		Name:        "sunset",
		DisplayName: "Sunset",
		Style:       "gradient",
		Colors:      []string{"#FF6B35", "#F7C59F", "#FF006E"},
	},
	"ocean": {
		Name:        "ocean",
		DisplayName: "Ocean",
		Style:       "gradient",
		Colors:      []string{"#0077B6", "#00B4D8", "#90E0EF"},
	},
	"aurora": {
		Name:        "aurora",
		DisplayName: "Aurora",
		Style:       "gradient",
		Colors:      []string{"#9D4EDD", "#5A189A", "#48BFE3"},
	},
	"neon": {
		Name:        "neon",
		DisplayName: "Neon",
		Style:       "gradient",
		Colors:      []string{"#FF00FF", "#00FFFF", "#00FF00"},
	},
	"fire": {
		Name:        "fire",
		DisplayName: "Fire",
		Style:       "gradient",
		Colors:      []string{"#FF4500", "#FF8C00", "#FFD700"},
	},
	"forest": {
		Name:        "forest",
		DisplayName: "Forest",
		Style:       "gradient",
		Colors:      []string{"#2D5016", "#4C8B2F", "#A8E063"},
	},
	"candy": {
		Name:        "candy",
		DisplayName: "Candy",
		Style:       "gradient",
		Colors:      []string{"#FF69B4", "#9370DB", "#40E0D0"},
	},

	"pastel": {
		Name:        "pastel",
		DisplayName: "Pastel",
		Style:       "per-tab",
		Colors:      []string{"#FFB3BA", "#BAFFC9", "#BAE1FF", "#FFFFBA"},
	},
	"jewel": {
		Name:        "jewel",
		DisplayName: "Jewel Tones",
		Style:       "per-tab",
		Colors:      []string{"#9B2335", "#0F4C81", "#5B5EA6", "#9C6644"},
	},
	"terminal": {
		Name:        "terminal",
		DisplayName: "Terminal",
		Style:       "per-tab",
		Colors:      []string{"#FF5555", "#50FA7B", "#8BE9FD", "#F1FA8C"},
	},

	"mono": {
		Name:        "mono",
		DisplayName: "Monochrome",
		Style:       "solid",
		Colors:      []string{},
	},
	"accent": {
		Name:        "accent",
		DisplayName: "Accent",
		Style:       "solid",
		Colors:      []string{},
	},

	"underline": {
		Name:        "underline",
		DisplayName: "Underline",
		Style:       "minimal",
		Colors:      []string{},
	},
	"dim": {
		Name:        "dim",
		DisplayName: "Dim",
		Style:       "minimal",
		Colors:      []string{},
	},
}

TabThemePresets contains all built-in tab theme presets

Functions

func AdjustSurface added in v0.94.0

func AdjustSurface(bg string, amount float64) string

AdjustSurface derives a chrome surface `amount` away from a background.

The conventional move is to lighten dark backgrounds and darken light ones. On a mid-luminance background that move is actively harmful: it walks the surface across the point where white and black text swap places, so the bar and the surface on top of it want opposite foregrounds and any colour shared between them has to compromise. The test is therefore made against the *base background's* pole, not the surface's own — when the conventional direction erodes that pole, the direction is flipped, which separates the surface just as well while keeping every chrome tone on one side of the crossover.

func AgentChipFill added in v0.94.0

func AgentChipFill() color.Color

AgentChipFill is the background behind an agent chip.

func AgentColor added in v0.94.0

func AgentColor(provider string) color.Color

AgentColor returns the chip foreground for a provider, case-insensitively. Unregistered providers get TextMuted rather than borrowing a hue.

func AgentIcon added in v0.94.0

func AgentIcon(provider string) string

AgentIcon returns the conversations-style glyph for a provider, case- insensitively. Unknown providers return "" so callers can fall back to the bare name.

func AgentLabel added in v0.94.0

func AgentLabel(provider string) string

AgentLabel is icon + space + provider name when an icon is known, otherwise just the provider name. Used for chips and compact agent labels. Provider names are lowercased so every surface shows the same token (matching conversations adapters and the Agent Overview board).

func ApplyTheme

func ApplyTheme(name string)

ApplyTheme applies a theme by name, updating all style variables

func ApplyThemeColors

func ApplyThemeColors(theme Theme)

ApplyThemeColors updates all style package variables from a theme.

IMPORTANT: This function is NOT thread-safe for concurrent reads. It must only be called during initialization, before the TUI starts. The TUI's single-threaded Bubble Tea model ensures safe access after init.

func ApplyThemeWithGenericOverrides

func ApplyThemeWithGenericOverrides(name string, overrides map[string]interface{})

ApplyThemeWithGenericOverrides applies a theme with overrides that may include arrays. This supports gradient array overrides from YAML config.

func ApplyThemeWithOverrides

func ApplyThemeWithOverrides(name string, overrides map[string]string)

ApplyThemeWithOverrides applies a theme with color overrides from config

func BgANSISeqFor

func BgANSISeqFor(bgColor color.Color) string

BgANSISeqFor extracts the raw ANSI escape sequence for the given background color by rendering a marker character and taking everything before it.

func Blend added in v0.94.0

func Blend(c1, c2 string, t float64) string

Blend mixes two hex colours: result = (1-t)*c1 + t*c2. t is clamped to [0,1].

func CheckPaletteContrast added in v0.94.0

func CheckPaletteContrast(p ColorPalette) []string

CheckPaletteContrast reports every requirement a normalized palette misses. Exported for the community converter's own sweep over all schemes.

func ColorDistance added in v0.94.0

func ColorDistance(a, b string) float64

ColorDistance returns euclidean distance in RGB space (0-441.67).

func ContrastRatio added in v0.94.0

func ContrastRatio(fg, bg string) float64

ContrastRatio returns the WCAG 2.0 contrast ratio (1 to 21) between two hex colours.

func CreateTDModalRenderer

func CreateTDModalRenderer() monitor.ModalRenderer

CreateTDModalRenderer creates a ModalRenderer that uses sidecar's gradient borders and fills the entire modal surface (including padding and trailing lines) with the theme surface color. Maps td monitor ModalType and depth values to appropriate gradients from the current theme.

func CreateTDPanelRenderer

func CreateTDPanelRenderer() monitor.PanelRenderer

CreateTDPanelRenderer creates a PanelRenderer that uses sidecar's gradient borders. Maps td monitor PanelState values to appropriate gradients from the current theme.

func Darken added in v0.94.0

func Darken(hex string, pct float64) string

Darken decreases HSL lightness by pct (0-1).

func DeriveSelectionBg added in v1.2.1

func DeriveSelectionBg(seed, canvas, textPrimary string) string

DeriveSelectionBg returns a text-selection highlight that lifts off canvas enough to find, without leaving the canvas ink pole or washing out text. Exported for theme converters that want to build the role themselves rather than leave it to NormalizePalette.

func DeriveSurfaceRaised added in v0.94.0

func DeriveSurfaceRaised(bgPrimary, bgSecondary string) string

DeriveSurfaceRaised returns the neutral raised-chrome surface for a pair of backgrounds. Exported for theme converters that want to build the role themselves rather than leave it to NormalizePalette.

func EnsureContrast added in v0.94.0

func EnsureContrast(fg, bg string, target float64) string

EnsureContrast is EnsureContrastOn against a single background.

func EnsureContrastOn added in v0.94.0

func EnsureContrastOn(fg string, bgs []string, target float64) string

EnsureContrastOn returns a colour that meets target contrast against every background in bgs, staying as close to fg as it can.

It first searches HSL lightness in both directions with hue and saturation held, so an adjusted colour keeps the theme's character. Only when no lightness clears the target — which happens when bgs straddle fg, or the hue simply cannot get bright/dark enough — does it fall back to blending toward the higher-contrast pole, which desaturates. If nothing reaches the target, the best attempt found is returned rather than the original.

func FillBackground

func FillBackground(content string, width int, bgColor color.Color) string

FillBackground ensures each line has a uniform background color. Inner styled elements emit an SGR reset that clears all attributes including the parent container's background, leaving terminal-default black for the remainder of the line. We fix this by re-applying the background ANSI sequence after every reset, then padding short lines with background-colored spaces.

Both reset spellings must be handled: lipgloss v2 emits the implicit-zero form "\x1b[m", while other producers emit "\x1b[0m". Matching only the latter left every run after a nested styled element - most visibly this function's own padding - on the terminal default background, which is what made modals look splotchy.

func FocusHeldOutsidePanes added in v1.2.0

func FocusHeldOutsidePanes() bool

FocusHeldOutsidePanes reports the current signal.

func GetCurrentThemeName

func GetCurrentThemeName() string

GetCurrentThemeName returns the name of the currently active theme

func GetSyntaxTheme

func GetSyntaxTheme() string

GetSyntaxTheme returns the current syntax highlighting theme name

func HSLToHex added in v0.94.0

func HSLToHex(h, s, l float64) string

HSLToHex converts HSL (h: 0-360, s: 0-1, l: 0-1) to a hex colour string.

func HexToHSL added in v0.94.0

func HexToHSL(hex string) (h, s, l float64)

HexToHSL converts a hex colour (#RRGGBB) to HSL (h: 0-360, s: 0-1, l: 0-1).

func HueDegrees added in v0.94.0

func HueDegrees(hex string) float64

HueDegrees returns hue in degrees (0-360).

func IsDarkBackground added in v0.94.0

func IsDarkBackground(hex string) bool

IsDarkBackground reports whether a background is dark enough that foregrounds should be lightened rather than darkened.

func IsValidHexColor

func IsValidHexColor(hex string) bool

IsValidHexColor checks if a string is a valid hex color code (#RRGGBB or #RRGGBBAA)

func IsValidTheme

func IsValidTheme(name string) bool

IsValidTheme checks if a theme name exists in the registry

func LaneColor added in v0.94.0

func LaneColor(lane string) color.Color

LaneColor maps an agentstatus lane id ("working", "blocked", "done", "idle", "paused") to its colour. Unknown ids get TextMuted.

func Lighten added in v0.94.0

func Lighten(hex string, pct float64) string

Lighten increases HSL lightness by pct (0-1).

func ListTabPresets

func ListTabPresets() []string

ListTabPresets returns the names of all available tab presets

func ListThemes

func ListThemes() []string

ListThemes returns the names of all available themes in canonical order

func Luminance added in v0.94.0

func Luminance(hex string) float64

Luminance returns the relative luminance (0-1) of a hex colour.

func MaxContrastPole added in v0.94.0

func MaxContrastPole(bgs []string) string

MaxContrastPole returns whichever of white/black has the better worst-case contrast across bgs. Use this instead of thresholding luminance directly.

func MinContrastRatio added in v0.94.0

func MinContrastRatio(fg string, bgs []string) float64

MinContrastRatio returns the worst contrast ratio of fg across every bg. With no backgrounds it measures against black.

func ProjectHue added in v0.94.0

func ProjectHue(projectKey string) color.Color

ProjectHue returns a stable hue for a project key. The same key always maps to the same ramp entry for a given ramp length, so a project keeps its colour across restarts.

func RGBToHex

func RGBToHex(c RGB) string

RGBToHex converts RGB back to a hex color string.

func RegisterTheme

func RegisterTheme(theme Theme)

RegisterTheme adds a custom theme to the registry

func RenderAgentChip added in v0.94.1

func RenderAgentChip(provider string) string

RenderAgentChip returns the themed agent chip: AgentLabel on AgentColor with AgentChipFill behind it. Empty providers return "". This is the reusable presentation for workspaces, overview, and any other surface that should match the Agent Overview board.

func RenderAgentLabel added in v0.94.1

func RenderAgentLabel(provider string) string

RenderAgentLabel returns AgentLabel in AgentColor without the raised fill. Use on selected rows that already paint a full-width selection background, where a second fill would fight the selection.

func RenderGradientBorder

func RenderGradientBorder(content string, width, height int, gradient Gradient, padding int) string

RenderGradientBorder renders content inside a box with gradient-colored borders. The gradient flows at the specified angle (typically 30 degrees). width and height are the outer dimensions including borders.

func RenderGradientBorderWithBg added in v1.0.3

func RenderGradientBorderWithBg(content string, width, height int, gradient Gradient, padding int, bg string) string

RenderGradientBorderWithBg renders content inside a box with gradient-colored borders and fills the inner box area (padding, short lines, empty trailing lines) with the given background color (or unstyled when bg is empty).

func RenderGradientTab

func RenderGradientTab(label string, tabIndex, totalTabs int, isActive bool) string

RenderGradientTab renders a tab label with a gradient background. Kept for backwards compatibility - delegates to RenderTab.

func RenderPanel

func RenderPanel(content string, width, height int, active bool) string

RenderPanel renders content in a panel with gradient borders. This is the main function plugins should use for bordered panels. active determines whether to use active (focused) or normal gradient. width and height are the outer dimensions including borders. A focused border is downgraded to the normal one while an app-level surface outside every pane holds the keyboard, so exactly one pane ever reads as focused — see focus.go.

func RenderPanelWithGradient

func RenderPanelWithGradient(content string, width, height int, gradient Gradient) string

RenderPanelWithGradient renders content in a panel with a custom gradient. Useful for modals or special cases that need different gradient colors.

The custom gradients in use are all focus or attention chrome on a pane (interactive input, the attention flash), so this obeys the same exactly-one-focused-pane rule as RenderPanel: while focus is held outside the panes the pane draws its normal border. Overlay chrome — modals, toasts, the centre panel — is rendered while that signal is clear and is unaffected.

func RenderPill

func RenderPill(text string, fg, bg, outerBg color.Color) string

RenderPill renders text with pill-shaped caps when NerdFontsEnabled (PillTabsEnabled) is true. fg is the text color, bg is the pill background, outerBg is the surrounding background. If outerBg is empty, defaults to BgSecondary.

func RenderPillWithStyle

func RenderPillWithStyle(text string, style lipgloss.Style, outerBg color.Color) string

RenderPillWithStyle renders text with pill-shaped caps using the provided lipgloss.Style. The style's background color is used for the pill caps. outerBg is the surrounding background; if empty, defaults to BgSecondary.

func RenderTab

func RenderTab(label string, tabIndex, totalTabs int, isActive bool, isPreview bool) string

RenderTab renders a tab label using the current tab theme. tabIndex is the 0-based index of this tab, totalTabs is the total count. If isPreview is true, the label is rendered in italic to indicate an ephemeral preview tab.

func Saturation added in v0.94.0

func Saturation(hex string) float64

Saturation returns the HSL saturation (0-1) of a hex colour.

func SetFocusHeldOutsidePanes added in v1.2.0

func SetFocusHeldOutsidePanes(held bool)

SetFocusHeldOutsidePanes tells the renderer that an app-level surface outside every pane owns the keyboard. The shell sets it before it renders the content region and clears it after, so it describes the frame being drawn rather than a mode the app is in.

Types

type ColorPalette

type ColorPalette struct {
	// Brand colors
	Primary   string `json:"primary"`
	Secondary string `json:"secondary"`
	Accent    string `json:"accent"`

	// Status colors
	Success string `json:"success"`
	Warning string `json:"warning"`
	Error   string `json:"error"`
	Info    string `json:"info"`

	// Text colors
	TextPrimary   string `json:"textPrimary"`
	TextSecondary string `json:"textSecondary"`
	TextMuted     string `json:"textMuted"`
	TextSubtle    string `json:"textSubtle"`
	TextSelection string `json:"textSelection"` // Text on selected-row fills (BgTertiary)

	// Background colors
	BgPrimary   string `json:"bgPrimary"`
	BgSecondary string `json:"bgSecondary"`
	BgTertiary  string `json:"bgTertiary"`
	BgOverlay   string `json:"bgOverlay"`

	// SelectionBg is the highlight painted over selected text. Distinct from
	// BgTertiary, which is the selected-row fill and is often too close to the
	// canvas to read as a span highlight. Empty, inverted, or too-dim values
	// are lifted by NormalizePalette toward TargetSelectionSeparation against BgPrimary,
	// staying on the canvas ink pole so selected body text does not invert.
	SelectionBg string `json:"selectionBg"`

	// SurfaceRaised backs small chrome that sits on top of a bar — key hint
	// pills, palette keys, bar chips. Derived from BgPrimary by
	// NormalizePalette when empty; deliberately not BgTertiary, whose value
	// comes from a terminal scheme's selection colour and can be any hue.
	SurfaceRaised string `json:"surfaceRaised"`

	// KeyHintFg is the shortcut key text drawn on SurfaceRaised.
	KeyHintFg string `json:"keyHintFg"`

	// OnPrimary is foreground text drawn on a Primary-coloured fill
	// (focused rows, active chips, the current search match).
	OnPrimary string `json:"onPrimary"`

	// OnWarning is foreground text drawn on a Warning-coloured fill
	// (search match highlights).
	OnWarning string `json:"onWarning"`

	// Border colors
	BorderNormal string `json:"borderNormal"`
	BorderActive string `json:"borderActive"`
	BorderMuted  string `json:"borderMuted"`

	// Gradient border colors (for angled gradient borders on panels)
	GradientBorderActive []string `json:"gradientBorderActive"` // Colors for active panel gradient
	GradientBorderNormal []string `json:"gradientBorderNormal"` // Colors for inactive panel gradient
	GradientBorderAngle  float64  `json:"gradientBorderAngle"`  // Angle in degrees (default: 30)

	// Tab theme configuration
	TabStyle  string   `json:"tabStyle"`  // "gradient", "per-tab", "solid", "minimal", or preset name
	TabColors []string `json:"tabColors"` // Color stops for gradient OR per-tab colors

	// Diff colors
	DiffAddFg    string `json:"diffAddFg"`
	DiffAddBg    string `json:"diffAddBg"`
	DiffRemoveFg string `json:"diffRemoveFg"`
	DiffRemoveBg string `json:"diffRemoveBg"`

	// Additional UI colors
	TextHighlight    string `json:"textHighlight"`    // For subtitle, special text
	ButtonHover      string `json:"buttonHover"`      // Button hover state
	TabTextInactive  string `json:"tabTextInactive"`  // Inactive tab text
	Link             string `json:"link"`             // Hyperlink color
	ToastSuccessText string `json:"toastSuccessText"` // Toast success foreground
	ToastErrorText   string `json:"toastErrorText"`   // Toast error foreground

	// Danger button colors (for destructive action buttons)
	DangerLight  string `json:"dangerLight"`  // Light red for danger button text
	DangerDark   string `json:"dangerDark"`   // Dark red for danger button background
	DangerBright string `json:"dangerBright"` // Bright red for focused danger button bg
	DangerHover  string `json:"dangerHover"`  // Darker red for hover danger button bg
	TextInverse  string `json:"textInverse"`  // Inverse text (white on dark themes)

	// Scrollbar colors
	ScrollbarTrack string `json:"scrollbarTrack"` // Track color (default: TextSubtle)
	ScrollbarThumb string `json:"scrollbarThumb"` // Thumb color (default: TextMuted)

	// Blame age gradient colors (newest → oldest)
	BlameAge1 string `json:"blameAge1"` // < 1 week (light green)
	BlameAge2 string `json:"blameAge2"` // < 1 month (lime)
	BlameAge3 string `json:"blameAge3"` // < 3 months (amber)
	BlameAge4 string `json:"blameAge4"` // < 6 months (orange)
	BlameAge5 string `json:"blameAge5"` // < 1 year (gray)

	// Third-party theme names
	SyntaxTheme   string `json:"syntaxTheme"`   // Chroma theme name
	MarkdownTheme string `json:"markdownTheme"` // Glamour theme name

	// Overview board colours
	ProjectHues []string          `json:"projectHues"` // ordered ramp, cycled by project
	AgentColors map[string]string `json:"agentColors"` // provider name (lowercase) -> hex
	LaneWorking string            `json:"laneWorking"`
	LaneBlocked string            `json:"laneBlocked"`
	LaneDone    string            `json:"laneDone"`
	LaneIdle    string            `json:"laneIdle"`
	LanePaused  string            `json:"lanePaused"`
}

ColorPalette holds all theme colors

func NormalizePalette added in v0.94.0

func NormalizePalette(c ColorPalette) ColorPalette

NormalizePalette enforces the contrast guarantees the UI relies on and fills in the derived roles (SurfaceRaised, SelectionBg, KeyHintFg, OnPrimary).

It runs on every palette on its way into the style system — built-in themes, community conversions, and user overrides alike — because contrast is a property of the finished palette, not of any one source of colours. Colours that already clear their target are returned untouched, so a well-authored theme passes through unchanged.

type Gradient

type Gradient struct {
	Stops []GradientStop
	Angle float64 // degrees (0 = horizontal left-to-right, 90 = vertical top-to-bottom)
}

Gradient defines a multi-stop color gradient with angle support.

func GetActiveGradient

func GetActiveGradient() Gradient

GetActiveGradient returns the gradient for active (focused) panels from current theme.

func GetFlashGradient

func GetFlashGradient() Gradient

GetFlashGradient returns a warning-colored gradient for flash effects.

func GetInteractiveGradient

func GetInteractiveGradient() Gradient

GetInteractiveGradient returns a gradient for interactive mode borders (td-70aed9). Uses warning/success colors to indicate the pane is receiving keyboard input.

func GetNormalGradient

func GetNormalGradient() Gradient

GetNormalGradient returns the gradient for inactive panels from current theme.

func NewGradient

func NewGradient(hexColors []string, angle float64) Gradient

NewGradient creates a gradient from a slice of hex color strings. Colors are evenly distributed from position 0.0 to 1.0.

func (*Gradient) ColorAt

func (g *Gradient) ColorAt(t float64) RGB

ColorAt returns the interpolated color at position t (0.0 to 1.0).

func (*Gradient) IsValid

func (g *Gradient) IsValid() bool

IsValid returns true if the gradient has at least 2 color stops.

func (*Gradient) PositionAt

func (g *Gradient) PositionAt(x, y, width, height int) float64

PositionAt calculates the gradient position for a coordinate given the angle. For a 30-degree angle, the gradient flows diagonally from top-left to bottom-right. Returns a value in range [0, 1].

type GradientStop

type GradientStop struct {
	Position float64
	Color    RGB
}

GradientStop defines a color at a position (0.0 to 1.0)

type RGB

type RGB struct {
	R, G, B float64
}

RGB represents a color in RGB space for interpolation.

func HexToRGB

func HexToRGB(hex string) RGB

HexToRGB converts a hex color string (#RRGGBB or #RRGGBBAA) to RGB.

func LerpRGB

func LerpRGB(c1, c2 RGB, t float64) RGB

LerpRGB linearly interpolates between two colors. t should be in range [0, 1] where 0 = c1 and 1 = c2.

func (RGB) ToANSI

func (c RGB) ToANSI() string

ToANSI returns raw ANSI escape code for foreground color.

func (RGB) ToANSIBg added in v1.0.3

func (c RGB) ToANSIBg() string

ToANSIBg returns raw ANSI escape code for background color.

type TabThemePreset

type TabThemePreset struct {
	Name        string   // Internal name (e.g., "sunset")
	DisplayName string   // Display name (e.g., "Sunset")
	Style       string   // "gradient", "per-tab", "solid", "minimal"
	Colors      []string // Hex colors for gradient stops or per-tab colors
}

TabThemePreset defines a named tab color scheme

func GetTabPreset

func GetTabPreset(name string) *TabThemePreset

GetTabPreset returns a tab theme preset by name, or nil if not found

type Theme

type Theme struct {
	Name        string       `json:"name"`
	DisplayName string       `json:"displayName"`
	Colors      ColorPalette `json:"colors"`
}

Theme represents a complete theme configuration

func GetCurrentTheme

func GetCurrentTheme() Theme

GetCurrentTheme returns the currently active theme

func GetTheme

func GetTheme(name string) Theme

GetTheme returns a theme by name, or the default theme if not found

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL