Skip to content

[plan] Replace hardcoded lipgloss colors in progress.go with adaptive style constants #22097

@github-actions

Description

@github-actions

Objective

Replace hardcoded lipgloss.Color("#...") hex strings in pkg/console/progress.go with the centralized adaptive color constants from pkg/styles/theme.go.

Context

Source: discussion #22035 — Terminal Stylist console output audit.

The progress bar currently uses hardcoded Dracula dark-palette hex colors that won't adapt for light-background terminals, breaking the adaptive color contract established throughout the rest of the codebase.

// Current (pkg/console/progress.go ~line 54, 60):
progress.WithColors(lipgloss.Color("#BD93F9"), lipgloss.Color("#8BE9FD"))
prog.EmptyColor = lipgloss.Color("#6272A4")

Approach

  1. Open pkg/console/progress.go
  2. Replace lipgloss.Color("#BD93F9") with lipgloss.Color(styles.ColorPurple) (or the appropriate adaptive constant)
  3. Replace lipgloss.Color("#8BE9FD") with lipgloss.Color(styles.ColorInfo)
  4. Replace lipgloss.Color("#6272A4") with lipgloss.Color(styles.ColorComment)
  5. Verify the styles package is imported (it may already be)

Check pkg/styles/theme.go for the exact exported names of ColorPurple, ColorInfo, ColorComment (they are defined as compat.AdaptiveColor values).

Files to Modify

  • pkg/console/progress.go — replace 3 hardcoded hex color values

Acceptance Criteria

  • No hardcoded lipgloss.Color("#...") strings remain in progress.go
  • Colors reference adaptive constants from pkg/styles/
  • make build passes
  • make lint passes
  • make fmt passes

Generated by Plan Command for issue #discussion #22035 ·

  • expires on Mar 23, 2026, 5:17 AM UTC

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions