<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Juan Focco on Medium]]></title>
        <description><![CDATA[Stories by Juan Focco on Medium]]></description>
        <link>https://medium.com/@juanfocco?source=rss-b3c17b5758ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hMKoV_s0qpgI5xvMxrpyQg.jpeg</url>
            <title>Stories by Juan Focco on Medium</title>
            <link>https://medium.com/@juanfocco?source=rss-b3c17b5758ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 05:39:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juanfocco/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Tailwind: Pros, Cons & Differences with Bootstrap]]></title>
            <link>https://medium.com/@juanfocco/tailwind-pros-cons-differences-with-bootstrap-fdbe30e25fd0?source=rss-b3c17b5758ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdbe30e25fd0</guid>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[utility-class]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[bootstrap]]></category>
            <category><![CDATA[tailwind]]></category>
            <dc:creator><![CDATA[Juan Focco]]></dc:creator>
            <pubDate>Thu, 18 Nov 2021 18:39:55 GMT</pubDate>
            <atom:updated>2021-11-25T20:28:23.124Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bLBFlra_K_S2UIC4UnJoFQ.jpeg" /></figure><p>Tailwind is a utility-first CSS framework. Contrary to other CSS frameworks, like Bootstrap, it doesn’t come with predefined components.</p><p>Instead, <a href="https://tailwindcss.com/">Tailwind CSS</a> operates on a lower level and provides a set of CSS helper classes. By using these classes you can rapidly create custom designs with ease.</p><p>Additionally, Tailwind CSS is not opinionated, so you’re completely free to choose how to design the elements and components on your website.</p><h3><strong>Pros of Using Tailwind</strong></h3><ol><li>It has <a href="https://blog.logrocket.com/css-utility-classes-library-extendable-styles/">utility classes</a> that help you keep your color choices, spacing, typography and more stay consistent.</li><li>It’s a great tool to help you avoid using arbitrary values in your stylesheets.</li><li>When building for production, unused classes are automatically removed. This means that your final CSS bundle will be extremely compact.</li><li>You can avoid dealing with a lot of media queries in your CSS by using Tailwind’s screen sizes before any utility class. t will easily apply to any specific breakpoint.</li><li>You can also apply <strong>hover:</strong> and <strong>focus:</strong> states by adding them at the beginning of a class.</li><li>If you prefer to use classes, you can do it through the <strong>@apply</strong> directive. Simply copy and paste the list of class names.</li><li>You have the possibility to use the Dark Mode. Just place the word “<strong>dark</strong>” in front of any color utility to see it when the dark mode is active. It can be applied to background colors, text colors, border colors and even gradients.</li><li>Even though Tailwind includes a wide variety of predefined classes, virtually everything can be customized. You can add as many classes as you wish or change default values that are already predefined in the <em>tailwind.config.js </em>file<em>.</em></li><li>If you are struggling to remember some of these class names, you can always get <strong>Tailwind CSS IntelliSense, </strong>a VS Code extension that will suggest and autocomplete class names, definitions and more.</li></ol><h3><strong>Cons of Tailwind</strong></h3><p>I’ve mentioned quite a few advantages above, because the truth is, overall Tailwind is a very useful framework. However, from my first-hand experience, I’d say there are two main disadvantages.</p><p>Firstly, its weakest point is, without a doubt, the <a href="https://tailwindcss.com/docs/guides/create-react-app"><strong>install and initial setup process</strong></a>. To start using Tailwind we need to follow a series of complex steps that can take up quite a bit of your time.</p><p>And secondly, <strong>it takes some time to get used to the framework</strong> and learn the names of all the classes, in order to finally become more productive and speed up the development process.</p><h3><strong>How Does It Differ From Bootstrap?</strong></h3><p>We could compare Tailwind and <a href="https://getbootstrap.com/">Bootstrap</a> to LEGO pieces. While Tailwind provides all the separate pieces so that you can build your design from scratch the way you want to, Bootstrap provides a set of pieces already assembled, ready to be used, quicker yet harder to change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IRVTImTXJDSon1ROsRfxHA.jpeg" /></figure><h4><strong>Which One Is Better?</strong></h4><p>The answer to this question will depend on the sort of project we are dealing with and what we need to do.</p><p>For instance, if I need a quick prototype to validate an idea with a client, Bootstrap is the best choice since it provides a series of <a href="https://getbootstrap.com/docs/3.3/components/">pre-styled components</a> (form elements that can be lined up, nice buttons, table layouts, navigation bars, notifications, cards, a grid, crisp typography, and so on), already assembled, that can be used to put together a website easily and rapidly.</p><p>However, if what we have is a long-term project that requires a more customized design, then Tailwind would be the best choice since it offers utility classes that, once you get used to working with, can help accelerate the development process even more than by using vanilla CSS.</p><h4><strong>Benefits of Tailwind in Regards to Bootstrap</strong></h4><ul><li>With Bootstrap all websites have a similar design, while Tailwind always provides a unique design.</li><li>With Tailwind you can eliminate unused classes while with Bootstrap the entire content is uploaded even when it is not being used.</li><li>Bootstrap is harder to customize while Tailwind classes can easily be changed or added on.</li></ul><h4><strong>Benefits of Bootstrap in Regards to Tailwind</strong></h4><ul><li>No CSS knowledge is needed.</li><li>Less development time is needed to launch a prototype.</li><li>It has several pre-styled, prebuilt components, while Tailwind requires everything to be built from scratch.</li></ul><h4><strong>Why not use vanilla CSS as usual?</strong></h4><ul><li>You have to write your own CSS for every new element.</li><li>You have to think about naming things, adding or splitting classes.</li><li>You can’t tell what something looks like just by reading the markup for it.</li><li>You need to keep an eye on any changes to the styles, since they might break something else you aren’t currently looking at.</li></ul><p><strong>Example: developing a notification popup, with and without Tailwind.</strong></p><p>With:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LtiL8XZWXhirZ53eQ0QFgA.png" /></figure><p>Without:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_i4ReVchGd8aBPeXefgHKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2kQfIP4KU5lE9n2zrNgw9A.png" /></figure><h3><strong>Conclusion</strong></h3><p>Tailwind will not always be the best choice for every project, and that’s OK. Several different factors such as time, flexibility and knowledge will determine which tool is best suited for our specific project.</p><p>However, you may need to thoroughly analyze which choice is best for your specific situation. If, for instance, I select Bootstrap but see I need to make too many modifications, then this might be a sign that I might need to turn to vanilla CSS or to Tailwind’s utility classes.</p><p>Through my personal experiences with Tailwind, I’ve noticed that once you are acquainted with it and know the classes, the project development times cut down considerably and it’s easy to add, modify or remove any style as I see fit.</p><p>Read our previous blog: <a href="https://medium.com/createthrive/cubit-101-what-is-it-how-to-use-it-and-more-6c16ea66ba88">Cubit 101: What is It, How to Use it and More</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdbe30e25fd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>