Radius Scale
The baserounded-* classes apply an identical radius to all four corners of the element.
| Class | Value | CSS Property |
|---|---|---|
.rounded-none | 0 | border-radius: 0 |
.rounded-sm | 4px | border-radius: 4px |
.rounded | 6px | border-radius: 6px |
.rounded-lg | 8px | border-radius: 8px |
.rounded-xl | 12px | border-radius: 12px |
.rounded-2xl | 16px | border-radius: 16px |
.rounded-full | 9999px | border-radius: 9999px |
Side Variants
Side variants round two adjacent corners on the same side of the element. They’re ideal for drawers, tooltips, tabs, and any component that’s flush against one edge of the viewport or a parent container.| Prefix | Corners Affected | Example Class |
|---|---|---|
rounded-t-* | Top-left + Top-right | rounded-t-lg |
rounded-r-* | Top-right + Bottom-right | rounded-r-xl |
rounded-b-* | Bottom-left + Bottom-right | rounded-b-lg |
rounded-l-* | Top-left + Bottom-left | rounded-l-xl |
sm, base, lg, xl (e.g., rounded-t-sm, rounded-t-base, rounded-t-lg, rounded-t-xl).
Corner Variants
Corner variants target a single corner with surgical precision — useful for asymmetric design treatments, speech bubbles, or any component that rounds one corner differently from the rest.| Class | Corner Affected | Example |
|---|---|---|
rounded-tl-* | Top-left | rounded-tl-lg |
rounded-tr-* | Top-right | rounded-tr-xl |
rounded-br-* | Bottom-right | rounded-br-lg |
rounded-bl-* | Bottom-left | rounded-bl-sm |
sm, base, lg, xl (e.g., rounded-tl-sm, rounded-tl-base, rounded-tl-lg, rounded-tl-xl).
Code Examples
Standard button — moderate rounding:Best Practices
- Stick to one or two radius sizes per page. Mixing too many values (e.g.,
rounded-smon some elements androunded-xlon others without intention) creates visual inconsistency. - Use
rounded-fullfor pills, avatar images, icon buttons, and tag labels — any element whose width and height are equal will become a perfect circle. - Use
rounded-noneto explicitly reset corner rounding on elements that inherit a radius from a parent or from Elementor’s default widget styles. - Match corner radius to element size — smaller components (chips, badges) look better with
rounded-smorrounded, while larger cards and modals benefit fromrounded-lgorrounded-xl. - Use side variants (
rounded-t-*) for components that are attached to an edge — for example, a tab that sits flush against a panel, or a bottom sheet anchored to the viewport floor.
Related Utilities
- Border Width — Add border thickness to go alongside rounded corners.
- Border Style — Choose solid or dashed line rendering for your border.