by rado · 6y ago · 0 comments
1. https://angry-hypatia-f1529a.netlify.com/
2. https://github.com/philippbosch/tailwind-ui-purge-css-exampl...
If even the creator of Tailwind doesn't use Tailwind properly, does anyone?
"PHP is an awful language, superior developers write in Perl."
"Rails is bloated and slow, making it unfit for any real work."
"True developers don't rely on frameworks, writing all your own code is the only way to be performant."
If you wanna handicap yourself, be my guest.
I've written three or so projects in TailwindCSS, and it lets me create responsive designs quickly. It gives me a very sane set of defaults to build off of. And most importantly, it helps me get a product to production faster than writing raw CSS.
personally having written css since I was a teenager, my gut reaction is "eww", but if the team or stakeholders deem it to add value to a project and not affect productivity, sure why not?
CSS frameworks are great because there is a flavor that should fit just about anyone.
See how dumb that sounds?
Yes, you can check off on your list that you no longer have any .S files. But did you actually gain anything?
The leap between vanilla css and tailwind is not large at all.
Why would you have shared in-house css and components? Just write vanilla css right?
Tailwind is that shared in-house css and components for people/team that don't have shared in-house css and components. If you can afford to build one, sure use that!
This is made for prototyping too, this is to get to the MVP quicker. Again, if you have a shared in-house css and components library that does the same, sure use that instead, it makes much more sense!
> Those were fine when I was a jr developer - not anymore
That's a scary sentence. Why do you believe it matter whether you are junior or not to use that library? A library is made to avoid doing twice the works. If you already did that work, you don't need that library, that's for sure, but it's totally unrelated to your level as a developer.
I'm not particularly against JavaScript, but I'm not willing to install and use npm and several hundred dependencies.
All documentation for purgecss always includes postcss and a gazillion other packages I have never heard of.
Maybe something in Go, as a single executable?
still in js, but very fast, ~10KB (min), 0 dependencies, and does not require npm [1]:
however, it expects properly formed html and css; the parsers are quite unforgiving.
(i'm the author)
plus javascripts