Crates.io | catppuccin |
lib.rs | catppuccin |
version | 2.4.0 |
source | src |
created_at | 2022-10-22 14:18:48.807804 |
updated_at | 2024-05-23 16:53:17.023242 |
description | 🦀 Soothing pastel theme for Rust. |
homepage | https://github.com/catppuccin/rust |
repository | https://github.com/catppuccin/rust |
max_upload_size | |
id | 694446 |
size | 204,554 |
Add Catppuccin to your project's Cargo.toml
:
$ cargo add catppuccin
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.
Enable the ansi-term
feature to add the
Color::ansi_paint
method.
This adds ansi-term as a dependency.
Example: examples/term_grid.rs
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
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
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
This project uses pre-commit to maintain consistent code style and standards.
See also CONTRIBUTING.md
Copyright © 2021-present Catppuccin Org