2 ms·
There's no reason you can't combine then, and frameworks like Tailwinds mentioned above let you make those combined styles through config automatically. Howeve
by manigandham 8y ago
There's no reason you can't combine then, and frameworks like Tailwinds mentioned above let you make those combined styles through config automatically.
However, my point was that it's a great fit for React and other SPA frameworks, where you can just create a <DangerAlert /> component instead, and inside you can use component styles.
But whatever works for you.
- wvenable 8y agoBut if you're isolating styles inside react components, you're back to being able to use inline-styles. You can just functions and variables if you need standardization. Something like Tailwinds adds a level of indirection not a level of abstraction.
- deleted 8y ago[deleted]