Catppuccin for Gleam
📦 Installation
gleam add catppuccin
🚀 Usage
import catppuccin/frappe
import gleam/io
import gleam_community/colour
pub fn main() {
frappe.name
|> io.debug
// "Frappé"
frappe.mauve().name
|> io.debug
// "Mauve"
frappe.mauve().colour
|> colour.to_rgba
|> io.debug
// #(0.792156862745098, 0.6196078431372549, 0.9019607843137255, 1.0)
frappe.mauve().colour
|> colour.to_css_rgba_string
|> io.debug
// "rgba(79.22%,61.96%,90.2%,1.0)"
}
🙋 FAQ
- Q: “Where can I find the doc?”
A: Further documentation can be found at https://hexdocs.pm/catppuccin.
🛠️ Development
The project under codegen
directory is used to generate library files based on the contents of palette.json.
- Clone this repository locally
git clone https://github.com/MAHcodes/catppuccin/
- Cd to the
codegen
directorycd codegen
- Run the project to generate files
gleam run
- Replace the generated files
mv -iv catppuccin/* ../src/catppuccin
💝 Thanks to
Copyright © 2021-present Catppuccin Org