makeover 3.5.0

Shared theme loading for the make-family apps: TOML theme files parsed into intent-based color tokens, with perceptual derivations and WCAG contrast.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Print the switchable sheet: every shipped theme keyed by `data-theme`.
//!
//! `cargo run --example all_themes_sheet | head -40` is the quickest look at
//! what a consumer links, and `| wc -c` is what it costs them.

fn main() {
    let dirs = vec![(
        makeover::bundled_themes_dir().expect("run me from a checkout"),
        false,
    )];
    let defaults =
        makeover::ThemeDefaults::new("goingson", "catppuccin-mocha").high_contrast("high-contrast");
    print!("{}", makeover::all_themes_css(&dirs, &defaults));
}