Borders

Curve-border

Utilities for sets border radius.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
curve-borderborder-radius: 0.25rem
curve-border-noneborder-radius: 0
classcss
curve-border-smborder-radius: 0.125rem
curve-border-mdborder-radius: 0.375rem
curve-border-lgborder-radius: 0.5rem
curve-border-fullborder-radius: 9999px
classcss
curve-border-t-noneborder-top-left-radius: 0;
border-top-right-radius: 0
curve-border-r-noneborder-top-right-radius: 0;
border-bottom-right-radius: 0
curve-border-b-noneborder-bottom-right-radius: 0;
border-bottom-left-radius: 0
curve-border-l-noneborder-top-left-radius: 0;
border-bottom-left-radius: 0
classcss
curve-border-tborder-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem
curve-border-rborder-top-right-radius: 0.25rem;
border-bottom-right-radius: 0.25rem
curve-border-bborder-bottom-right-radius: 0.25rem;
border-bottom-left-radius: 0.25rem
curve-border-lborder-top-left-radius: 0.25rem;
border-bottom-left-radius: 0.25rem
classcss
curve-border-t-smborder-top-left-radius: 0.125rem;
border-top-right-radius: 0.125rem
curve-border-r-smborder-top-right-radius: 0.125rem;
border-bottom-right-radius: 0.125rem
curve-border-b-smborder-bottom-right-radius: 0.125rem;
border-bottom-left-radius: 0.125rem
curve-border-l-smborder-top-left-radius: 0.125rem;
border-bottom-left-radius: 0.125rem
classcss
curve-border-t-mdborder-top-left-radius: 0.375rem;
border-top-right-radius: 0.375rem
curve-border-r-mdborder-top-right-radius: 0.375rem;
border-bottom-right-radius: 0.375rem
curve-border-b-mdborder-bottom-right-radius: 0.375rem;
border-bottom-left-radius: 0.375rem
curve-border-l-mdborder-top-left-radius: 0.375rem;
border-bottom-left-radius: 0.375rem
classcss
curve-border-t-lgborder-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem
curve-border-r-lgborder-top-right-radius: 0.5rem;
border-bottom-right-radius: 0.5rem
curve-border-b-lgborder-bottom-right-radius: 0.5rem;
border-bottom-left-radius: 0.5rem
curve-border-l-lgborder-top-left-radius: 0.5rem;
border-bottom-left-radius: 0.5rem
classcss
curve-border-t-fullborder-top-left-radius: 9999px;
border-top-right-radius: 9999px
curve-border-r-fullborder-top-right-radius: 9999px;
border-bottom-right-radius: 9999px
curve-border-b-fullborder-bottom-right-radius: 9999px;
border-bottom-left-radius: 9999px
curve-border-l-fullborder-top-left-radius: 9999px;
border-bottom-left-radius: 9999px

Usage

<div class="curve-border-lg ... bg-tint-granite-5 ... width-32 height-32">
...
</div>
HTML
.dummy {
@extend
.curve-border-lg,
.bg-tint-granite-5,
.width-32,
.height-32;
}
SCSS

Use (expand) variant to apply border radius to all child elements.

<!-- parent -->
<div class="(expand)curve-border-lg">
<!-- child -->
<div> ... </div>
<div> ... </div>
<div> ... </div>
</div>
HTML
.dummy {
@extend
.(expand)curve-border-lg;
}
SCSS