github charmbracelet/lipgloss v0.3.0

latest releases: v0.13.0, v0.12.1, v0.12.0...
3 years ago

Utility Functions

This release adds two utility functions to the Lip Gloss tool belt:

  1. StyleRunes can apply styling to runes at specific indices in a string, perfect for highlighting matched characters in a fuzzy search result, marking a hotkey on a button and so on.

  2. SetColorProfile sets the color profile on a package-wide basis, which is very useful in testing. Note that outside of testing you probably don’t want to set the color profile as the best available option will be automatically chosen.

Changelog

New

  • StyleRunes: applying styling to specific runes in a string
  • SetColorProfile: set the color profile on a package-wide context

Changed


Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse or right here in GitHub Discussions.

The Charm logo

Don't miss a new lipgloss release

NewReleases is sending notifications on new releases.