Border Radius
Set border radius for all corners or specific corners
Syntax
visual="rounded:[value]" | visual="rounded-{t|b|l|r|tl|tr|bl|br}:[value]"Values
| Value | CSS Output | Description |
|---|---|---|
none | border-radius: var(--r-none) | No rounding |
small | border-radius: var(--r-small) | Small radius |
medium | border-radius: var(--r-medium) | Medium radius |
big | border-radius: var(--r-big) | Large radius |
round | border-radius: var(--r-round) | Fully round |
Examples
html
<div visual="rounded:medium">Rounded corners</div>
<div visual="rounded:round">Pill shape</div>
<div visual="rounded-t:medium">Top rounded</div>
<div visual="rounded-tl:big rounded-br:big">Opposite corners</div>Preview
Border Radius
visual="rounded:medium" - Round element corners from subtle to pill-shaped
none
small
medium
round
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
<div space="p:small" visual="bg:primary text:white rounded:none">none</div>
<div space="p:small" visual="bg:primary text:white rounded:small">small</div>
<div space="p:small" visual="bg:primary text:white rounded:medium">medium</div>
<div space="p:small" visual="bg:primary text:white rounded:round">round</div>
</div>Directional Border Radius
visual="rounded-t:medium" - Round specific corners for unique shapes
top
bottom
left
right
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
<div space="p:small" visual="bg:primary text:white rounded-t:medium">top</div>
<div space="p:small" visual="bg:primary text:white rounded-b:medium">bottom</div>
<div space="p:small" visual="bg:primary text:white rounded-l:medium">left</div>
<div space="p:small" visual="bg:primary text:white rounded-r:medium">right</div>
</div>Arbitrary Values
Supports custom values using bracket syntax:
html
<div visual="border:[custom-value]">Custom</div>Notes
TIP
Tailwind Scale Support
Use tw- prefix to access Tailwind radius scale: rounded:tw-lg (0.5rem), rounded:tw-2xl (1rem)