|
|
|
|
|
by code_runner
1042 days ago
|
|
Tailwind gives something like a fluent interface. div.height(maxVH).color(primary).hide() It’s all stuffed in classes because that’s the limitation given and this information belongs in the markup. The above is much cleaner to me than: div.class(“primary”). I need to go find primary. What is the parent class. What happens if this isn’t a div now etc. what happens if the parent isn’t a div? Tailwind just spells it out for you right alongside the layout so that you have all the information in one place. For me personally, I was able to do things in tailwind I could never do in raw css, but I bet I got better at css as a result. The docs are also incredible for tailwind. As good as mdn is, you need to already know what you’re looking for. |
|