Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Title, Success, Error, Faint, Separator lipgloss.Style
SQLKeyword, SQLString, SearchMatch lipgloss.Style
TableSelected, TableHeader, TableCell, TableBorder lipgloss.Style
TableCopiedBlink, TableUpdated, TableDeleted lipgloss.Style
TableName, PrimaryKeyLabel lipgloss.Style
BelongsToStyle, HasManyStyle, HasOneStyle, HasManyToManyStyle, CardinalityStyle, TreeConnector lipgloss.Style
)
Style variables used throughout the application
View Source
var ( // DefaultScheme - Original magenta/cyan theme DefaultScheme = ColorScheme{ Primary: "205", Success: "171", Error: "196", Normal: "252", Muted: "238", Highlight: "62", Accent: "86", } // DraculaScheme - Popular dark theme DraculaScheme = ColorScheme{ Primary: "141", Success: "48", Error: "203", Normal: "15", Muted: "59", Highlight: "237", Accent: "117", } // GruvboxDarkScheme - Warm retro colors GruvboxDarkScheme = ColorScheme{ Primary: "214", Success: "142", Error: "203", Normal: "223", Muted: "244", Highlight: "237", Accent: "223", } // SolarizedDarkScheme - Precision contrast SolarizedDarkScheme = ColorScheme{ Primary: "33", Success: "106", Error: "203", Normal: "15", Muted: "244", Highlight: "235", Accent: "220", } // NordScheme - Arctic, bluish NordScheme = ColorScheme{ Primary: "68", Success: "150", Error: "203", Normal: "15", Muted: "244", Highlight: "236", Accent: "109", } // MonokaiScheme - Classic vibrant MonokaiScheme = ColorScheme{ Primary: "141", Success: "77", Error: "203", Normal: "188", Muted: "59", Highlight: "237", Accent: "81", } // BlackMetalScheme - Dark, minimal BlackMetalScheme = ColorScheme{ Primary: "210", Success: "210", Error: "73", Normal: "189", Muted: "240", Highlight: "210", Accent: "144", } // BlackMetalGorgorothScheme - Dark metal variant BlackMetalGorgorothScheme = ColorScheme{ Primary: "180", Success: "180", Error: "73", Normal: "189", Muted: "240", Highlight: "180", Accent: "144", } // VesperScheme - Clean dark theme VesperScheme = ColorScheme{ Primary: "109", Success: "73", Error: "167", Normal: "145", Muted: "240", Highlight: "235", Accent: "73", } // CatppuccinMochaScheme - Modern pastel theme CatppuccinMochaScheme = ColorScheme{ Primary: "117", Success: "158", Error: "210", Normal: "189", Muted: "146", Highlight: "59", Accent: "151", } // TokyoNightScheme - Professional dark theme TokyoNightScheme = ColorScheme{ Primary: "74", Success: "149", Error: "210", Normal: "146", Muted: "147", Highlight: "23", Accent: "153", } // RosePineScheme - Soft purple/pink RosePineScheme = ColorScheme{ Primary: "182", Success: "31", Error: "168", Normal: "188", Muted: "97", Highlight: "54", Accent: "152", } // TerracottaScheme - Light earth tones TerracottaScheme = ColorScheme{ Primary: "97", Success: "107", Error: "131", Normal: "59", Muted: "138", Highlight: "181", Accent: "103", } )
Built-in color schemes
Functions ¶
func InitScheme ¶
func InitScheme(schemeName string, custom *ColorScheme)
InitScheme initializes the color scheme from config
Types ¶
type ColorScheme ¶
type ColorScheme struct {
Primary string `yaml:"primary"` // Titles, headers, emphasis
Success string `yaml:"success"` // Success messages
Error string `yaml:"error"` // Error messages
Normal string `yaml:"normal"` // Normal text, table data cells
Muted string `yaml:"muted"` // Borders, separators, help text
Highlight string `yaml:"highlight"` // Selected backgrounds, search match bg
Accent string `yaml:"accent"` // Keywords, strings, relationships, accents
}
ColorScheme defines all colors used throughout the application
var ActiveScheme ColorScheme
Click to show internal directories.
Click to hide internal directories.