Re:Signals for Tailwind CSS (styling based on ancestor state...
by aidos on Sunday September 01, 2024 @03:34AM
(#41415022)
No. That’s the point of tailwind. You can include things like hover states. Inline css hits a roadblock there and you’re forced to go out to a style tag. Then you have to start naming things. Then you risk conflicts.
That’s the problem tailwind solves.
If those declarations are relevant to multiple components within your codebase, then you'll still need to leave the context when your styles are inlined and therefore declared in multiple places