nyxkrage / ctp-rust

🦀 Soothing pastel theme for Rust

Home Page:https://crates.io/crates/catppuccin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Output from simple example

$ cargo run --features ansi --example term

Output from term example

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

About

🦀 Soothing pastel theme for Rust

https://crates.io/crates/catppuccin

License:MIT License


Languages

Language:Rust 100.0%