Skip to main content

Foundation

Radius

Property will increase the element consistency and visibility

banner-Radius

Usage

Radius is the blunt part of the corner of a component that affects the shape and visibility of the content inside. This is the variant of radius we use globally for property the component. You can chek out the guideline for more detail description.

import { tokens } from 'legion-ui';

Preview

ShapeToken NameRoundedPixels
tokens.radius10.125 rem2px
tokens.radius20.25 rem4px
tokens.radius30.375 rem6px
tokens.radius40.5 rem8px
tokens.radius50.75 rem12px
tokens.radius61 rem16px
tokens.radius71.5 rem24px
tokens.radius850%50%
<div style="border-radius: tokens.radius1"/>
<div style="border-radius: tokens.radius2"/>
<div style="border-radius: tokens.radius3"/>
<div style="border-radius: tokens.radius4"/>
<div style="border-radius: tokens.radius5"/>
<div style="border-radius: tokens.radius6"/>
<div style="border-radius: tokens.radius7"/>
<div style="border-radius: tokens.radius8"/>