Have a slant
utility out of the box.
#9474
jeroengerits
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A
slant
is a slight angle, as opposed to being horizontal or vertical.However, it differs from a
skew
because the contents of the element have the same BUT NEGATIVEskew
applied.Like demonstrated here:
It's currently possible to create a
slant
with a negateskew
on the child element. For example like this:However it would be nice to have a
slant
utility out-of-the-box. Example how it would be easier:Or even better - but not sure if that is even possible, since the child element needs to be a block:
Plugin for reference: https://github.com/pixeen/tailwindcss-slant-plugin
Source code: https://github.com/pixeen/tailwindcss-slant-plugin/blob/main/index.js
Beta Was this translation helpful? Give feedback.
All reactions