21 stable releases

2.6.0 Oct 13, 2025
2.5.1 Feb 23, 2025
2.5.0-beta.0 Dec 7, 2024
2.4.0 May 23, 2024
1.0.4 Oct 23, 2022

#17 in Text editors

Download history 975/week @ 2025-10-25 591/week @ 2025-11-01 400/week @ 2025-11-08 334/week @ 2025-11-15 427/week @ 2025-11-22 250/week @ 2025-11-29 488/week @ 2025-12-06 480/week @ 2025-12-13 443/week @ 2025-12-20 325/week @ 2025-12-27 553/week @ 2026-01-03 364/week @ 2026-01-10 494/week @ 2026-01-17 362/week @ 2026-01-24 507/week @ 2026-01-31 118/week @ 2026-02-07

1,542 downloads per month
Used in 15 crates (14 directly)

MIT license

170KB
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.8–30MB
~420K SLoC