4 ms·
I (not OP) get all of these, incl. the relief of not naming things. But I still prefer naming things to the class soup and the excessive repetition. ITCSS (In
by andrei_says_ 5y ago
I (not OP) get all of these, incl. the relief of not naming things.
But I still prefer naming things to the class soup and the excessive repetition.
ITCSS (Inverted triangle CSS) works with the cascade and results in clean, minimalistic CSS files.
I do not build SPAs though and do get that quick styling works really well for that scenario.
I do import Tailwind colors, spacing and sizes in SCSS maps for easy access and do like the standardized approach.
- docmars 5y agoUsing Tailwind @apply to compose utilities into classes is a wonderful feature and gets you the best of both worlds! :)
- colourgarden 5y ago> ITCSS (Inverted triangle CSS) works with the cascade and results in clean, minimalistic CSS files. The real Tailwind lightbulb for me was understanding that the cascade and actual CSS files don't matter anymore - you don't need them. No more inheritance, no more naming, no context switching. I'm a big fan of ITCSS and was using Harry's methods before he coined the name but we don't need to fight the cascade any longer. > I do not build SPAs though and do get that quick styling works really well for that scenario. Admittedly, if you're not breaking down your UI into small components then Tailwind will get real messy, real fast.