lipgloss

Lipgloss Crystal port

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

  1. Add the dependency to your shard.yml:
dependencies:
  lipgloss:
    github: dsisnero/lipgloss
  1. 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

  1. Fork it (https://github.com/dsisnero/lipgloss/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

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