Browse documentation
Reference / Borders
Corner radius
Round a whole box, a single edge, or an individual corner using the radius scale.
Working example
Folded corner
Use overflow-hidden on a rounded wrapper when child artwork should follow the same curved outline.
<div class="rounded-t-xl rounded-br-[2rem] bg-black px-5 py-3 text-white">
Folded corner
</div>Class reference
| Class | CSS declarations |
|---|---|
rounded-none | border-radius: 0; |
rounded | border-radius: .375rem; |
rounded-lg | border-radius: .625rem; |
rounded-full | border-radius: 9999px; |
rounded-t-xl | border-top-left-radius: .875rem;
border-top-right-radius: .875rem; |
rounded-ss-lg | border-start-start-radius: .625rem; |
rounded-br-[2rem] | border-bottom-right-radius: 2rem; |
View full generated CSS
.rounded {
border-radius: .375rem;
}
.rounded-full {
border-radius: 9999px;
}
.rounded-lg {
border-radius: .625rem;
}
.rounded-none {
border-radius: 0;
}
.rounded-t-xl {
border-top-left-radius: .875rem;
border-top-right-radius: .875rem;
}
.rounded-br-\[2rem\] {
border-bottom-right-radius: 2rem;
}
.rounded-ss-lg {
border-start-start-radius: .625rem;
}