9 stable releases
1.2.1 | Jan 23, 2023 |
---|---|
1.1.1 | Jan 15, 2023 |
1.0.4 | Oct 23, 2022 |
1.0.2 | Oct 22, 2022 |
#40 in Text editors
37 downloads per month
110KB
533 lines

Catppuccin for Rust
Usage
Add Catppuccin to your project's Cargo.toml
:
$ cargo add catppuccin
Example
use catppuccin::Flavour;
struct Button {
text: String,
background_colour: String,
};
fn confirm(text: String) -> Button {
Button {
text,
background_colour: Flavour::Mocha.green().hex(),
}
}
More examples can be found here.
Clone the repository to run them locally:
$ cargo run --example simple
$ cargo run --features ansi --example term
Optional Features
ANSI string painting
Enable the ansi
feature to add the
Colour::ansi_paint
method.
This adds ansi-term as a dependency.
CSS colours
Enable the css
feature to allow the conversion of Catppuccin colours to
css_colors::RGB
.
This adds css-colors as a dependency.
💝 Thanks to
Copyright © 2021-present Catppuccin Org