Overview
Basics
With few exceptions, interactive components are rounded. An object's border radius should be proportional to its shortest side. Nested objects
A nested object should inherit its parent's border type: rounded or not rounded. The border radius of a nested, rounded object should be smaller than that of its parent. Application
Tokenized options
Cedar components include appropriate radii values applied by default. Use tokens to apply radii values to bespoke elements or containers.
- Sharp:
cdr-radius-sharp
- Soft:
cdr-radius-soft
- Softer:
cdr-radius-softer
- Round:
cdr-radius-round
When to use
- Do choose a radius that's proportional to the size of the element
- Do use rounded corners for actionable components like buttons, cards, and chips
When to use a different approach
- Don't use roundness as the only means of conveying actionability
- Don't round the corners of small, non-interactive pieces of UI
- Don't overuse rounded corners, consider the whole page