Skip to main content

Borders, radius, and shadow

Supported borders, radius, and shadow utilities.

Quick reference​

SyntaxBehavior
border / border-0 / border-2Drawn width: 1 / 0 / 2 logical units.
rounded-none / sm / md / lg / xl / 2xlNamed corner sizes; each uses rounded-.
rounded-card / rounded-control / rounded-fullSemantic or capsule shape.
border-TOKENBorder color.
shadow-none / shadow-smPortable shadow strength.
overflow-hiddenClip content to bounds.

Example​

<View class="w-24 h-16 bg-card border border-border rounded-xl shadow-sm" />

Rules and validation​

Shadow appearance maps to native drawing/elevation and can differ by platform. Corner radius remains constrained by presented bounds. Use explicit transition-border, transition-radius, or transition-shadow to animate these channels.

Style lesson · Style index · Themes