chromata 1.0.0

1000+ editor color themes as compile-time Rust constants
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Generate CSS custom properties from a chromata theme.
//!
//! Run with: `cargo run --example export_css`

fn main() {
    let theme = &chromata::popular::gruvbox::DARK_HARD;
    println!(":root {{");
    for (role, color) in theme.colors() {
        println!(
            "  --chromata-{}: {};",
            role.replace('_', "-"),
            color.to_css_hex()
        );
    }
    println!("}}");
}