A Cup of Tailwind CSS
As programmers, we love to simplify life. Tailwind CSS is a framework created to help programmers avoid writing a humongous amount of CSS while allowing us to style our design directly in HTML.
However, nothing is perfect. Just like drinking a cup of tea, some people may like Black Tea and some may prefer Green Tea. So, let's not talk about tea and start evaluating the taste.
PROS
One for All: It makes work easier because one doesn't need to switch between HTML and CSS. Everything can be done on one page.
Concise CSS Styling: CSS code is simplified into smaller blocks of "index" classes which can be used immediately in an HTML file.
Robust and Responsive Customization: Tailwind CSS is a responsive and mobile-friendly CSS Framework. It is also open source, providing freedom for customizations.
Others:
- Great Community Support: The framework is developed by top-notch engineers. The code is constantly being maintained and updated.
- CSS Power Up: One doesn't need to know CSS beforehand to use Tailwind CSS.
CONS
Verbose HTML Code: Due to the nature of having everything implemented together, code may become difficult to read.
Others:
- Lack of Styling Components: Some people may want to structure their design in components. Tailwind CSS has a different design workflow.
- Learning Curve: Some people hate to memorize vocabulary.
Summary
Great for writers, sad for readers.
Secret Message
You can balance code readability and coding efficiency by using Tailwind CSS only for styling such as hovering effects. Everything else — styling components, positioning, etc. — could remain in traditional CSS.