Skip to main content

Stroke

Set the stroke color for SVG elements.

View as Markdown
baselinewidely

Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:s:indigo-8.

Breakpoints

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

@xs:s:indigo-8From 32rem up.
@sm:s:indigo-8From 40rem up.
@md:s:indigo-8From 48rem up.
@lg:s:indigo-8From 64rem up.
@xl:s:indigo-8From 80rem up.
@xxl:s:indigo-8From 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:s:indigo-8Container from 32rem up.
@c:sm:s:indigo-8Container from 40rem up.
@c:md:s:indigo-8Container from 48rem up.
@c:lg:s:indigo-8Container from 64rem up.
@c:xl:s:indigo-8Container from 80rem up.
@c:xxl:s:indigo-8Container 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:s:indigo-8On a touch screen.
@prm:s:indigo-8With reduced motion on.
@st:s:indigo-8On the first frame.

States

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

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

Pseudo Elements

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

a::s:indigo-8On ::after.
b::s:indigo-8On ::before.
p::s:indigo-8On ::placeholder.
s::s:indigo-8On ::selection.

Opacity

Add a slash & a step after a color to set its opacity.

s:indigo-8/50At 50% opacity, in steps of 5.