4 ms·
I'm using tailwind in one of my projects. As a normally backend dev, I find tailwind rather weird. It seems very much like it just gives you classes for every c
by that_guy_iain 4y ago
I'm using tailwind in one of my projects. As a normally backend dev, I find tailwind rather weird. It seems very much like it just gives you classes for every css property&value match. It seems very much like I'm just writing the css but in a different way. cursor-pointer class for "cursor: pointer" for example.
However, I find the responsiveness side of things very useful.
- tough 4y agoYeah that's precisely what it is at the end of the day
- emmacharp 4y agoWhat do you mean by responsiveness?
- that_guy_iain 4y agoYou can use md:class-name so that when the screen size is the size for medium then that class will be used. An easier way to do the screen size stuff.
- emmacharp 4y agoEasier, like in less characters? Because I wouldn't say using CSS media queries is hard.
- that_guy_iain 4y agoIt's not that hard but it's more work than I would like to do as a backend developer. Realistically, I want to put as little work as possible in to frontend and focus on backend.
- pcthrowaway 4y agoYeah, tailwind isn't intended to make it so you don't have to learn CSS. It very much tries to map to CSS fairly directly, so it wouldn't prevent you from needing to learn it. > I'm just writing the css but in a different way. cursor-pointer class for "cursor: pointer" for example. The difference is, when writing the CSS yourself you also have to find a way to apply this to the thing you want it to apply to. Which means you have to write your own selector. Which gives you 1000 guns pointed at your feet, and maybe two aimed away from you (and one of those is just the same one that tailwind gives you, but less portable).
- emmacharp 4y agoWith simple linting, I think, you could make sure to disable the vast majority of these guns. But I care to hear your take about it.
- that_guy_iain 4y ago> Yeah, tailwind isn't intended to make it so you don't have to learn CSS. It very much tries to map to CSS fairly directly, so it wouldn't prevent you from needing to learn it. For me, a framework should deal with the basics and make thing easier. Making it so you just write css differently seems odd for a framework. It seems more like a css parsing framework than anything. The tailwind UI seems like a framework that provides you the basics.