diff --git a/examples/color/bubbletea/main.go b/examples/color/bubbletea/main.go index 78f156ee..9c85452b 100644 --- a/examples/color/bubbletea/main.go +++ b/examples/color/bubbletea/main.go @@ -51,15 +51,15 @@ func newStyles(backgroundIsDark bool) (s *styles) { s.activeButton = lipgloss.NewStyle(). Padding(0, 3). - Background(lipgloss.Color("0xFF6AD2")). // you can also use octal format for colors, i.e 0xff38ec. - Foreground(lipgloss.Color("0xFFFCC2")) + Background(lipgloss.Color("#FF6AD2")). + Foreground(lipgloss.Color("#FFFCC2")) s.inactiveButton = s.activeButton. Background(lightDark( - lipgloss.Color("0x988F95"), - lipgloss.Color("0x978692"))). + lipgloss.Color("#988F95"), + lipgloss.Color("#978692"))). Foreground(lightDark( - lipgloss.Color("0xFDFCE3"), - lipgloss.Color("0xFBFAE7"))) + lipgloss.Color("#FDFCE3"), + lipgloss.Color("#FBFAE7"))) return s } diff --git a/examples/color/standalone/main.go b/examples/color/standalone/main.go index 92b3a2cf..b1d172fd 100644 --- a/examples/color/standalone/main.go +++ b/examples/color/standalone/main.go @@ -42,11 +42,11 @@ func main() { activeButton := lipgloss.NewStyle(). Padding(0, 3). - Background(lipgloss.Color("0xFF6AD2")). // you can also use octal format for colors, i.e 0xff38ec. - Foreground(lipgloss.Color("0xFFFCC2")) + Background(lipgloss.Color("#FF6AD2")). + Foreground(lipgloss.Color("#FFFCC2")) inactiveButton := activeButton. - Background(lightDark(lipgloss.Color("0x988F95"), lipgloss.Color("0x978692"))). - Foreground(lightDark(lipgloss.Color("0xFDFCE3"), lipgloss.Color("0xFBFAE7"))) + Background(lightDark(lipgloss.Color("#988F95"), lipgloss.Color("#978692"))). + Foreground(lightDark(lipgloss.Color("#FDFCE3"), lipgloss.Color("#FBFAE7"))) // Build layout. text := paragraphStyle.Render( diff --git a/examples/compat/bubbletea/main.go b/examples/compat/bubbletea/main.go index a7e95bf2..1dc8d75e 100644 --- a/examples/compat/bubbletea/main.go +++ b/examples/compat/bubbletea/main.go @@ -13,8 +13,8 @@ var ( frameColor = compat.AdaptiveColor{Light: lipgloss.Color("#C5ADF9"), Dark: lipgloss.Color("#864EFF")} textColor = compat.AdaptiveColor{Light: lipgloss.Color("#696969"), Dark: lipgloss.Color("#bdbdbd")} keywordColor = compat.AdaptiveColor{Light: lipgloss.Color("#37CD96"), Dark: lipgloss.Color("#22C78A")} - inactiveBgColor = compat.AdaptiveColor{Light: lipgloss.Color("0x988F95"), Dark: lipgloss.Color("0x978692")} - inactiveFgColor = compat.AdaptiveColor{Light: lipgloss.Color("0xFDFCE3"), Dark: lipgloss.Color("0xFBFAE7")} + inactiveBgColor = compat.AdaptiveColor{Light: lipgloss.Color("#988F95"), Dark: lipgloss.Color("#978692")} + inactiveFgColor = compat.AdaptiveColor{Light: lipgloss.Color("#FDFCE3"), Dark: lipgloss.Color("#FBFAE7")} ) // Style definitions. @@ -48,8 +48,8 @@ func newStyles() (s styles) { s.activeButton = lipgloss.NewStyle(). Padding(0, 3). - Background(lipgloss.Color("0xFF6AD2")). // you can also use octal format for colors, i.e 0xff38ec. - Foreground(lipgloss.Color("0xFFFCC2")) + Background(lipgloss.Color("#FF6AD2")). + Foreground(lipgloss.Color("#FFFCC2")) s.inactiveButton = s.activeButton. Background(inactiveBgColor). Foreground(inactiveFgColor) diff --git a/examples/compat/standalone/main.go b/examples/compat/standalone/main.go index 886919a4..538dc241 100644 --- a/examples/compat/standalone/main.go +++ b/examples/compat/standalone/main.go @@ -15,8 +15,8 @@ var ( frameColor = compat.AdaptiveColor{Light: lipgloss.Color("#C5ADF9"), Dark: lipgloss.Color("#864EFF")} textColor = compat.AdaptiveColor{Light: lipgloss.Color("#696969"), Dark: lipgloss.Color("#bdbdbd")} keywordColor = compat.AdaptiveColor{Light: lipgloss.Color("#37CD96"), Dark: lipgloss.Color("#22C78A")} - inactiveBgColor = compat.AdaptiveColor{Light: lipgloss.Color("0x988F95"), Dark: lipgloss.Color("0x978692")} - inactiveFgColor = compat.AdaptiveColor{Light: lipgloss.Color("0xFDFCE3"), Dark: lipgloss.Color("0xFBFAE7")} + inactiveBgColor = compat.AdaptiveColor{Light: lipgloss.Color("#988F95"), Dark: lipgloss.Color("#978692")} + inactiveFgColor = compat.AdaptiveColor{Light: lipgloss.Color("#FDFCE3"), Dark: lipgloss.Color("#FBFAE7")} ) func main() { @@ -39,8 +39,8 @@ func main() { activeButton := lipgloss.NewStyle(). Padding(0, 3). - Background(lipgloss.Color("0xFF6AD2")). // you can also use octal format for colors, i.e 0xff38ec. - Foreground(lipgloss.Color("0xFFFCC2")) + Background(lipgloss.Color("#FF6AD2")). + Foreground(lipgloss.Color("#FFFCC2")) inactiveButton := activeButton. Background(inactiveBgColor). Foreground(inactiveFgColor)