Radius
Soften and group elements by using rounded corners.
Usage in Figma
Radius tokens are published from Stylus Design System and should be available by default in the Scribe workspace. Select the hexagon icon in applicable fields to apply radius tokens.
Usage in code
Sizing for rounded corners is inherited from Tailwind. Although components in Stylus will already come with a border radius pre-defined, this scale can be used to create new components.
<Component className="rounded-none" /> // No radius<Component className="rounded" /> // Default (4px) radius<Component className="rounded-md" /> // Medium (6px) radius<Component className="rounded-lg" /> // Large (8px) radius