diff --git a/cmd/ai/ai.go b/cmd/ai/ai.go index d76d929..1679312 100644 --- a/cmd/ai/ai.go +++ b/cmd/ai/ai.go @@ -3,7 +3,6 @@ package ai import ( - "github.com/charmbracelet/lipgloss" "github.com/host-uk/core/cmd/shared" "github.com/spf13/cobra" ) @@ -28,17 +27,11 @@ var ( taskStatusBlockedStyle = shared.StatusErrorStyle ) -// Task-specific styles (unique to task display) +// Task-specific styles (aliases to shared where possible) var ( - taskIDStyle = lipgloss.NewStyle(). - Bold(true). - Foreground(shared.ColourBlue500) - - taskTitleStyle = lipgloss.NewStyle(). - Foreground(shared.ColourGray200) - - taskLabelStyle = lipgloss.NewStyle(). - Foreground(shared.ColourViolet400) + taskIDStyle = shared.TitleStyle // Bold + blue + taskTitleStyle = shared.ValueStyle // Light gray + taskLabelStyle = shared.AccentLabelStyle // Violet for labels ) // AddAgenticCommands adds the agentic task management commands to the ai command. diff --git a/cmd/php/php.go b/cmd/php/php.go index a2a0231..6b3913d 100644 --- a/cmd/php/php.go +++ b/cmd/php/php.go @@ -36,7 +36,7 @@ var ( phpQAPassedStyle = shared.SuccessStyle phpQAFailedStyle = shared.ErrorStyle phpQAWarningStyle = shared.WarningStyle - phpQAStageStyle = lipgloss.NewStyle().Bold(true).Foreground(shared.ColourIndigo500) + phpQAStageStyle = shared.StageStyle ) // Security severity styles (from shared) diff --git a/cmd/setup/setup_wizard.go b/cmd/setup/setup_wizard.go index 9c6e14b..abe39e0 100644 --- a/cmd/setup/setup_wizard.go +++ b/cmd/setup/setup_wizard.go @@ -12,7 +12,7 @@ import ( "strings" "github.com/charmbracelet/huh" - "github.com/charmbracelet/lipgloss" + "github.com/host-uk/core/cmd/shared" "github.com/host-uk/core/pkg/repos" "golang.org/x/term" ) @@ -156,10 +156,7 @@ func runPackageWizard(reg *repos.Registry, preselectedTypes []string) ([]string, var selected []string // Header styling - headerStyle := lipgloss.NewStyle(). - Bold(true). - Foreground(lipgloss.Color("#3b82f6")). - MarginBottom(1) + headerStyle := shared.TitleStyle.MarginBottom(1) fmt.Println(headerStyle.Render("Package Selection")) fmt.Println("Use space to select/deselect, enter to confirm") diff --git a/cmd/shared/styles.go b/cmd/shared/styles.go index 2ac654b..a804c00 100644 --- a/cmd/shared/styles.go +++ b/cmd/shared/styles.go @@ -177,6 +177,15 @@ var ( PrNumberStyle = lipgloss.NewStyle(). Bold(true). Foreground(ColourPurple500) + + // AccentLabelStyle for highlighted labels (violet). + AccentLabelStyle = lipgloss.NewStyle(). + Foreground(ColourViolet400) + + // StageStyle for pipeline/QA stage headers (indigo, bold). + StageStyle = lipgloss.NewStyle(). + Bold(true). + Foreground(ColourIndigo500) ) // ─────────────────────────────────────────────────────────────────────────────