by ccmcarey on 4/7/21, 6:05 PM with 123 comments
by Yabood on 4/7/21, 7:34 PM
I had two major complaints and this update fixes both. The first is the enormous size of the css file locally, which caused the browser to become considerably slower and made the developer tools really slow to load when selecting elements. The second was the lack of the !important selector.
This is a solid update. Kudos to the team.
by franklyt on 4/8/21, 6:36 AM
Note: I’ve written a lot of CSS and generally prefer rolling my own components to using a library... perhaps I’m not the target audience. Perhaps this is a cherry flavor to make the “designing your own UI” medicine go down more easily. Perhaps I’m mistaken and not being charitable enough, too.
by jerrygoyal on 4/7/21, 10:17 PM
So, when you use JIT you no longer get all tailwind classes in chrome dev tools only the ones you applied to components. I know it's by design to keep css lightweight. But that also means I can no longer design UI using Chrome dev tools. Only when I apply tw classes directly to component in editor like vscode it reflects the change in browser. this back and forth cycle between editor and chrome took the fun away from me :(
by mgkimsal on 4/7/21, 8:50 PM
When I'm building, I'm typically using a toolkit like vuetify or bootstrapvue. These are dozens of components - tested, documented, expanded on, and styled (using bootstrap or material design or... whatever).
The 'just to go tailwind!' I keep seeing seems to assume I want to rebuild components (and then test them) which already exist, and are designed to work together. The common refrain is "but all those sites look the same!" but... I can change colors, sizes, and... when needed, a bit more, by going in to the scss (or similar) and recompiling.
I understand the 'purge' stuff in tailwind is nice and useful (tested it firsthand) but the time/effort of rebuilding large sets of components (which are, often, by and large commodity things) is so far a hard sell for me. I was on a team last year that was in their second round of developing their own in-house UI toolkit - basically recreating most of bootstrap-react, but poorly, and with no testing or accessibility, because "bootstrap is bad". They were so far behind they thought they were ahead...
I'm just not grokking all the tailwind love. I've played with it, and yes... I guess anything that you learn and spend time with will, overtime, become 'natural' and save you time.
It's impressive tech, for sure - not trying to downplay it.
by sb8244 on 4/7/21, 9:08 PM
by lhorie on 4/7/21, 8:49 PM
by sam_goody on 4/7/21, 7:19 PM
Large companies have too much baggage - fear of breaking compatibility, and don't develop new enough things.
There is a certain size where changes are exciting, or certain company cultures that encourage new stuff. Tailwind is there, and it is always fun to get their update emails.
by halfmatthalfcat on 4/7/21, 10:00 PM
by yowlingcat on 4/7/21, 8:47 PM
I'll echo other folks who have said that using Tailwind has significantly increased how quickly I can put together frontend stuff -- it's close to a 5x speedup for me workflow wise.
by sakopov on 4/7/21, 9:05 PM
by davzie on 4/7/21, 8:19 PM
by NiceWayToDoIT on 4/7/21, 8:21 PM
by stephen on 4/7/21, 9:00 PM
That said, self-promotion disclaimer but if you like inline/utility CSS, and also like TypeScript/React/Emotion, we've got a "Tailwinds-ish" CSS-in-JS library that we've enjoyed so far:
https://github.com/homebound-team/truss
Would love to have people try it out.
by Kaze404 on 4/7/21, 6:52 PM
Can't wait to upgrade Tailwind on my project and try this out :)
by encoderer on 4/7/21, 9:37 PM
by nojvek on 4/8/21, 12:19 AM
I feel tailwind is somewhat going down that path, but I wonder if this is a problem that a bundler can solve.
I use tailwind with tsx react components and it seems the tailwind just-in-time mode won't work with that.
by Vuska on 4/8/21, 3:59 PM
When Laravel refreshed its documentation design, I wrote a stylesheet to revert it almost entirely to the old design. I could do it because restyling something like `.sidebar` is super simple. The new class list is
fixed top-0 bottom-0 left-0 z-20 h-full w-16 flex flex-col bg-gradient-to-b from-gray-100 to-white transition-all duration-300 overflow-hidden lg:sticky lg:w-80 lg:flex-shrink-0 lg:flex lg:justify-end lg:items-end 2xl:max-w-lg 2xl:w-full
And that is much harder to maintain in a user style.by canyonero on 4/7/21, 10:55 PM
One area I'd love to see Tailwind tackle is better targeting for child elements. I understand the library is functional and the classes are atomic, but I think being able to chain and target arbitrary children elements would be quite powerful.
by nikisweeting on 4/8/21, 5:22 AM
<div class="md:top-[-113px]">
Instead of this: <div class="md" style="top: -113px">
Why would you want to inline your overrides directly in the class names instead of just using style?by gvkhna on 4/7/21, 7:06 PM
Is there a vscode extension that possibly aligns classes in new lines? Alphabetical sorting could be nice as well.
Is this on the horizon for the Tailwind team? The intellisense extension is quite good so it’s possible this is a problem they are working on as well.
by idkwhoiam on 4/8/21, 10:47 AM
by nickjj on 4/7/21, 10:22 PM
- https://github.com/nickjj/docker-flask-example
by jackconsidine on 4/7/21, 8:17 PM
Unfortunately, the podcast hasn't been kept up in the past few months. I assume TailWind is taking all of Adam's time now?
by WORMS_EAT_WORMS on 4/7/21, 8:48 PM