The new behavior of lipgloss.Color taking any type is ambiguous and can lead to unexpected results. This commit restores the original behavior of lipgloss.Color taking a hex string or an int string, and returning a color.Color.
To use a 4-bit color, use lipgloss.Red, lipgloss.Blue, etc. To use a 16-bit color, use lipgloss.ANSIColor. To use a 24-bit color, use lipgloss.Color, lipgloss.RGBColor, or any other color.Color value.
The new behavior of
lipgloss.Color
takingany
type is ambiguous and can lead to unexpected results. This commit restores the original behavior oflipgloss.Color
taking a hex string or an int string, and returning a color.Color.To use a 4-bit color, use
lipgloss.Red
,lipgloss.Blue
, etc. To use a 16-bit color, uselipgloss.ANSIColor
. To use a 24-bit color, uselipgloss.Color
,lipgloss.RGBColor
, or any othercolor.Color
value.Fixes: https://github.com/charmbracelet/lipgloss/pull/437