StyleSchema
Container for all visual layout and decoration properties applied to a tile.
The client applies these properties in the following order (via Modifier.styledWith()):
windowInsets — padding to avoid overlapping system UI (status bar, nav bar, IME…)
margin — outer spacing around the tile (applied as
Modifier.paddingoutside the size)size — width and height constraints
clip — shape clip applied before background, so the background respects the shape
background — fill: solid color or gradient, with an optional alpha
onClick (injected by tile, not part of this schema)
border — drawn over the background, after clip
padding — inner spacing between the border and content
Notes:
size is the only mandatory field; all others are optional.
StyleSchema.default()fills both width and height.The order of
clipbeforebackgroundmeans the background is already clipped — no need to set bothclipand a roundedborder.radiusto get rounded corners;clipalone is sufficient for a rounded background.backgroundsupports solid colors and linear/horizontal/vertical/radial/sweep gradients (see BackgroundSchema); blur is not implemented yet.