Macro stylist::style

source ·
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.

Example

use stylist::style;

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