maud-extensions 0.5.2

Component, inline CSS/JS, and font helper macros for Maud views.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use maud_extensions::{css, inline_css};

fn main() {
    css! {
        raw!(r#":root { --font-display: 'Newsreader', Georgia, serif; }"#)
    }

    let _ = css();

    let _ = inline_css! {
        raw!(r#"[data-theme='light'] { color-scheme: light; }"#)
    };
}