tailwindcss
tailwindcss copied to clipboard
Allow :global selector around @tailwind
Here is an updated version of https://github.com/tailwindlabs/tailwindcss/pull/8418
The full explanation is there but essentially comes down to using CSS Modules with the default of a local scope. It helps prevent any custom css from conflicting in a large project while allowing the developer to use Tailwind for most components.
@adamwathan @thecrypticace Can someone take a look at this? I don't want to bug you, but just want to get it on your radar! Thanks!
@RobinMalfait @KrisBraun Would it help this PR's chances if I rebased off of master again?
Hey thanks for this! We decided to fix this more universally by just dramatically loosening the restrictions around nesting here: https://github.com/tailwindlabs/tailwindcss/pull/13325
So this should work as expected when we tag the next release, likely today 💪
Really appreciate the PR!
Awesome! I appreciate the work and you letting me know! 🎉