23 stable releases

2.8.0 Apr 26, 2026
2.7.0 Mar 6, 2026
2.6.0 Oct 13, 2025
2.5.1 Feb 23, 2025
1.0.4 Oct 23, 2022

#9 in Text editors

Download history 452/week @ 2026-01-19 430/week @ 2026-01-26 410/week @ 2026-02-02 108/week @ 2026-02-09 467/week @ 2026-02-16 622/week @ 2026-02-23 831/week @ 2026-03-02 933/week @ 2026-03-09 943/week @ 2026-03-16 448/week @ 2026-03-23 748/week @ 2026-03-30 545/week @ 2026-04-06 823/week @ 2026-04-13 1048/week @ 2026-04-20 1159/week @ 2026-04-27 548/week @ 2026-05-04

3,642 downloads per month
Used in 27 crates (25 directly)

MIT license

180KB
1K SLoC

Logo
Catppuccin for Rust

Usage

Add Catppuccin to your project's Cargo.toml:

$ cargo add catppuccin

Example

struct Button {
    text: String,
    background_color: String,
};

fn confirm(text: String) -> Button {
    Button {
        text,
        background_color: catppuccin::PALETTE.mocha.colors.green.hex.to_string(),
    }
}

More examples can be found here.

Optional Features

ANSI string painting

Enable the ansi-term feature to add the Color::ansi_paint method. This adds ansi-term as a dependency.

Example: examples/term_grid.rs

Bevy

Enable the bevy feature to enable the conversion of Catppuccin colors to bevy::prelude::Color instances. This adds bevy as a dependency.

Example: examples/bevy.rs

CSS colors

Enable the css-colors feature to enable the conversion of Catppuccin colors to css_colors::RGB instances. This adds css-colors as a dependency.

Example: examples/css.rs

Iced

Enable the iced feature to enable the conversion of Catppuccin colors to iced::Color instances. This adds iced as a dependency.

Example: examples/iced.rs

Ratatui

Enable the ratatui feature to enable the conversion of Catppuccin colors to ratatui::style::Color instances. This adds ratatui as a dependency.

Example: examples/ratatui.rs

Serde

Enable the serde feature to enable the serialization of Catppuccin's palette, flavor, and color types. This adds serde as a dependency.

Example: examples/serde.rs

Contributing

This project uses pre-commit to maintain consistent code style and standards.

See also CONTRIBUTING.md

💝 Thanks to

 

Copyright © 2021-present Catppuccin Org

Dependencies

~0.7–26MB
~369K SLoC