Macro wasm_css::global_style
source ยท macro_rules! global_style { ($target:expr, $css:expr $(, $arg:expr)*) => { ... }; }
Expand description
Construct a global Style from a CSS string with formatting
-
Returns
WasmCssErrorif unable to locate Crypto when generating uuid -
Returns
WasmCssErrorif unable to locate Document/Window/Head
global_style!(target: Into<String>, css: &str or format string) -> Result<Style, WasmCssError>Example Usage:
global_style!(
"html",
"
gap: {}rem;
display: flex;
flex-direction: column;
",
gap_size
)?;