Logo
Catppuccin for Gleam

Package Version Hex Docs

📦 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

🛠️ Development

The project under codegen directory is used to generate library files based on the contents of palette.json.

  1. Clone this repository locally
  2. Cd to the codegen directory
  3. Run the following command to generate files:
    gleam run
    
  4. Replace the generated files
    mv -iv catppuccin/* ../src/catppuccin
    

💝 Thanks to

 

Copyright © 2021-present Catppuccin Org

Search Document