Beautiful, expressive and composable color and text formatting for CLI in Gleam.
gleam add chromatic
The best way to use this is through Gleam's pipelines.
Check it out!
import chromatic.{bold, italic, magenta, rainbow}
pub fn main() {
io.println(
"Hello "
<> "Gleam"
|> magenta
|> italic
|> bold
<> ", this is "
<> "Chromatic"
|> rainbow
|> bold,
)
}
Further documentation can be found at https://hexdocs.pm/chromatic.
A whole bunch of new features are coming soon!
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell