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 Style
.
Please consult the documentation of the macros
module for the supported syntax of this
macro.
use stylist::style;
let style = style!("color: red;");