Skip to main content

max / makeover

536 B · 15 lines History Blame Raw
1 //! Print the switchable sheet: every shipped theme keyed by `data-theme`.
2 //!
3 //! `cargo run --example all_themes_sheet | head -40` is the quickest look at
4 //! what a consumer links, and `| wc -c` is what it costs them.
5
6 fn main() {
7 let dirs = vec![(
8 makeover::bundled_themes_dir().expect("run me from a checkout"),
9 false,
10 )];
11 let defaults =
12 makeover::ThemeDefaults::new("goingson", "catppuccin-mocha").high_contrast("high-contrast");
13 print!("{}", makeover::all_themes_css(&dirs, &defaults));
14 }
15