Skip to main content

classes_for_element

Function classes_for_element 

Source
pub fn classes_for_element(element: &str, opts: &Emit) -> BTreeSet<String>
Expand description

The generated classes element can carry, prefixed the way opts prefixes them.

Empty for an element the design system never renders onto, which is the answer for most of them: a rule on one of those cannot collide with a generated class because no generated class is ever on it.