<?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[Tailwindcss - Medium]]></title>
        <description><![CDATA[Beautiful UI components, crafted with Tailwind CSS - Medium]]></description>
        <link>https://medium.com/tailwindui?source=rss----dd81ad50c941---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Tailwindcss - Medium</title>
            <link>https://medium.com/tailwindui?source=rss----dd81ad50c941---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 22:43:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/tailwindui" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Beginner’s Guide to Tailwind CSS]]></title>
            <link>https://medium.com/tailwindui/beginners-guide-to-tailwind-css-5cf374dd08aa?source=rss----dd81ad50c941---4</link>
            <guid isPermaLink="false">https://medium.com/p/5cf374dd08aa</guid>
            <category><![CDATA[tailwind-css]]></category>
            <dc:creator><![CDATA[Neeraj Dana]]></dc:creator>
            <pubDate>Fri, 17 Nov 2023 04:28:16 GMT</pubDate>
            <atom:updated>2023-11-17T09:20:02.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d_MWbHpDDKlKlmsO" /><figcaption>Photo by <a href="https://unsplash.com/@lanju_fotografie?utm_source=medium&amp;utm_medium=referral">Lanju Fotografie</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Welcome to the world of Tailwind CSS, the utility-first CSS framework that&#39;s reshaping how web interfaces are built. Whether you&#39;re starting your journey in web development or seeking to streamline your workflow, Tailwind CSS offers a fresh, efficient approach. This guide will introduce you to the essentials of Tailwind CSS and demonstrate why it&#39;s a game-changer for web developers.</p><h3>What is Tailwind CSS?</h3><p>Tailwind CSS is a low-level, utility-first CSS framework offering a new way to style web projects. Unlike traditional CSS frameworks that provide predefined components, Tailwind allows developers to build custom designs with utility classes for every style you could need.</p><h3>Key Features:</h3><ul><li>Utility-First: This approach reduces the need to write custom CSS, as most styling can be achieved through predefined utility classes.</li><li>Responsive Design: Tailwind&#39;s mobile-first breakpoints make responsive design intuitive and straightforward.</li><li>Customization: Tailwind can be customized to fit the unique design requirements of your project, ensuring consistency across designs.</li></ul><h3>Benefits of Using Tailwind CSS</h3><h3>Simplicity and Speed</h3><p>Tailwind&#39;s utility-first approach means adding classes directly to HTML elements. This method speeds up the development process, as you don&#39;t need to switch between HTML and CSS files frequently. It also makes the code more readable and easier to maintain.</p><h3>Responsive Design Made Easy</h3><p>Tailwind&#39;s responsive utilities allow you to style elements for different screen sizes using simple modifier classes. For example, md:text-center applies text-center at medium screen sizes and above. This approach simplifies creating designs that work across all devices.</p><h3>Customization and Flexibility</h3><p>Tailwind&#39;s default configuration can be easily tweaked to match your project&#39;s design system. You can define your color palette, typography, spacing, and more within Tailwind&#39;s config file. This level of customization ensures that your project maintains a consistent look and feel.</p><h3>Getting Started with Tailwind CSS</h3><h3>Installation</h3><p>Start by installing Tailwind CSS via npm:</p><pre>npm install tailwindcss</pre><h3>Basic Setup</h3><p>Create a Tailwind config file to customize Tailwind to your needs:</p><pre>npx tailwindcss init</pre><p>This command creates a tailwind.config.js file in your project, where you can customize your design system.</p><h3>First Tailwind Project</h3><p>Begin using Tailwind in your HTML by applying utility classes. For instance:</p><pre>&lt;button class=&quot;bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded&quot;&gt;<br>  Button<br>&lt;/button&gt;</pre><p>This snippet demonstrates how to create a button with background color, hover state, text color, font weight, padding, and rounded corners using Tailwind classes.</p><h3>Core Concepts of Tailwind CSS</h3><h3>Utility-First Approach</h3><p>In Tailwind, most of the styling is done directly in the markup. Each utility class corresponds to a single CSS property. For example, mt-4 applies a margin-top of 1rem (since the default scale is based on a 4-point system).</p><h3>Responsive Design</h3><p>Tailwind uses a mobile-first breakpoint system. Classes can be prefixed with a breakpoint name to apply them only at that breakpoint and above. For instance, sm:mt-0 applies a margin-top of 0 only on small screens and larger.</p><h3>Customization</h3><p>Tailwind&#39;s configuration file (tailwind.config.js) is where you define your custom values for colors, spacing, fonts, and more. Tailwind then generates classes based on these customizations, allowing for a truly bespoke design system.</p><h3>Best Practices for Using Tailwind CSS</h3><h3>Keeping Code Clean</h3><p>While Tailwind makes styling straightforward, it can also lead to long class names in your HTML. Regularly refactoring to extract common patterns into components or using @apply in your CSS can help maintain clean, readable code.</p><h3>Optimizing for Performance</h3><p>Tailwind generates a large number of utility classes, many of which you may not use. To keep your final CSS bundle size small, consider using tools like PurgeCSS to remove unused styles from your production build.</p><h3>Conclusion</h3><p>Tailwind CSS stands out for its simplicity, speed, and customization capabilities. As a utility-first CSS framework, it empowers developers to build custom designs quickly without the constraints of traditional CSS frameworks. By embracing these concepts and best practices, you&#39;ll be well on your way to mastering Tailwind CSS and elevating your web development projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cf374dd08aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tailwindui/beginners-guide-to-tailwind-css-5cf374dd08aa">Beginner’s Guide to Tailwind CSS</a> was originally published in <a href="https://medium.com/tailwindui">Tailwindcss</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Beautiful Cards with Tailwind CSS]]></title>
            <link>https://medium.com/tailwindui/creating-beautiful-cards-with-tailwind-css-d833ccbb6e7a?source=rss----dd81ad50c941---4</link>
            <guid isPermaLink="false">https://medium.com/p/d833ccbb6e7a</guid>
            <category><![CDATA[tailwind-css]]></category>
            <dc:creator><![CDATA[Neeraj Dana]]></dc:creator>
            <pubDate>Sun, 11 Jun 2023 06:25:00 GMT</pubDate>
            <atom:updated>2023-06-11T06:25:00.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*MWnZlsmBahbE88ziZ58Xag.png" /></figure><p>In this article, we will explore how to create stunning cards using Tailwind CSS. Although we’ll be using React in the examples, the primary focus is to showcase the power of Tailwind and its ability to achieve impressive results with just a few lines of code.</p><p>Let’s start with a simple card:</p><pre>  &lt;div class=&#39;w-64 p-4 rounded-lg bg-two flex flex-col space-y-8&#39;&gt;<br>            &lt;div class=&#39;flex justify-between items-center&#39;&gt;<br>                &lt;div class=&#39;flex space-x-2 items-center&#39;&gt;<br>                    &lt;div class=&#39;w-8 h-8 rounded-full bg-gray-400&#39;&gt;&lt;/div&gt;<br>                    &lt;div class=&#39;text-sm font-medium&#39;&gt;TailwindBlog&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;StarIcon class=&#39;w-6 h-6 text-yellow-50&#39; /&gt;<br><br>            &lt;/div&gt;<br>            &lt;div class=&#39;flex flex-col space-y-2 justify-center px-6&#39;&gt;<br>                &lt;h2 class=&#39;text-2xl font-bold text-center&#39;&gt;To Simplyfy the way you work&lt;/h2&gt;<br>                &lt;div class=&#39;flex justify-center items-center py-12&#39;&gt;<br>                    &lt;img src=&#39;../../public/undraw_location_review_d5qn.svg&#39; class=&#39;h-40 w-40&#39; /&gt;<br><br>                &lt;/div&gt;<br>                &lt;h2 class=&#39;text-xs font-normal text-slate-600 &#39;&gt;<br>                    some more text for showing some description or long text<br>                &lt;/h2&gt;<br><br><br>            &lt;/div&gt;<br>            &lt;button class=&#39;rounded-lg shadow-lg bg-black flex justify-center <br>            text-sm<br>            items-center py-2 text-slate-300 font-semibold&#39;&gt;<br>                Get Started<br>            &lt;/button&gt;<br>        &lt;/div&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*YkFJ44QdORFOwWGgVDQvCA.png" /></figure><p>By using this small snippet, we can easily create a simple and beautiful card. Now, let’s generate another example:</p><pre><br>  &lt;div class=&#39;w-64 p-4 rounded-lg bg-three flex flex-col space-y-4&#39;&gt;<br>             &lt;div class=&#39;flex justify-between items-center&#39;&gt;<br>    &lt;div class=&#39;flex space-x-2 items-center&#39;&gt;<br>        &lt;div class=&#39;w-8 h-8 rounded-full bg-gray-800&#39;&gt;&lt;/div&gt;<br>        &lt;div class=&#39;text-sm font-medium&#39;&gt;TailwindBlog&lt;/div&gt;<br>    &lt;/div&gt;<br>    &lt;BellIcon class=&#39;w-6 h-6 text-gray-700&#39; /&gt;<br><br>&lt;/div&gt;<br>        &lt;div class=&#39;flex flex-col space-y-1&#39;&gt;<br><br>            &lt;h1 class=&#39;text-xl font-bold&#39;&gt;Task For Today&lt;/h1&gt;<br>            &lt;div class=&#39;flex space-x-2&#39;&gt;<br>                &lt;StarIcon class=&#39;w-4 h-4 text-yellow-500&#39; /&gt;<br>                &lt;h4 class=&#39;text-xs text-slate-600&#39;&gt;5 Available&lt;/h4&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&#39;py-4&#39;&gt;<br>                &lt;input type=&#39;text&#39; class=&#39;rounded-lg w-full bg-white flex justify-center <br>                text-xs items-center p-3 text-slate-600 &#39; placeholder=&#39;Search&#39; /&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>        &lt;div class=&#39;flex flex-col space-y-2&#39;&gt;<br>        &lt;div class=&#39;flex  space-x-2 items-center justify-between&#39;&gt;<br>            &lt;h3 class=&#39;text-md font-semibold&#39;&gt;Last Connections&lt;/h3&gt;<br>            &lt;h4 class=&#39;text-xs&#39;&gt;See all&lt;/h4&gt;<br>            &lt;/div&gt;<br>        &lt;div class=&#39;flex space-x-3 items-center&#39;&gt;<br>        &lt;img  src=&#39;https://xsgames.co/randomusers/avatar.php?g=female&#39;<br>                 alt=&#39;profile&#39; class=&#39;w-8 h-8 rounded-full&#39; /&gt;<br>                 &lt;img  src=&#39;https://xsgames.co/randomusers/avatar.php?g=female&#39;<br>                 alt=&#39;profile&#39; class=&#39;w-8 h-8 rounded-full&#39; /&gt;<br>                 &lt;img  src=&#39;https://xsgames.co/randomusers/avatar.php?g=female&#39;<br>                 alt=&#39;profile&#39; class=&#39;w-8 h-8 rounded-full&#39; /&gt;<br>                 &lt;img  src=&#39;https://xsgames.co/randomusers/avatar.php?g=female&#39;<br>                 alt=&#39;profile&#39; class=&#39;w-8 h-8 rounded-full&#39; /&gt;<br>                &lt;div class=&#39;w-8 h-8 text-xs rounded-full bg-gray-200 text-slate-500 flex items-center justify-center&#39;&gt;<br>                    +5<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>    &lt;/div&gt;<br>        &lt;/div&gt;<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*8zLAqMspzs_SeKXEB8fOZg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d833ccbb6e7a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tailwindui/creating-beautiful-cards-with-tailwind-css-d833ccbb6e7a">Creating Beautiful Cards with Tailwind CSS</a> was originally published in <a href="https://medium.com/tailwindui">Tailwindcss</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>