Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Primary brand color Primary = lipgloss.AdaptiveColor{Light: "#4169e1", Dark: "#6e8dfc"} // Secondary accent color Secondary = lipgloss.AdaptiveColor{Light: "#86ab69", Dark: "#93c770"} // General Background Background = lipgloss.AdaptiveColor{Light: "#f5f5f5", Dark: "#171717"} // General Foreground text Foreground = lipgloss.AdaptiveColor{Light: "#0f1729", Dark: "#ffffff"} // Muted background/borders Muted = lipgloss.AdaptiveColor{Light: "#ebebeb", Dark: "#0f0f0f"} // Muted foreground text (e.g. descriptions, secondary info) MutedForeground = lipgloss.AdaptiveColor{Light: "#65758b", Dark: "#b3b3b3"} // Destructive/Error color Destructive = lipgloss.AdaptiveColor{Light: "#ef4444", Dark: "#7f1d1d"} )
Color tokens based on gv-tech design system.
View Source
var ( // BaseText is the default text style BaseText = lipgloss.NewStyle().Foreground(Foreground) // MutedText is used for secondary information MutedText = lipgloss.NewStyle().Foreground(MutedForeground) // BoldText highlights text in the default foreground BoldText = BaseText.Bold(true) // PrimaryText is text colored in the primary brand color PrimaryText = lipgloss.NewStyle().Foreground(Primary) // SuccessText is text colored in the secondary/success color SuccessText = lipgloss.NewStyle().Foreground(Secondary) // ErrorText is text colored in the destructive color ErrorText = lipgloss.NewStyle().Foreground(Destructive).Bold(true) // InfoBox is a generic callout box with a primary border InfoBox = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(Primary). Padding(0, 1). MarginBottom(1) // SuccessBanner is a highlighted block for success messages SuccessBanner = lipgloss.NewStyle(). Background(Secondary). Foreground(Background). Bold(true). Padding(0, 1). MarginRight(1) // WarningBanner is a highlighted block for warnings WarningBanner = lipgloss.NewStyle(). Background(lipgloss.AdaptiveColor{Light: "#f59e0b", Dark: "#d97706"}). Foreground(Background). Bold(true). Padding(0, 1). MarginRight(1) // ErrorBanner is a highlighted block for critical errors ErrorBanner = lipgloss.NewStyle(). Background(Destructive). Foreground(Background). Bold(true). Padding(0, 1). MarginRight(1) )
Functions ¶
func EngTheme ¶
EngTheme returns a custom theme for huh forms based on the eng CLI brand colors. It uses the gv-tech token palette for light and dark modes.
func InfoMessage ¶
func InfoMessage(msg string)
InfoMessage prints a formatted informational message.
func SuccessMessage ¶
func SuccessMessage(msg string)
SuccessMessage prints a formatted success message.
func WarningMessage ¶
func WarningMessage(msg string)
WarningMessage prints a formatted warning message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.