Ultimate Tailwind CSS Tutorial // Build a Discord-inspired Animated Navbar

1,364,344
439
Published 2021-10-19
Learn the basics of Tailwind CSS by building a Discord-inspired navbar from scratch. Learn how to leverage utility classes to build responsive animated UI elements faster fireship.io/lessons/tailwind-tutorial/

#webdev #css #tutorial

🔗 Resources

Tailwind Docs tailwindcss.com/
Tailwind React Setup tailwindcss.com/docs/guides/create-react-app
Source Code github.com/fireship-io/tailwind-dashboard

📚 Chapters

00:00 Intro
00:54 Should you use Tailwind?
01:42 Setup
02:48 JIT Mode
03:20 Functional CSS Basics
04:06 Flexible Container
04:41 Organize UI Components
05:07 Position a Sidebar
06:58 Customize Colors
07:50 Icon Buttons
08:23 Custom Classes with Apply
09:32 Pseudo-class Variants
09:56 Animation
10:34 Groups
11:54 Dark Mode

đŸ”„ Get More Content - Upgrade to PRO

Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.

🎹 My Editor Settings

- Atom One Dark
- vscode-icons
- Fira Code Font

🔖 Topics Covered

Beginner Tailwind Tutorial
Using Tailwind in React
Tailwind Animation
Tailwind Dark Mode
CSS vs Tailwind vs Boot

All Comments (21)
  • I had been procrastinating learning tailwind for so long. Never thought I’d learn it in 12 mins on a random wednesday at 2am lol. Great content
  • @NeuralNotes69
    Okay so I'm convinced this guy collab with fbi to provide us content we often searching for
  • @dhrubanka6197
    I almost gave up finding a Short and Neat Tailwind CSS tutorial but Here it is. Thanks Universe
  • @valsistem
    Tbh Fireship, I love your videos so much I watch them as a C && C++ Dev. I have no use for these, but they're just wonderfull to look at.
  • @EstebanCodes
    Your tutorials are something special as I am able to follow them and learn while I am in my lunch break without my computer
  • @CaamSerenity
    The purge mode is essential for this video, since you specified JIT mode. Without a purge config, your resulting CSS will be empty (or really just the normalization). Your styles would be purged. The remark is valid though if you use AOT mode. (JIT => Use purge config to only include the styles needed; AOT => Build ALL classes and remove those that are unused)
  • @Mateooyt
    Yo! I started learning tailwind css yesterday. 100% accurate video.
  • Really grateful for your channel in general. I've learned so much over the past few weeks watching videos from you. You're a seriously great teacher.
  • @shixxor
    There are so many tutorials and guides out there for everything you can imagine, but your videos are by far the most efficient in conveying useful information per time of them all. Big kudos to you, keep it up, thanks!
  • @HeIsZee
    For someone (me) thats neglected their CSS skills for the last 10 years, relearning via trailwind + this tutorial is literally everything I wanted. It removes all the reasons I hated doing CSS in the first place. Great work
  • @user-fu6kf1yk2o
    This one was super interesting and useful. Even so I love crafting with CSS, when it comes to production level, my experience suddenly becomes a slow agony. Most popular solutions were not for me (to name a few: Material, Bootstrap, CSS in HOCs, ...), so I left with SASS/BEM. Despite the growing popularity of Tailwind, I couldn't find time to look at its side, but after another tutorial about it FROM YOURS, now I have changed my mind and will try it on my next project as well ( I guess it will be definitely worth it ). Apart from that, I want you to accept my gratitude for all things you are doing in this channel. In addition to helping those who are interested in learning to go with web development carrier (at the moment the most popular and demanded one... or not), you also promote the industry itself forward by popularizing little-known projects and most importantly sharing your opinion and experience with community. So yeah, like and subscribe is unambiguous and mandatory!
  • @TheEnde124
    This just feels like writing css in the form of class names. I actually really like CSS. Modern CSS can do so much, and combine that with a preprocessor like SCSS and you have unlimited power.
  • I really just started learning about TailWindCss and this is the best thing I've ever experienced. FrontEnd used to be so hard for me because I couldnt put what I had in my head, into code with CSS, but with this, its so easy. For some reason, bootstrap never made sense to me, but this does - thank you!
  • I love the speed at which you present. It’s fast enough that I don’t need to speed up the video. But I wouldn’t want to watch without my morning coffee or I might not keep up. 😆
  • Wow! Just wow!!! 😼 Your presentation skills are off the charts and your mastery, appreciated!
  • @Yaqins
    Been a frontend dev for almost 10 years. I was there when float was still the standard and i still haven't sold on Tailwind. It's probably good for smaller projects that require fast and minimal setup, but on enterprise level seems like convoluted and would be hell to maintain, especially when you need to reference the element for DOM manipulation in JS. Call me old-fashioned but i love clean minimal html with relatively go readability.
  • @alexparker4219
    this is personally the one I most awaited for ❀. less gooo đŸ”„đŸšą
  • @faraonch
    There is only a few people that: 1. understand a topic, 2. are good in explaining and 3. make a video and even explain it!. Brilliant!
  • @kikianion1
    at first I sceptical on tailwind, but with your video which almost a year ago, now I know I need this lib
  • @lloveComedy
    For those having issue following 9:32 and getting an error at hover:rounded-xl, you'll have to add this piece of code in your tailwind.config.js: variants: { extend: { borderRadius: ['hover'], }, },