Replies: 10 comments 7 replies
|
You can actually do this already by adding module.exports = {
theme: {
extend: {
scale: {
'-1': '-1'
}
}
}
} |
|
I've been doing this (the utility names are more verbose): plugin(function({ addUtilities, theme, variants }) {
const newUtilities = {
'.flip-horizontal': {
'--transform-scale-x': '-1',
},
'.flip-vertical': {
'--transform-scale-y': '-1',
},
}
addUtilities(newUtilities, variants('flip'))
}) |
|
You can close this if you feel it's unnecessary, but I think it would be nice to have explicitly-named utilities for flipping elements; |
|
I was a bit surprised you couldn't flip using Tailwind, not even through overriding! Overriding scale wont work, it flips both x and y axis! So a |
|
@jesperp Using the example @adamwathan provided above, you should be able to do this: |
|
With JIT, you can use |
|
My solution: Classes: |
|
-scale-y-100 -rotate-180 |
|
Any thoughts on how to translate this to v4? |
|
How do I unsubscribe?
…On Wed, Nov 19, 2025 at 9:33 AM Patrick Ludewig ***@***.***> wrote:
For svg this is not working for me. The following worked for me tho for
svg in Tailwind 3.4.17:
-scale-x-100 !scale-y-100
—
Reply to this email directly, view it on GitHub
<#2146 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BS4ZOIO2QSRUJCVA4W6VV6D35Q2NRAVCNFSM6AAAAAB7OJEZOWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMBRGEYDCMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <tailwindlabs/tailwindcss/repo-discussions/2146/comments/15011010@
github.com>
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
For example:
All reactions