v2.0.0-beta.1
Pre-release
Pre-release
·
6 commits
to master
since this release
Who said a beta release can’t be exciting?
We're thrilled to announce the first beta release of Lip Gloss v2! This release builds on top of the last alpha 2 release. Very little has changed since the last alpha, which means we’re getting closer to a proper v2.0.0
.
The only change here is that you can no longer use hexadecimal and integer format when defining colors. We found there were just to many gotchas and this way the API remains backwards compatible.
// Before in alpha 2
// This is a bug! It's not intuitive to use integers here.
// Should this be a hex color or ANSI(204)?
a := lipgloss.Color(0x0000cc) // 0xcc is 204, which was interpreted as an ANSI color, not #0000cc
// After
a := lipgloss.Color("#0000cc") // This is a hex color
b := lipgloss.Color("204") // This is an ANSI color
c := lipgloss.ANSIColor(204) // Equivalent to b
🌈 More on Lip Gloss v2
Just getting into Lip Gloss v2? Check out the full v2 release notes and upgrade guide.
💝 How’s it going?
Feel free to reach out, ask questions, give feedback, and let us know how it's going. We’d love to know what you think.
Part of Charm.
Charm热爱开源 • Charm loves open source • نحنُ نحب المصادر المفتوحة