Primary button (M3 Small)
- Input
- Botão 120×40px
- Expected output
- border-radius: 8px;
Material Design 3 Small token. Suitable for primary action buttons.
responsive CSS border-radius buttons
Established design systems such as Material Design 3, Tailwind and Radix UI define specific radius scales for each component. The general principle: smaller elements (chips, badges) use larger percentage radii; larger elements (modals, panels) use fixed px. Consistency in the radius scale is as important to visual identity as the color palette.
Material Design 3 Small token. Suitable for primary action buttons.
Material Design 3 Extra Large token. Suitable for medium-size surfaces.
It's the property that rounds the corners of an element. It accepts values in px, %, rem or any CSS unit, and can control all four corners independently.
For cards, 8–16px is the most common range. M3 recommends 12px (Medium). Tailwind recommends `rounded-xl` (12px) or `rounded-2xl` (16px). The choice depends on the overall interface scale.
For visual interface corners, px tends to be more predictable because the radius does not change with font zoom. For elements that should scale with user preferences, rem is more accessible.
border-radius: 12px;CSS is generated locally in your browser.