Maybe it’s easier to read style but it cause another problem that I find it really hard to get the structure of html. I have tried and I don’t like it.
I thought you are referring to the plugin not Tailwind. I have to say that I shared your opinion before I started using tailwind but after researching a bit and in particular reading this article (by the creator of tailwind) adamwathan.me/css-utility-classes-... I switched. And I have to say it was a very good decision for me.
It works best if you have a build process in your project. So if you are using vue, react .. etc with node it works very well.
At the end of the day, we should not focus on the technology but the project requirements.
Really good article. I have to admit, there are some advantages I really enjoy.
I don't need to come up with a name, I can focus on the style itself. It forces me to create a usable component when I try to write multiples of the same class name, which is a great way to force me to write reusable CSS styles. Before reading this article I thought it was the same as inline-style, but now I realize that arbitrary values are not recommended and we should use the value from the list.
But I'm finding it hard to inspect elements, since the elements don't have it's name.
Or I should try a few more times, maybe I'm just not familiar with the class names or didn't define tailwind.config.js carefully.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Maybe it’s easier to read style but it cause another problem that I find it really hard to get the structure of html. I have tried and I don’t like it.
Hard in what sense? It does not change the structure of html
It's too long and most of the time I need multiple lines. So why not just give it a scoped classname, it will make my html cleaner.
I thought you are referring to the plugin not Tailwind. I have to say that I shared your opinion before I started using tailwind but after researching a bit and in particular reading this article (by the creator of tailwind) adamwathan.me/css-utility-classes-... I switched. And I have to say it was a very good decision for me.
It works best if you have a build process in your project. So if you are using vue, react .. etc with node it works very well.
At the end of the day, we should not focus on the technology but the project requirements.
Really good article. I have to admit, there are some advantages I really enjoy.
I don't need to come up with a name, I can focus on the style itself. It forces me to create a usable component when I try to write multiples of the same class name, which is a great way to force me to write reusable CSS styles. Before reading this article I thought it was the same as inline-style, but now I realize that arbitrary values are not recommended and we should use the value from the list.
But I'm finding it hard to inspect elements, since the elements don't have it's name.
Or I should try a few more times, maybe I'm just not familiar with the class names or didn't define tailwind.config.js carefully.