https://github.com/strawmelonjuice/gleamy_lights
gleamy_lights - Colored console output for Gleam.
https://github.com/strawmelonjuice/gleamy_lights
browser colors colours console cross-platform erlang gleam gleam-lang javascript
Last synced: 9 months ago
JSON representation
gleamy_lights - Colored console output for Gleam.
- Host: GitHub
- URL: https://github.com/strawmelonjuice/gleamy_lights
- Owner: strawmelonjuice
- License: apache-2.0
- Created: 2024-09-21T13:54:52.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-20T09:02:09.000Z (about 1 year ago)
- Last Synced: 2025-10-10T13:45:58.167Z (9 months ago)
- Topics: browser, colors, colours, console, cross-platform, erlang, gleam, gleam-lang, javascript
- Language: Gleam
- Homepage: https://hex.pm/packages/gleamy_lights
- Size: 38.1 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# gleamy_lights
[](https://hex.pm/packages/gleamy_lights)
[](https://hexdocs.pm/gleamy_lights/)
Colored terminal output for Gleam.
```sh
gleam add gleamy_lights@2
```
```gleam
import gleam/io
import gleamy_lights
import gleamy_lights/premixed.{bg_green, text_orange}
import gleamy_lights/premixed/gleam_colours
pub fn main() {
io.println(
text_orange("Hello, ")
<> gleamy_lights.by_hexcolour_bg("world", "#aa88ff")
<> bg_green("!"),
)
io.println(
"This is a "
<> gleam_colours.bg_underwater_blue(gleam_colours.text_faff_pink(
"gleamy",
))
<> " world.",
)
}
```
Further documentation can be found at .
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
```