Foundations
Best Practices

Best Practices

Radius tokens are identified in Shoreline by the prefix $radius. The prefix is followed by suffixes that are numbers (0, 1, 2, 3) that are agnostic to the token value, they just represent a crescent order. The only exception is the bigger one which the suffix is full. So, the smaller radius token name is $radius-0 and the bigger is $radius-full.

Radius

Usage

The radius used in a component is related to its size and placement.

TokenUsage
$radius-0Page components (Header and Content) and Admin Navigation components (Topbar and Sidebar)
$radius-1Checkboxes and Buttons inside inputs
$radius-2Buttons, Inputs, Filters, Alerts, Toasts, Cards, and Popovers
$radius-3Modals
$radius-fullTags and Avatars