Expand description
style!: the application’s style overrides and motion tokens.
style! {
motion {
jelly: spring(period: 0.42, damping: 0.42),
}
SidebarItem {
corner: 8,
hover: scale(1.03, snappy),
selected: fill(accent),
}
Button.hero { size: large }
#[target(macos)]
SidebarItem { selected: system }
}This module only reads the declaration; what each property means and where it applies is checked by the build tool.
Structs§
- Corner
Block - A
corner { name: radius }block, for every platform or, with#[target(…)], for those named. - Motion
Decl name: spring(period: T, damping: ζ).- Style
Arg - Style
Item - Style
Prop - Style
Rule Item ComponentorComponent.variant, with its properties.
Enums§
- Style
Value - A property value: a number, a name such as
accentorfill.subtle, text, a call such asscale(1.03, snappy), or effects joined by+.
Functions§
- parse_
style - Parse the body of a
style!invocation.