<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jombojo</title>
    <description>The latest articles on DEV Community by Jombojo (@jombojo).</description>
    <link>https://dev.to/jombojo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F876380%2F3175aea2-ee87-4e90-b95e-7fa9d0179df2.jpeg</url>
      <title>DEV Community: Jombojo</title>
      <link>https://dev.to/jombojo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jombojo"/>
    <language>en</language>
    <item>
      <title>First real contact with Tailwind.</title>
      <dc:creator>Jombojo</dc:creator>
      <pubDate>Fri, 17 Jun 2022 15:41:40 +0000</pubDate>
      <link>https://dev.to/jombojo/first-real-contact-with-tailwind-1g9m</link>
      <guid>https://dev.to/jombojo/first-real-contact-with-tailwind-1g9m</guid>
      <description>&lt;p&gt;Are you kind of a new webdev? Are you tired off the mess that is almost any big css file? Fear not, because I have the perfect thing for you and it's called &lt;strong&gt;Tailwindcss&lt;/strong&gt;. Now, I can understand your apprehension. Because this thing that I'm talking about still has css in the name, but fear not. If you go down the &lt;strong&gt;Tailwindcss&lt;/strong&gt; route then you will never have to make a separate stylesheet again*. And this tutorial will help you get started.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to get started.
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;First type this in your terminal.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -D tailwindcss
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Then this, also in terminal.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx tailwindcss init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;You'll notice a file called app.css, put this in it.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@tailwind base;
@tailwind components;
@tailwind utilities;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Put this in terminal.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;And voila.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Dante, I have no idea what I just did.
&lt;/h2&gt;

&lt;p&gt;Oh yeah, I guess I forgot to elaborate. But fear not, because Tailwind is super intuitive once you start working with it. And the only thing you need to know about it before starting is that you influence styling with the class parameter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Now, here is an example.
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lwbpHraz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbflnxrcoes5lqphnls8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lwbpHraz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbflnxrcoes5lqphnls8.png" alt="Image description" width="880" height="83"&gt;&lt;/a&gt;&lt;br&gt;
 As you can see, this link has a couple of styling attributes. A lot of them are pretty clear, like: font-semibold, text-sm, border, etc. Some require a little explanation. Like px-4, this means that this element will have 4 padding on the x-axis. Also one "unit" in tailwind equals 0.25 rem. So px-4 means that the element has one rem of padding left and right.&lt;/p&gt;

&lt;h4&gt;
  
  
  Last note
&lt;/h4&gt;

&lt;p&gt;Tailwind has good documentation and if you like working with it then I recommend that you check it out here: &lt;a href="https://tailwindcss.com/docs/utility-first"&gt;https://tailwindcss.com/docs/utility-first&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, this concludes my tailwind starter tutorial. I hope anybody reading this was able to take something away from this. And I wish anybody going down the coding path the best of luck&lt;/p&gt;

</description>
      <category>tailwindcss</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>vscode</category>
    </item>
  </channel>
</rss>
