catppuccin 1.0.1

The Catppuccin colour palette.
Documentation

catppuccin

🦀 Soothing pastel theme for Rust.

Usage

Add Catppuccin to your project's Cargo.toml:

[dependencies]
catppuccin = "1.0.0"

Example

use catppuccin::MOCHA;

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](crate::Colour::ansi_paint) method. This adds ansi_term as a dependency.

License: MIT