There are 3 ways to style your web application
- CSS — Vanilla CSS
- Component Frameworks— Bootstrap or others
- Utility Framework — Tailwind
So before going deep-dive about which approach might be good or you should approach, I want to discuss Component Frameworks and Utility Frameworks as these are buzz words.
Component UI Frameworks these frameworks provide full styling for the whole component by applying minimal class or you can say, styling is provided component-wise.
ex- if you have to create a button component in Bootstrap then you can use it like
Utility UI Frameworks these frameworks do not provide full styling for the whole component but these kinds of the framework will provide utility classes, using those classes you have to create the component.
ex- if you have to create a button component in Tailwind then you can use it like
Advantages of using Vanilla CSS
- Full Control
- No unnecessary code
Disadvantages of using Vanilla CSS
- The danger of bad code
- Require much time
Advantages of using Component Frameworks
- Rapid Development
- No danger of bad code
Disadvantages of using Component Frameworks
- Very Less Control
- Unnecessary code
Advantages of using Utility Frameworks
- Faster Development
- No danger of bad code
Disadvantages of using Utility Frameworks
- Little Control
- Unnecessary code
The decision will be yours, which approach you to want to follow as per project requirements.
👏👏 Happy Coding and learning…