Attribute Macro css_use

Source
#[css_use]
Expand description

Allows using an outer variable on rustyle! macro. Only constantly evaluable some expression allowed.

#[css_use]
let Parent = css! {
  color: red;
}

let Child = css! {
  ${Parent} > & {
    color: white;
  }
}