e9db65e1ae
This adds method to get each of the colors directly from the `Flavour` variants like so ```rust Flavour::Latte.teal() ``` rather than needing to go through the `FlavourColours` struct This closes #27 Co-authored-by: Hamothy <58985301+sgoudham@users.noreply.github.com> |
||
---|---|---|
.. | ||
assets | ||
examples | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
catppuccin
🦀 Soothing pastel theme for Rust.
Usage
Add Catppuccin to your project's Cargo.toml
:
[dependencies]
catppuccin = "1.0.4"
Example
use catppuccin::MOCHA;
struct Button {
text: String,
background_colour: String,
};
fn confirm(text: String) -> Button {
Button {
text,
background_colour: 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.
License: MIT