Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/catppuccin/gleam
⭐️ Soothing pastel library for Gleam
https://github.com/catppuccin/gleam
catppuccin gleam library theme
Last synced: 4 days ago
JSON representation
⭐️ Soothing pastel library for Gleam
- Host: GitHub
- URL: https://github.com/catppuccin/gleam
- Owner: catppuccin
- License: mit
- Created: 2024-04-18T14:53:41.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-07-17T23:44:25.000Z (4 months ago)
- Last Synced: 2024-08-02T14:06:08.688Z (3 months ago)
- Topics: catppuccin, gleam, library, theme
- Language: Gleam
- Homepage: https://hexdocs.pm/catppuccin/
- Size: 105 KB
- Stars: 22
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Catppuccin for Gleam
## 📦 Installation
```sh
gleam add catppuccin
```## 🚀 Usage
```gleam
import catppuccin
import gleam/io
import gleam_community/colourpub fn main() {
catppuccin.frappe()
|> catppuccin.flavor_name
|> io.debug
// "Frappé"catppuccin.macchiato()
|> catppuccin.subtext1
|> catppuccin.color_name
|> io.debug
// "Subtext 1"catppuccin.mocha()
|> catppuccin.mauve
|> catppuccin.to_color
|> colour.to_rgba
|> io.debug
// #(0.796078431372549, 0.6509803921568628, 0.9686274509803922, 1.0)catppuccin.latte()
|> catppuccin.mauve
|> catppuccin.to_color
|> colour.to_hsla
|> io.debug
// #(0.739010989010989, 0.8504672897196262, 0.5803921568627451, 1.0)
}
```## 🙋 FAQ
- Q: **_"Where can I find the doc?"_**\
A: Further documentation can be found at .## 🛠️ Development
The project under `codegen` directory is used to generate the library based on the contents of [palette.json](https://raw.githubusercontent.com/catppuccin/palette/main/palette.json).
1. Clone this repository locally
```sh
git clone https://github.com/catppuccin/gleam/
```
2. Cd to the `codegen` directory
```sh
cd codegen
```
3. Run the project to generate files
```sh
gleam run
```
4. Replace the generated files
```sh
mv -iv out/catppuccin.gleam ../src/
```## 🏗️ CI/CD Release Workflow
Set the `HEX_DEPLOY_KEY` token in the repository secrets (**Settings** > **Secrets** > **Actions**).
## 💝 Thanks to
- [MAHcodes](https://github.com/MAHcodes)
Copyright © 2021-present Catppuccin Org