gleamy_lights

Package Version Hex Docs

Colored terminal output for Gleam.

gleam add gleamy_lights@2
import gleam/io
import gleamy_lights
import gleamy_lights/premixed.{bg_green, text_orange}
import gleamy_lights/premixed/gleam_colors

pub fn main() {
  io.println(
    text_orange("Hello, ")
    <> gleamy_lights.by_hexcolor_bg("world", "#aa88ff")
    <> bg_green("!"),
  )
  io.println(
    "This is a "
    <> gleam_colors.bg_underwater_blue_gl(gleam_colors.text_faff_pink_gl(
      "gleamy",
    ))
    <> " world.",
  )
}

Further documentation can be found at https://hexdocs.pm/gleamy_lights.

Development

gleam run   # Run the project
gleam test  # Run the tests
Search Document