Skip to main content

Accent Color

Set the accent color for form controls.

View as Markdown
baselinelimited

Variants

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

Breakpoints

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

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

States

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

h:ac:indigo-8On :hover.
f:ac:indigo-8On :focus.
fv:ac:indigo-8On :focus-visible.
a:ac:indigo-8On :active.
d:ac:indigo-8On :disabled.
fc:ac:indigo-8On :first-child.
c:ac:indigo-8On :checked.
e:ac:indigo-8On :empty.
fw:ac:indigo-8On :focus-within.
i:ac:indigo-8On :invalid.
in:ac:indigo-8On :indeterminate.
lc:ac:indigo-8On :last-child.
nc:ac:indigo-8On :nth-child.
r:ac:indigo-8On :required.
ro:ac:indigo-8On :read-only.
v:ac: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::ac:indigo-8On ::after.
b::ac:indigo-8On ::before.
p::ac:indigo-8On ::placeholder.
s::ac:indigo-8On ::selection.

Opacity

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

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