renovate[bot] ed94e3eae4
chore(deps): update actions/checkout action to v4.2.2 (#11)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-02 00:08:41 +00:00
2024-04-22 12:08:45 +03:00
2024-05-18 16:42:24 +03:00
2024-05-18 13:07:37 +03:00
2024-04-18 21:42:26 +03:00
2024-05-18 19:18:39 +03:00
2024-04-19 22:48:10 +03:00
2024-05-18 20:06:40 +03:00
2024-06-09 21:50:33 +01:00

Logo
Catppuccin for Gleam

Package Version Hex Docs

📦 Installation

gleam add catppuccin

🚀 Usage

import catppuccin
import gleam/io
import gleam_community/colour

pub 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

🛠️ Development

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

  1. Clone this repository locally
    git clone https://github.com/catppuccin/gleam/
    
  2. Cd to the codegen directory
    cd codegen
    
  3. Run the project to generate files
    gleam run
    
  4. Replace the generated files
    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

 

Copyright © 2021-present Catppuccin Org

Description
No description provided
Readme MIT 183 KiB
Languages
Gleam 100%