File: radius.md | Updated: 11/15/2025
ThemesThemes PrimitivesPrimitives IconsIcons ColorsColors
Getting started Styling Layout Releases Resources
Overview Color Dark mode Typography Spacing Breakpoints Radius Shadows Cursors
Box Flex Grid Container Section
Text Heading Blockquote Code Em Kbd Link Quote Strong
Alert Dialog Aspect Ratio Avatar Badge Button Callout Card Checkbox Checkbox Group Checkbox Cards Context Menu Data List Dialog Dropdown Menu Hover Card Icon Button Inset Popover Progress Radio Radio Group Radio Cards Scroll Area Segmented Control Select Separator Skeleton Slider Spinner Switch Table Tabs Tab Nav Text Area Text Field Tooltip
Accessible Icon Portal Reset Slot Theme Visually Hidden
Guides
Choosing the right radius setting in your theme.
Theme radius setting manages the radius factor applied to the components:
<Theme radius="medium">
<TextField.Root size="3" placeholder="ReplyâŚ">
<TextField.Slot side="right" px="1">
<Button size="2">Send</Button>
</TextField.Slot>
</TextField.Root>
</Theme>
none
Send
small
Send
medium
Send
large
Send
full
Send
The resulting border-radius is contextual and differs depending on the component. For example, when set to full, a Button
becomes pill-shaped, while a Checkbox
will never become fully rounded to prevent any confusion between it and a Radio
.
Save
<Theme radius="full">
<Flex align="center" gap="3">
<Button>Save</Button>
<Switch defaultChecked />
<Checkbox defaultChecked />
</Flex>
</Theme>
Certain components allow you to override the radius factor using their own radius prop.
SaveSaveSaveSaveSave
<Flex align="center" gap="3">
<Button radius="none">Save</Button>
<Button radius="small">Save</Button>
<Button radius="medium">Save</Button>
<Button radius="large">Save</Button>
<Button radius="full">Save</Button>
</Flex>
Components that render panels, like Card, Dialog, and Popover, among others, 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 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.
/* Radius values that automatically respond to the radius factor */
var(--radius-1);
var(--radius-2);
var(--radius-3);
var(--radius-4);
var(--radius-5);
var(--radius-6);
/* A multiplier that controls the theme radius */
var(--radius-factor);
/*
* A variable used to calculate a fully rounded radius.
* Usually used within a CSS `max()` function.
*/
var(--radius-full);
/*
* A variable used to calculate radius of a thumb element.
* Usually used within a CSS `max()` function.
*/
var(--radius-thumb);
PreviousBreakpoints
NextShadows