<?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>Forem: Timothy Sutton</title>
    <description>The latest articles on Forem by Timothy Sutton (@tjsutton11).</description>
    <link>https://forem.com/tjsutton11</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%2F252848%2Fd31db47b-4311-43e6-b4a4-ba218097ccc4.jpg</url>
      <title>Forem: Timothy Sutton</title>
      <link>https://forem.com/tjsutton11</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/tjsutton11"/>
    <language>en</language>
    <item>
      <title>Getting started with Tailwind CSS</title>
      <dc:creator>Timothy Sutton</dc:creator>
      <pubDate>Wed, 16 Sep 2020 17:48:21 +0000</pubDate>
      <link>https://forem.com/tjsutton11/getting-started-with-tailwind-css-mdf</link>
      <guid>https://forem.com/tjsutton11/getting-started-with-tailwind-css-mdf</guid>
      <description>&lt;p&gt;I recently began creating my personal portfolio in preparation for my job hunting journey, and in doing so, I started playing with different CSS frameworks. I have a little experience with Bootstrap from going through Colt Steele's "The Web Developer Bootcamp" on Udemy, but as I began working on my project, I found that Bootstrap felt heavily opinionated and overpowered a lot of what I wanted to do. &lt;/p&gt;

&lt;p&gt;Recently, I've seen people talk about alternative CSS frameworks on Twitter such as Foundation, Materialize, and many others. One of the frameworks that kept popping up is Tailwind CSS. After heading over to their site and taking a look at their docs (which are very easy to read and follow along with), I decided that I wanted to learn Tailwind and use it for my portfolio.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Tailwind
&lt;/h2&gt;

&lt;p&gt;To start off, you have two options for implementing Tailwind in your project:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You can use npm/yarn to install Tailwind (this is the approach we will use).&lt;/li&gt;
&lt;li&gt;You can include it via CDN (not recommended as you lose out on many of Tailwind's features).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;First, navigate to your project's directory and create your package.json file by using the following command in your terminal:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1qnofpbwaweenbe937e2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1qnofpbwaweenbe937e2.png" alt="Create package.json"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then, to install Tailwind, use one of the following commands:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh7x19ac7guc5zb4e6x6d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh7x19ac7guc5zb4e6x6d.png" alt="npm &amp;amp; yarn install"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now that we have Tailwind installed, open the project in your text editor of choice. &lt;/p&gt;

&lt;p&gt;At this point, you will want to create two folders in your project, one named &lt;code&gt;src&lt;/code&gt; and one named &lt;code&gt;public&lt;/code&gt;. In your &lt;code&gt;src&lt;/code&gt; folder, you will want to create a CSS file (I'll name mine styles.css). In this CSS file, we will need to import Tailwind's basic functionality using the following syntax:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Flqqmrq18q0bx76e3ejvh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Flqqmrq18q0bx76e3ejvh.png" alt="Importing Tailwind"&gt;&lt;/a&gt;&lt;br&gt;
At build-time, Tailwind will take the CSS file in your &lt;code&gt;src&lt;/code&gt; and generate a vanilla CSS file in your &lt;code&gt;public&lt;/code&gt; folder that you then link to in your HTML. &lt;/p&gt;

&lt;h2&gt;
  
  
  Building your CSS File
&lt;/h2&gt;

&lt;p&gt;There's one final thing you need to do before you can start styling your site using Tailwind, and that is creating a script to easily build your CSS file.&lt;/p&gt;

&lt;p&gt;Open your package.json file and under &lt;code&gt;scripts&lt;/code&gt;, you will want to add the following text. We will dissect what each piece means, don't worry.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5xrnerjr3f0bxy9f0h5o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5xrnerjr3f0bxy9f0h5o.png" alt="Script to build CSS file"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;build-css&lt;/code&gt;: This is the name of the script you will use in the terminal to build your CSS file. You can name it whatever you would like.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tailwindscss build&lt;/code&gt;: This tells it to use the Tailwind package and the build command&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/styles.css&lt;/code&gt;: This tells the program where the source file is that you want to build your CSS file from.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-o&lt;/code&gt;: This argument tells the program where to put the output.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;public/styles.css&lt;/code&gt;: This is the destination file of where Tailwinds should build the vanilla CSS.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Get Stylin'!!
&lt;/h2&gt;

&lt;p&gt;Now that you have Tailwind setup, you can begin using it in your project! Tailwind is made up utility classes, similar to Bootstrap, which allows you to highly customize the designs and responsiveness of your site. You can even extend the configuration of Tailwind and add your own styling, colors, fonts, etc. This tutorial is by no means exhaustive of all that Tailwind can do, but I hope that it will help you to get started!&lt;/p&gt;

&lt;p&gt;I would highly encourage anyone to go and check out the &lt;a href="https://tailwindcss.com/docs/installation" rel="noopener noreferrer"&gt;Tailwind docs&lt;/a&gt; to learn more about what all you can do!&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>css</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>You don't need to be a master...</title>
      <dc:creator>Timothy Sutton</dc:creator>
      <pubDate>Mon, 24 Aug 2020 00:48:14 +0000</pubDate>
      <link>https://forem.com/tjsutton11/you-don-t-need-to-be-a-master-2mkb</link>
      <guid>https://forem.com/tjsutton11/you-don-t-need-to-be-a-master-2mkb</guid>
      <description>&lt;p&gt;I began my journey of learning to code and making a career change about a year and a half ago. I had recently moved to a new city and was working a job that I didn't care for or saw myself doing in the future. I have always been somewhat interested in computers and had dabbled in some Codecademy courses before, but I never really dedicated the time to learn how to code. I knew some people who had make the transition into the code world, and so I began my journey of exploring of what my transition into coding might look like. Over the last year and a half, I have failed a lot. I have been so frustrated because I had no idea what I was doing at times. I wanted to give up. Only recently have I taken the time to look back and realize how much I have actually learned and grown since I started learning to code. I consistently struggle with Imposter Syndrome, but I have come to terms that I do not think it will ever truly go away. While I acknowledge that I do not know a lot about coding, I do want to share a few things I find helpful to remind myself of in the hopes that it might help you.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;You don't have to be a master of everything. You don't have to master Python, web development, the terminal, the latest JS framework, or whatever it is that you're told you need to master. No one can truly master any given topic. It may seem that someone that comes across your Dev/GitHub/Twitter feed knows everything about JS or [insert technology here]. I promise you that they too need to look things up each and every day.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Put yourself out there and contribute. I'm preaching this to myself at this very moment. This is my first real article or contribution to any tech related site. It's okay if you haven't worked in software for 20+ years. Share what you know. Try to teach and explain something, even if it the basics of programming. You can help someone out there.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Always be open to learning. I am always looking for people to follow on Twitter or Youtube channels that I can learn from. Tech is always evolving so your learning will never be complete. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I hope this has helped someone out there. Please feel free to reach out with advice you wish you someone had told you when you were first starting out!&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>beginners</category>
      <category>careerchange</category>
    </item>
  </channel>
</rss>
