macro_rules! class {
($($u:literal),* $(,)?) => { ... };
}Expand description
Tailwind-style utility-class macro.
ⓘ
ui.class(class!("bg-blue-500", "p-4", "rounded-lg"));Emits a String of space-separated, af-u--prefixed utility names and
validates each name at compile time against
styling::UTILITIES — an unknown utility is a build error, not
silently-unstyled output. The af-u- prefix matches the rules produced
by styling::style_sheet (embed once in a page <head>), or use
styling::inline_style / the tpt-appfront-html SSR backend to have the
CSS applied directly.