catppuccin-palette/rust/examples/simple.rs

16 lines
338 B
Rust
Raw Normal View History

2022-10-23 16:33:09 +01:00
use catppuccin::{LATTE, MOCHA};
fn main() {
let (r, g, b) = LATTE.teal.into();
println!(
"Latte's teal is #{}, which is rgb({r}, {g}, {b})",
LATTE.teal.hex()
);
let (r, g, b) = MOCHA.teal.into();
println!(
"Mocha's teal is #{}, which is rgb({r}, {g}, {b})",
MOCHA.teal.hex()
);
}