Skip to main content

Border Radius

Set the radius for element borders.

View as Markdown
baselinewidely
ClassCSS
br:0border-radius: 0;
br:9999border-radius: 9999px;
br:xsborder-radius: 0.125rem;
br:smborder-radius: 0.25rem;
br:mdborder-radius: 0.375rem;
br:lgborder-radius: 0.5rem;
br:xlborder-radius: 0.75rem;
br:xxlborder-radius: 1rem;
br:3xlborder-radius: 1.5rem;
br:100%border-radius: 100%;
br:50%border-radius: 50%;
br:pxborder-radius: 1px;

The same values work with bber, bbsr, bblr, bbr, bbrr, beer, besr, bier, bisr, blr, brr, bser, bssr, btlr, btr & btrr, as in btrr:md.

Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:br:xl.

Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

@xs:br:xlFrom 32rem up.
@sm:br:xlFrom 40rem up.
@md:br:xlFrom 48rem up.
@lg:br:xlFrom 64rem up.
@xl:br:xlFrom 80rem up.
@xxl:br:xlFrom 96rem up.

Containers

Apply a class from a container's width up, not the viewport's. Mark the parent with ct:is first.

@c:xs:br:xlContainer from 32rem up.
@c:sm:br:xlContainer from 40rem up.
@c:md:br:xlContainer from 48rem up.
@c:lg:br:xlContainer from 64rem up.
@c:xl:br:xlContainer from 80rem up.
@c:xxl:br:xlContainer from 96rem up.

Media

Apply a class when the device or the page matches a condition, or on the first frame an element renders.

@pc:br:xlOn a touch screen.
@prm:br:xlWith reduced motion on.
@st:br:xlOn the first frame.

States

Apply a class only while the element is in a state, such as hovered, focused or checked.

h:br:xlOn :hover.
f:br:xlOn :focus.
fv:br:xlOn :focus-visible.
a:br:xlOn :active.
d:br:xlOn :disabled.
fc:br:xlOn :first-child.
c:br:xlOn :checked.
e:br:xlOn :empty.
fw:br:xlOn :focus-within.
i:br:xlOn :invalid.
in:br:xlOn :indeterminate.
lc:br:xlOn :last-child.
nc:br:xlOn :nth-child.
r:br:xlOn :required.
ro:br:xlOn :read-only.
v:br:xlOn :valid.

Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

a::br:xlOn ::after.
b::br:xlOn ::before.
p::br:xlOn ::placeholder.
s::br:xlOn ::selection.