Skip to main content

Corner Shape

Set the shape for element corners.

View as Markdown
baselinelimited
ClassCSS
cs:bcorner-shape: bevel;
cs:ncorner-shape: notch;
cs:rcorner-shape: round;
cs:scorner-shape: squircle;

The same values work with cbes, cbss, cbls, cbrs, cbs, cees, cests, cies, ciss, cls, crs, cses, csss, ctls, ctrs & cts, as in cts:s.

Variants

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

Breakpoints

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

@xs:cs:rFrom 32rem up.
@sm:cs:rFrom 40rem up.
@md:cs:rFrom 48rem up.
@lg:cs:rFrom 64rem up.
@xl:cs:rFrom 80rem up.
@xxl:cs:rFrom 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:cs:rContainer from 32rem up.
@c:sm:cs:rContainer from 40rem up.
@c:md:cs:rContainer from 48rem up.
@c:lg:cs:rContainer from 64rem up.
@c:xl:cs:rContainer from 80rem up.
@c:xxl:cs:rContainer 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:cs:rOn a touch screen.
@prm:cs:rWith reduced motion on.
@st:cs:rOn the first frame.

States

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

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

Pseudo Elements

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

a::cs:rOn ::after.
b::cs:rOn ::before.
p::cs:rOn ::placeholder.
s::cs:rOn ::selection.