I love TailwindCSS 💙

I love TailwindCSS 💙

6 reasons you should try it on your next project

·

2 min read

  1. No need for naming CSS classes.

    As a project grows, it gets hard to find new names for your containers and cards. Your css file becomes a mess and it becomes really hard to maintain. With Tailwind, you just add pre-built utility classes to your elements and the styles are applied automatically.

  2. Write less, do more.

    All of Tailwinds classes are shorter versions of their CSS counterpart so you get to type less and do the same or more. Also, some of these classes let you do in one word what would take you like 3 or more lines of CSS.

  3. Easy responsiveness.

    Thanks to the prebuilt breakpoints, classes can be applied conditionally making responsiveness a breeze.

  4. Design system.

    Too much freedom can cause problems when it comes to design. TailwindCSS provides standard sizing and positioning values to help us keep our layouts properly spaced and sized.

  5. The config file.

    Tailwind includes a config file where you can set your color palette, custom sizes, spacing and a bunch of stuff, helping you configure every project to a specific.

  6. Incredible documentation and community support.

    Tailwind’s documentation is complete and perfectly put together, with tips and guides for installation and usage. Also, there is a lot of content online for Tailwind, so chances are if you want to build it, someone else has already made a tutorial for it.

Disadvantages of TailwindCSS

Tailwind is not perfect. Like every technology it has its flaws, so you have to choose the one that better fits your likes and needs.

  1. Ugly HTML.

    Your HTML will be filled with utility classes which will make your code less readable.

  2. Takes time to learn.

    Since tailwind is just easier CSS, you have to learn the CSS fundamentals. However, since CSS is the standard for styling websites, I think it’s better to take the time to learn CSS than to learn some other framework like Bootstrap.

  3. No prebuilt components.

    You will have to style your components from scratch, this is great if you want a unique look but can be tedious.

Â