Skip to main content

Text Decoration Thickness

Set the thickness of decorative lines on text.

View as Markdown
baselinewidely
ClassCSS
tdt:0text-decoration-thickness: 0;
tdt:1text-decoration-thickness: 1px;
tdt:2text-decoration-thickness: 2px;
tdt:3text-decoration-thickness: 3px;
tdt:4text-decoration-thickness: 4px;
tdt:autotext-decoration-thickness: auto;
tdt:fftext-decoration-thickness: from-font;

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

a::tdt:4On ::after.
b::tdt:4On ::before.
p::tdt:4On ::placeholder.
s::tdt:4On ::selection.