Skip to content

Border Radius

Use rounded-{size} to apply uniform border radius to all corners of an element:

Style('rounded-sm ...')
Style('rounded-md ...')
Style('rounded-lg ...')
Style('rounded-xl ...')

Use utilities like rounded-t-md or rounded-r-lg to round one side (two adjacent corners):

Style('rounded-t-lg ...')
Style('rounded-r-lg ...')
Style('rounded-b-lg ...')
Style('rounded-l-lg ...')

Use utilities like rounded-tr-md and rounded-tl-lg to round a single corner:

Style('rounded-tl-lg ...')
Style('rounded-tr-lg ...')
Style('rounded-br-lg ...')
Style('rounded-bl-lg ...')

Use rounded-s-{size}, rounded-e-{size} for the inline-start / inline-end corners (two each), and rounded-{ss,se,es,ee}-{size} for individual logical corners. They map to physical corners based on the active Directionality:

Style('rounded-s-lg ...')
Style('rounded-s-lg ...')

Use rounded-full to render a pill:

Style('rounded-full ...', child: Text('Save Changes'))

Use rounded-none to reset:

Style('rounded-none ...', child: Text('Save Changes'))
ClassValue
rounded-none0px
rounded-xs2px
rounded-sm / rounded4px
rounded-md6px
rounded-lg8px
rounded-xl12px
rounded-2xl16px
rounded-3xl24px
rounded-4xl32px
rounded-full9999px
rounded-{t,r,b,l}-{size}Two adjacent corners on the named side.
rounded-{tl,tr,bl,br}-{size}Single corner.
rounded-{s,e}-{size}Both inline-start / inline-end corners (logical).
rounded-{ss,se,es,ee}-{size}Single logical corner (resolved via Directionality).