Create CSS border-radius values for rounded and elliptical corners.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Corner radii become border-radius shorthand, with optional slash-separated vertical radii for ellipses. Percentages resolve against the corresponding box dimensions.
Top left: 50 Top right: 50 Bottom right: 50 Bottom left: 50 Unit: %
/* Border Radius */
.rounded {
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
/* Individual corners */
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
}
Design systems, button prototypes, and responsive pills generate border radii.