Skip to main content

Skew

Set the skew for an element.

View as Markdown
baselinewidely
ClassCSS
ts:1transform: skew(1deg);
ts:2transform: skew(2deg);
ts:3transform: skew(3deg);
ts:6transform: skew(6deg);
ts:12transform: skew(12deg);

The same values work with tsx & tsy, as in tsy:12.

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

a::ts:12On ::after.
b::ts:12On ::before.
p::ts:12On ::placeholder.
s::ts:12On ::selection.

Negative

Put a minus after the colon to negate a value.

ts:-12A minus after the colon.