Re:In defense of functional CSS
by marcosdumay on Thursday September 27, 2018 @05:32PM
(#18088936)
> It's easy to find bg-green on buttons and just find/replace with bg-yellow.
Oh, that's because running sed over all your project files, all in a set of weak typed languages is easier than changing a definition in a single place. I totally get it.
Also, using Tailwind/functional CSS for items that are repeated over and over on your site like buttons, you can easily extract them to a component. Switching from bg-green to bg-yellow would be as simple as opening your SASS/LESS file for components or button components and replacing it in that one spot.