Border radius
We use simple harmonic scale for radii. In smaller sizes, each consecutive token is roughly double the previous value. From the median size and on values are sum of two previous tokens instead.
Base token
We calculate each radii token using a base value for easy maintenance.
"radius": {
"xxs": {
"$type": "borderRadius",
"$value": "{radius.base} * 0.25",
"$description": "For the smallest components on the screen, usually up to 24px high."
}
}
Usage guidelines
Use xxs - sm radii for smaller elements like buttons, icons and checkboxes
Use smaller radii for large surfaces like modals and navigation panels.
Use full radius to complement branded content like social buttons.
Apply full radius to Productboard-branded content.