Skip to content

dsisnero/lipgloss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lipgloss Crystal port

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published