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.
- Add the dependency to your
shard.yml:
dependencies:
lipgloss:
github: dsisnero/lipgloss- Run
shards install
require "lipgloss"style = Lipgloss::Style.new .foreground(Lipgloss::Color::CYAN) .border(Lipgloss::Border.rounded) .padding(1, 2)
puts style.render("Hello")
Run the specs from this directory:
CRYSTAL_CACHE_DIR=$PWD/.crystal-cache crystal specIf 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- 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
- Dominic Sisneros - creator and maintainer