And I'd say that striping the cascade, removing selection and specificity and implementing new ways to do the same things (ie: peer-[:nth-of-type(3)_&]:block) is indeed reinventing our use of CSS.
And I'd say that striping the cascade, removing selection and specificity and implementing new ways to do the same things (ie: peer-[:nth-of-type(3)_&]:block) is indeed reinventing our use of CSS.
Tailwind is just that, but unified across all projects, with better tooling (VS code integration, tree shaking, lighter css files)
I’ve been working towards emailing you to ask if I could upgrade patrickcollison.com
There are hundreds of little tiny css style rules and fixes for a perfect website, and you have to remember them all. Tailwind has done all of that, plus a bunch of more.
Their utility classes are their biggest feature in my opinion. Just the ability to set dark mode styles inline with my light mode styles seal the deal for me alone.
So I have all the same kind of files, and change the design tokens accordingly. The only difference is I configure in CSS whereas you configure in JS. You can bundle it all and keep reusing the same files as you would do in Tailwind.
For someone starting a brand new app from scratch, they might want to lean on existing css design token libraries.
Design tokens aren’t anything new; Bootstrap has been using them for margin for years. mr-1 mt-2