[Feature]: Tailwind will automatically add content: ''
.
#405
Labels
✨ Feature Request
Something should be added
preset:tailwind
Affects @twind/preset-tailwind
🌬 Tailwind CSS compatibility
Some feature of Tailwind CSS is missing or not working as expected
Describe the problem
Tailwind's preflight base styles will include
content-['']
any time you use thebefore
andafter
modifiers.Documentation: https://tailwindcss.com/docs/hover-focus-and-other-states#before-and-after
Describe the proposed solution
It should detect when I use
before:..
andafter:...
classes and generatecontent: ""
.Tailwind does something like:
Twind already has
But does no futher things it seems.
Alternatives considered
Define it explicitly:
<div class="before:content-[''] before:block ...">
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: