lipgloss
lipgloss
Lipgloss is a terminal styling library with a fluent API for borders, padding, margins, alignment, and layout helpers. This is a Crystal port of the Charm lipgloss ecosystem.
Installation
- Add the dependency to your
shard.yml:
dependencies:
lipgloss:
github: dsisnero/lipgloss
- Run
shards install
Usage
require "lipgloss"
style = Lipgloss::Style.new .foreground(Lipgloss::Color::CYAN) .border(Lipgloss::Border.rounded) .padding(1, 2)
puts style.render("Hello")
Development
Run the specs from this directory:
CRYSTAL_CACHE_DIR=$PWD/.crystal-cache crystal spec
If you are working inside the term2 repo without shards install, include the local lib/ directory so dependencies resolve:
CRYSTAL_CACHE_DIR=$PWD/.crystal-cache \
CRYSTAL_PATH="$(crystal env CRYSTAL_PATH):../../lib" \
crystal spec
Contributing
- Fork it (https://github.com/dsisnero/lipgloss/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Dominic Sisneros - creator and maintainer
Repository
lipgloss
Owner
Statistic
- 0
- 0
- 0
- 0
- 3
- about 5 hours ago
- February 5, 2026
License
MIT License
Links
Synced at
Thu, 05 Feb 2026 19:18:00 GMT
Languages