V3 -> V4 Prefix Option #15807
Replies: 3 comments 1 reply
-
https://v3.tailwindcss.com/docs/v4-beta#using-a-prefix
|
Beta Was this translation helpful? Give feedback.
-
Thanks. That is a significant change to roll through the code base... BTW, that seems to be missing in the 4.0 docs. The link you sent me was for beta and had v3 displayed on the page. |
Beta Was this translation helpful? Give feedback.
-
I don't like this change. The prefix now looks like a modifier like hover, focus etc instead of just being what it's supposed to be, which is a prefix to the main part of the class name (hover:tw-bg-red-100 for example). It's confusing, harder to read and lessens the usability of it. What was the reasoning behind changing this behaviour? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I can't seem to find any documentation about using the prefix option from V3 in V4.
module.exports = { prefix: 'tw', ...
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions