Macro stylist::global_style

source ·
global_style!() { /* proc-macro */ }
Available on crate feature macros only.
Expand description

A procedural macro that parses a string literal or an inline stylesheet into a GlobalStyle.

Please consult the documentation of the macros module for the supported syntax of this macro.

Example

use stylist::global_style;

// Returns a GlobalStyle instance.
let style = global_style!("color: red;");