Fireship · @fireship

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

Uploaded October 19, 2021 · Length 12:56

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

Summary

Learn how to build a Discord-inspired animated navbar using Tailwind CSS, including setting up a new project, customizing the config file, and using utility classes to design the UI.

  • tailwind css tutorial
  • discord navbar
  • animated ui
  • css utility classes
  • react js
  • component-based development
  • ui design

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    one of the most disruptive web

  2. 0:01

    Technologies in recent years is without

  3. 0:03

    a doubt Tailwind CSS it defies the

  4. 0:05

    long-standing dogma of semantic CSS and

  5. 0:08

    instead preaches a more functional

  6. 0:10

    utility class approach like many I found

  7. 0:12

    it offensive at first glance but the

  8. 0:14

    reality is that it can produce beautiful

  9. 0:16

    and customizable uis faster than any

  10. 0:18

    other approach I've tried nobody pays me

  11. 0:20

    to say that I'm just obsessed with

  12. 0:22

    things that are pragmatic that can get

  13. 0:23

    your app shipped faster in today's

  14. 0:25

    beginner-friendly tutorial you'll learn

  15. 0:27

    everything you need to know to design a

  16. 0:29

    website with tailin you guys requested

  17. 0:30

    we clone Discord so we'll build a

  18. 0:32

    Discord inspired dashboard we'll focus

  19. 0:34

    on the most interesting part of the UI

  20. 0:36

    which is the sidebar that has these

  21. 0:38

    animated icon buttons that show a tool

  22. 0:40

    tip when hovered we'll also throw in

  23. 0:41

    dark mode and I'll explain how to

  24. 0:43

    integrate Tailwind with any component

  25. 0:45

    based javascrip library but first

  26. 0:47

    there's a red button that says subscribe

  27. 0:49

    below this video most hiring managers in

  28. 0:51

    the tech industry recommend that you

  29. 0:52

    click the button before we jump into the

  30. 0:54

    code let's answer the question of what

  31. 0:56

    is tailwind and should I use it

  32. 0:58

    basically it's just a huge collection of

  33. 1:00

    CSS utility classes compared to plain

  34. 1:03

    CSS it allows you to write less code

  35. 1:05

    overall and have standards that prevent

  36. 1:07

    you from blowing your foot off however

  37. 1:09

    Tailwind does not provide pre-built

  38. 1:11

    components like bootstrap this means it

  39. 1:13

    will likely take you longer to build a

  40. 1:15

    UI than bootstrap but it gives you much

  41. 1:17

    better control over customization some

  42. 1:19

    people say Tailwind is not for beginners

  43. 1:21

    but I've kind of changed my mind here

  44. 1:22

    the tooling has become really

  45. 1:24

    exceptional and when you hover over a

  46. 1:25

    class in vs code it tells you exactly

  47. 1:27

    what CSS is inside it's kind of like CSS

  48. 1:30

    with training wheels and will do things

  49. 1:31

    like dead code elimination so you're not

  50. 1:33

    left with a massive CSS file when you go

  51. 1:35

    to production ultimately though Tailwind

  52. 1:37

    is for developers who want to get highly

  53. 1:39

    customized stuff done faster to follow

  54. 1:41

    along with this project open up your

  55. 1:43

    editor and then pull up a terminal

  56. 1:44

    session and I've installed the Tailwind

  57. 1:46

    extension for vs code the first thing

  58. 1:48

    we'll want to do is generate a project

  59. 1:50

    with a JavaScript framework like react

  60. 1:52

    view angular spelt Etc one of the major

  61. 1:55

    reasons Tailwind is so popular is

  62. 1:56

    because it works really well with

  63. 1:58

    component-based JavaScript library