News for hackers. Stuff that matters.
Re:What working with Tailwind CSS every day for 2 years look... by pupppet on Tuesday November 29, 2022 @12:24PM (#33790409)
My best argument against it is whatever the learning curve, you're better served just spending that time learning to write CSS instead.
Re:What working with Tailwind CSS every day for 2 years look... by hbn on Tuesday November 29, 2022 @12:35PM (#33790584)
It's not a replacement for CSS, it's an extension of it.

You shouldn't use Tailwind if you don't already know CSS.

Re:What working with Tailwind CSS every day for 2 years look... by pupppet on Tuesday November 29, 2022 @12:38PM (#33790618)
I'd be very surprised if there are many devs with a deep understanding of CSS using Tailwind.
Re:What working with Tailwind CSS every day for 2 years look... by jmull on Tuesday November 29, 2022 @01:29PM (#33791261)
Well... you can bumble through using tailwind without understanding it much in the same way you can bumble through using CSS without understanding it much.

There are plenty of people bumbling through with both.

But understanding the CSS is needed to use it reasonably well.

Re:What working with Tailwind CSS every day for 2 years look... by danielvaughn on Tuesday November 29, 2022 @01:52PM (#33791562)
I'm sorry but this is just a crazy thing to say. You cannot use Tailwind without understanding CSS.

Take the example `block`. Ok so a junior FE dev is supposed to use this class without understanding CSS? How?! It just maps to `display: block;`. It hides literally none of the complexity.

Re:What working with Tailwind CSS every day for 2 years look... by pupppet on Tuesday November 29, 2022 @01:59PM (#33791646)
>It hides literally none of the complexity.

If it didn't hide any of complexity you'd be writing CSS.

Re:What working with Tailwind CSS every day for 2 years look... by danielvaughn on Tuesday November 29, 2022 @02:14PM (#33791822)
Nope, it saves me (a) keystrokes and (b) design effort. The restricted subset of color options, for example, lets me use a predictable color system out of the box without having to think about it. It's not about removing "complexity" in the sense of understanding how CSS works.
Re:What working with Tailwind CSS every day for 2 years look... by pupppet on Tuesday November 29, 2022 @03:24PM (#33792764)
With a stylesheet you have the styles in one place, with Tailwind you repeat it on every element. Yes components and copy/paste are a thing but I'd be very surprised if you're having to manage less style code with Tailwind. As for design effort, setup a few primary/secondary accent colors as global variables.
Re:What working with Tailwind CSS every day for 2 years look... by danielvaughn on Tuesday November 29, 2022 @03:36PM (#33792917)
Not exactly - with Tailwind you aren't repeating the design decision, only the scalar value. So `border-2` might mean a border width of 4px or 6px or whatever, but that's the design decision that is encapsulated within the theme configuration.
Re:What working with Tailwind CSS every day for 2 years look... by wstuartcl on Wednesday November 30, 2022 @12:52AM (#33797444)
I don't agree with the parent poster, but I would say that there is a large portion of frontend devs that "don't understand css" at a very deep level. For every 1 that does there are a good 9 or 10 that just get enough to get by.

That said -- you need to know the average amount of CSS to be successful using tailwind.

Re:What working with Tailwind CSS every day for 2 years look... by hbn on Tuesday November 29, 2022 @02:35PM (#33792126)
I'll give you an example of one:

Adam Wathan, the creator of Tailwind

Re:What working with Tailwind CSS every day for 2 years look... by CapnCrunchie on Tuesday November 29, 2022 @12:29PM (#33790488)
My understanding of CSS has gotten a lot better from using Tailwind.
Re:What working with Tailwind CSS every day for 2 years look... by postalrat on Tuesday November 29, 2022 @12:33PM (#33790550)
Have you reached a stage where you no longer feel its a good idea or are you sticking with it?

I considered using it for a few projects but once I start I feel it too much work with no payoff.

Re:What working with Tailwind CSS every day for 2 years look... by nisegami on Tuesday November 29, 2022 @12:33PM (#33790553)
Same here. The CSS that each Tailwind class corresponds to is very visible in the documentation itself.
Re:What working with Tailwind CSS every day for 2 years look... by terminal_d on Tuesday November 29, 2022 @02:44PM (#33792268)
This has been my experience as well. Tailwind is a good pair of support wheels, but it gets annoying after a while, and is difficult to maintain long-term.
Re:What working with Tailwind CSS every day for 2 years look... by greenhatman on Tuesday November 29, 2022 @03:38PM (#33792952)
What make it difficult to main long term for you?
Re:What working with Tailwind CSS every day for 2 years look... by super256 on Tuesday November 29, 2022 @12:26PM (#33790453)
When you pick up tailwind, you will automatically learn vanilla CSS along the way.
Re:What working with Tailwind CSS every day for 2 years look... by Bilal_io on Tuesday November 29, 2022 @12:34PM (#33790567)
I like Tailwind, but I am not sure I'd recommend it to someone without prior experience and deep understanding of CSS. In my opinion, abstractions rarely teach us the underlying layers of a technology.
Re:What working with Tailwind CSS every day for 2 years look... by super256 on Tuesday November 29, 2022 @01:32PM (#33791304)
> I like Tailwind, but I am not sure I'd recommend it to someone without prior experience and deep understanding of CSS. In my opinion, abstractions rarely teach us the underlying layers of a technology.

I started with Tailwind and as I learned CSS along the way. Obviously people will look up stuff on MDN when they are stumbling on terms they didn't know about.

The tailwind docs + tw-intellisense plugin [1] are pretty good, too. Especially since the extension shows the raw CSS behind the abstraction when you hover over a class name.

[1] https://marketplace.visualstudio.com/items?itemName=bradlc.v...

Re:What working with Tailwind CSS every day for 2 years look... by greenhatman on Tuesday November 29, 2022 @03:38PM (#33792946)
Hard disagree on that one. You can learn Tailwind in an evening.