Skip to main content

Border Color

Set the color for element borders.

View as Markdown
baselinewidely

The same values work with bbc, blc, brc & btc, as in btc:red-5.

Variants

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

Breakpoints

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

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

States

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

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

Opacity

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

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