---
title: "Discussion on \"The Pros and Cons of TailwindCSS\" | Hashnode"
description: "Discussion on \"The Pros and Cons of TailwindCSS\". Why Tailwind is not just inline CSS"
url: "https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Pros and Cons of TailwindCSS](https://webartisan.info/the-pros-and-cons-of-tailwindcss?utm_source=hashnode&utm_medium=feed)

Why Tailwind is not just inline CSS

Jul 21, 2022 · 14 min read · webartisan.info  
Updated Mar 26, 2024  
Read the article

-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#css](https://hashnode.com/tag/css)

## Written by

[JD Lien](https://hashnode.com/@jdlien)

@jdlien · Edmonton, Alberta, Canada

  
[View profile](https://hashnode.com/@jdlien)

I teach people how to be awesome devs.

I have been developing websites professionally since 1999 and have used a number of technologies and watched the evolution of the web since its early days. I write about PHP, Laravel, Tailwind, and topics about improving your career as a developer.

## Responses 17

Markdown supported · ⌘↵ to post

[Shaun McCoy](https://hashnode.com/@guesswho78)

[Sep 25, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/632fcf6da50ebf1cd1490876)

The biggest drawback i've found with Tailwind is when creating reusable components. I've been working on a component library for use in our various projects. It seems to be overly complicated to make the components more customizable. It could just be my inexperience when it comes to Tailwind and Vue components though.

[JD Lien](https://hashnode.com/@jdlien)

[Sep 25, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/632fcf6da50ebf1cd1490876#reply-632fd6533ac18d0d78a02d1a)

The funny thing about this is that I’d say it’s perfect for that. You might need to be a bit careful about what styles you add by default if you want them to be customized (eg, don’t specify a font size if you want to leave that up to the user of a component).

I think the easiest way to achieve this is to add !important variants of styles, so they will override the defaults. (Although this may be considered a poor practice, it works very well).

Might this approach help? It has worked well for me in the past!

[Developer Avocado](https://hashnode.com/@AvocaDEV)

[Aug 9, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62f28c74a56ed86b41c6770e)

Great write up 💪

[Andrew Baisden](https://hashnode.com/@andrewbaisden)

[Aug 8, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62f0db88dfc2b15565886028)

Insightful article, Tailwind is so popular these days.

[Donovan Gomez](https://hashnode.com/@donovan)

[Jul 28, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62e2ea99d15a9fb24e517d99)

Awesome article [JD Lien](https://hashnode.com/@jdlien)! There seems to be an article every week trashing on tailwind but it never tells the other side. Thank you!

[Marcelo Zárate](https://hashnode.com/@marcelozarate)

[Jul 28, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62e28ee5d15a9fb24e516d6d)

Going straight to favs! You just used the words I can't when trying to describe why and why not Tailwind. I love it, and love your website too!

[VanessaDecker](https://hashnode.com/@VanessaDecker)

[Jul 28, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62e275ddd7b405bea155784d)

nyc

[Shailesh Parmar](https://hashnode.com/@shaileshParmar11)

[Jul 28, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62e2238ad15a9fb24e51594d)

[Sachin Chaurasiya](https://hashnode.com/@Sachinchaurasiya)

[Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou)

[Jul 25, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62de8ca78730728f62e8b0f1)

A little bit irrelevant to this article, but you have a lovely personal website!

[JD Lien](https://hashnode.com/@jdlien)

[Jul 25, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62de8ca78730728f62e8b0f1#reply-62deaa66790e138f3d396818)

Ha, thanks! I get so many comments on that, I should write an article about how I designed that :)

[Daniel Brobäck](https://hashnode.com/@DanneBrob)

[Jul 25, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62de84308730728f62e8ae9a)

Thank you for an excellent read 🏆

[James Q Quick](https://hashnode.com/@jamesqquick)

[Jul 25, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62de7e65790e138f3d396038)

Love this. Great article.

[JD Lien](https://hashnode.com/@jdlien)

[Jul 25, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62de7e65790e138f3d396038#reply-62deaa92790e138f3d396824)

Thanks James! I appreciate the feedback and thanks for the follow on Twitter!

[Mani Gopal](https://hashnode.com/@tipseason)

[Jul 24, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dc9e62b12ca5754f6a572c)

Thanks for great writeup. Curious to know what is the difference between TailwindCSS Vs Twitter boostrap ?

[JD Lien](https://hashnode.com/@jdlien)

[Jul 24, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dc9e62b12ca5754f6a572c#reply-62dc9f44b12ca5754f6a573f)

The main difference between Bootstrap and Tailwind is that Bootstrap is a component-based set of classes, which is a more traditional way of using CSS. For instance you have card components, button components, a jumbotron, etc.

Bootstrap does have some “atomic” utility classes, but for the most part, there’s a prescriptive approach to the design that intends for you to use certain components for certain elements.

One drawback of this is that it gives you a bit less flexibility (however, you could always customize it).

Tailwind uses much more simple and generic “atomic” classes that only do one simple thing well, and you make your styles by combining a bunch of these wherever you need them.

I hope that helps!

[Yogesh Bhawsar](https://hashnode.com/@yo9e5h)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dc18d70da9857574b20fd0)

So I was reading the cons and thought you must be writing just plain CSS for all of your project?

[JD Lien](https://hashnode.com/@jdlien)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dc18d70da9857574b20fd0#reply-62dc1b96b12ca5754f6a4451)

Most of the time before I used Tailwind I did use vanilla CSS. Although I used Sass when it got more complicated. I'm not sure what you are thinking, but I don't think most CSS preprocessors change the game.

If you use a framework like Svelte, or Vue with scoped styles you can certainly minimize a lot of these drawbacks!

[Kirk Gordon](https://hashnode.com/@kirk345)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dc17780da9857574b20f8d)

Excellent write-up!

[JD Lien](https://hashnode.com/@jdlien)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dc17780da9857574b20f8d#reply-62dc1ac10da9857574b21043)

Thanks! I'm glad you enjoyed it.

[boleknowak](https://hashnode.com/@boleknowak)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dbec6e38759e6b4982a7e2)

Hi, remember that you can add Tailwind classes to your CSS files.

For example:

```
.card {
    @apply p-4 bg-white;
}
```

You can find more information on Tailwind docs page called: _reusing-styles_

[JD Lien](https://hashnode.com/@jdlien)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dbec6e38759e6b4982a7e2#reply-62dc1a9d0da9857574b21036)

Yep! This is useful to compose your own css components when you either have something reused so often that it'd be tedious to use all the atomic utility classes, or when you need to make your own styles for things Tailwind can't do.

Then you can kind of have the best of both worlds by using short, simple Tailwind classes in your stylesheet, and you don't need separate blocks for pseudo-classes and size-classes.

Granted, the authors of Tailwind don't recommend you use @apply heavily, as there are drawbacks of doing this. With most frontend frameworks you can extract complex or reused bits of code to components which is likely the superior approach.

[Nate Hedglin](https://hashnode.com/@NatesCodeLLC)

[Jul 28, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dbec6e38759e6b4982a7e2#reply-62e2bc3ed15a9fb24e517547)

Personally, @apply is a huge anti-pattern to me. @apply is just making classes again. If I need to reuse styling then my components are probably too big. Tailwind works great with Atomic Design.

[Paweł Świątkowski](https://hashnode.com/@katafrakt)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dbd8fb38759e6b4982a437)

> But this ends up being a pretty good tradeoff, because the repetitive nature of utility classes compresses quite well at the transport layer used to transfer webpages, so the resulting different in data transfer speeds and page load performance is extremely negligible.

Do you have some resources where I could read more about this? I actually never thought about it and it sounds like and interesting topic to check.

Nice article, BTW. Telling this as a person rather reserved about Tailwind.

[JD Lien](https://hashnode.com/@jdlien)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dbd8fb38759e6b4982a437#reply-62dc1969b12ca5754f6a43ff)

Yes, Sarah Dayan did a demonstration of this taking the homepage of Algolia (where she works) and converting it into CSS components. (Granted, not by hand, which possibly could be a bit more efficient). She built this project to do that:

[github.com/sarahdayan/utility-first-compression-d…](https://github.com/sarahdayan/utility-first-compression-demo)

In the video I linked to, at this timestamp ([youtube.com/watch](https://www.youtube.com/watch?v=R50q4NES6Iw&t=785s)), she shows the differences:

_Uncompressed_ Utility: 513KB Semantic: 442KB

_Brotli Compressed_ Utility: 35KB Semantic: 34KB

So for a fairly heavy page, it ended up being a 1KB difference, or around 3% once compressed. Uncompressed the difference is much more significant, about 16% - but most webpages are delivered compressed on modern servers.

[Tochukwu Agho](https://hashnode.com/@Journeytoweb)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dbc273cf7a8a6d54f06c2f)

Thank you for throwing light on Tailwind. As a fairly new person in web development I have come across Tailwind CSS and have wondered what the fuss was about and why there was even a need for it. After reading this article I am finding myself more interested in Tailwind CSS. Off I go to watch a tutorial. Thank you again.

[JD Lien](https://hashnode.com/@jdlien)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dbc273cf7a8a6d54f06c2f#reply-62dc17e6b12ca5754f6a43ca)

Tailwind is useful but don't let that stop you from learning CSS proper. Tailwind is an awesome tool when you start building complex projects.

Good luck!

[Rachit Khurana](https://hashnode.com/@rachitkhurana)

[Jul 23, 2022](https://hashnode.com/posts/the-pros-and-cons-of-tailwindcss/62d9843359f0dc59d51f087d/comment/62dbba10cf7a8a6d54f06a9a)

Nice article
