Radius
Choose the border radius for UI elements.
Theme radius
setting manages the radius factor applied to the components:
The resulting border-radius
is contextual and differs depending on the component.
Radius overrides
Certain components allow you to override the radius factor using their own radius
prop.
The card component won’t have the radius
prop, but will inherit the radius setting from the theme. The radius
prop is also unavailable on most text-based components.
Radius scale
Radius values used in the components are derived from a 6-step scale.
1
2
3
4
5
6
While you can’t use a specific step on a particular component directly—the radius
prop is used to set just the radius factor—you can use the radius scale to style your own components.
Radius tokens are accessed using CSS variables. You can use these tokens to style your custom components, ensuring they are consistent with the rest of your theme.
Was this page helpful?