Re:TailwindCSS v2.0
by JxLS-cpgbe0 on Wednesday November 18, 2020 @04:09PM
(#25142473)
> find and replace works fine
It would replace every `.font-extrabold` element on the page.
What if I only want to update my extra bold headlines, not the extra bold subheadings? Global search-and-replace breaks my subheadings.
>> 5. Not skipping back and forth between HTML or CSS files [with Tailwind]
> You absolutely do skip between lots of HTML [with Tailwind]
??
Yep. There's so many global replace situations where the logic completely breaks.
Re:TailwindCSS v2.0
by lemonberry on Wednesday November 18, 2020 @07:37PM
(#25144762)
In my experience global replace is much easier across multiple component files rather than multiple CSS files. If I need to do change a font color I do a search and know to change it based on the file/component it's used in. If I had to change the color in css files I'd have to review the class and also track down where that class is in use.
You absolutely do skip between lots of HTML/JSX/VUE files, but that's true of any project. The point of tailwind is to keep you in the view layer of your project and not jumping between more than a browser and one tab in a code editor when building your UI.