Tailwind CSS Introduction, Basics & Guided Tutorial

Sdílet
Vložit
  • čas přidán 30. 06. 2024
  • Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
    In this Tailwind CSS Introduction, Basics & Guided Tutorial, you will learn what Tailwind CSS is, what you need to use Tailwind CSS, how to setup Tailwind CSS and create an example Tailwind CSS project.
    🚀 Become a full-stack web dev with Zero To Mastery Courses:
    - The Complete Web Developer: bit.ly/WebDevMaster
    - The Complete Web Designer: bit.ly/CompWebDesign
    - Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
    🚩 Subscribe ➜ bit.ly/3nGHmNn
    📬 Course Updates ➜ courses.davegray.codes/
    ❓ Questions - Please post them to my Discord ➜ / discord
    ☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
    👇 Follow Me On Social Media:
    Github: github.com/gitdagray
    Twitter: / yesdavidgray
    LinkedIn: / davidagray
    🔗 All Resources for this Tailwind CSS Course: github.com/gitdagray/tailwind...
    🔗 Playlist for this Tailwind CSS Course: bit.ly/3BKYrzg
    Tailwind CSS Introduction, Basics & Guided Tutorial
    (00:00) Intro
    (00:05) Welcome
    (00:14) What is Tailwind CSS?
    (01:27) Course Prerequisites
    (01:49) Web Dev Tools & Settings
    (04:50) Tailwind CSS Config file
    (07:13) input.css file
    (09:00) Compile the style.css file
    (11:13) Compiling with --watch
    (12:46) Starting Live Server
    (13:31) Tailwind CSS Intellisense
    (14:50) Using Tailwind docs to find class names
    (16:51) Creating a bullseye with Tailwind
    (18:01) Adding a custom class to input.css
    (19:47) Handling class clutter in your HTML
    📚 Suggested Pre-requisites for this Tailwind CSS course:
    🔗HTML for Beginners full course: • HTML Full Course for B...
    🔗CSS for Beginners full course: • CSS Full Course for Be...
    📚 Tutorial References:
    🔗 Tailwind CSS: tailwindcss.com/
    ⚙ Web Dev Tools:
    🔗 Chrome Browser: www.google.com/chrome/
    🔗 Node.js: nodejs.org/
    🔗 Visual Studio Code (VS Code): code.visualstudio.com/
    🔗 Live Server VS Code Extension: marketplace.visualstudio.com/...
    🔗 Tailwind CSS Intellisense VS Code Extension: marketplace.visualstudio.com/...
    🔗 Inline Fold VS Code Extension: marketplace.visualstudio.com/...
    Was this tutorial on Tailwind CSS helpful? If so, please share. Let me know your thoughts in the comments.
    #tailwind #css #introduction

Komentáře • 245

  • @DaveGrayTeachesCode
    @DaveGrayTeachesCode  Před rokem +17

    Tailwind CSS is a utility-first CSS framework that is currently very popular. It is easy to transition from writing CSS to using Tailwind CSS because it applies one styling rule at a time much like CSS, but it uses easy to understand class names that you can quickly add to your HTML. In this intro to Tailwind CSS tutorial, we'll set up a dev environment with Tailwind CSS, look at some helpful VS Code extensions, and build a small project to get you started! If you are just learning CSS, I recommend learning the CSS basics first in my CSS for Beginners course here: czcams.com/video/n4R2E7O-Ngo/video.html

    • @sourlito
      @sourlito Před rokem

      Hello and thank you for this tutorial, So far I have followed your steps, but when I run Live Server, it doesn't automatically open the html page in a browser. It first opens the browser but it shows as a directory. Why is that?
      In Other words in the browser it shows build directory src directory and the tailwind.config.js file

  • @user-cy4gt7un2g
    @user-cy4gt7un2g Před 8 měsíci

    From htm css and Js and now tailwind I have been your fan. Thank you so much Dave you are the the real definition of a Teacher ❤

  • @harenderthakran9142
    @harenderthakran9142 Před 3 měsíci +1

    Dave, you are such a gem. I have seen so many videos of tailwind installation, nothing comes close to your style of explanation period.

  • @aimis408
    @aimis408 Před 17 dny

    This is the best 20 minutes I've spent on CZcams in a long time. Thanks for making this great intro!

  • @jamesablanco
    @jamesablanco Před měsícem

    This was the only Tailwind CSS tutorial to actually get me what I need and then I realize I did not write the output css file right took awhile but figured it out. Thank you!

  • @g4l625
    @g4l625 Před rokem +1

    Another great video, I started learning CSS from you three weeks ago, now I am very comfortable with the fundamentals, thanks for this great content Dave ❤

  • @mailsiraj
    @mailsiraj Před rokem

    hi Dave, this is the first time I am here and I really loved this intro to Tailwind video - I loved the pace and nice bulls eye example which was some concrete enough for me to practice on my own. I loved your energy and the way you introduces productivity tips like emmet shortcuts, VSCode extensions, etc. Thank you so much Dave.

  • @korkmazsalim
    @korkmazsalim Před rokem +1

    Inline Fold extension and all other tips. You nailed it !! Great channel ! thank you @Dave

  • @kakhabervk9405
    @kakhabervk9405 Před 3 měsíci

    As other Dave's tutorials this tutorials is different from other youtube tutorials and has very useful approaches and tricks. Thanks!

  • @beec9681
    @beec9681 Před 9 měsíci

    Hi Dave, thank you for this great video, so many details and tricks, a clear way explaining how to set up and more, I have learnt so much already and answered many questions!
    I will keep watching and experimenting... Thank you B

  • @taponato1127
    @taponato1127 Před rokem

    Thanks so much ! love the energy when you are teaching, no time wasted

  • @JeatBunkie
    @JeatBunkie Před rokem

    Best free web dev stuff on youtube right now honestly. Just a btw for people installing node, I would recommend you use nvm to install. Had a few headaches when installing node directly, it messed up some dependencies in React. Probably because I was using create react app though

  • @MsLoveDance1
    @MsLoveDance1 Před 2 měsíci

    This is amazing! video tutorials explain it so well instead of reading how!

  • @pgallovich
    @pgallovich Před rokem

    I really loved this intro Dave! This really helped me get started with Tailwind CSS.

  • @anouargarbaa-wh7iu
    @anouargarbaa-wh7iu Před 25 dny

    Thank you Dave for this amazing tutorial 😁

  • @MsLoveDance1
    @MsLoveDance1 Před 2 měsíci

    Im so happy actually! Besides explaining tailwind and how to install, you also gave some very handy tricks on how to work with VSC itself

  • @andrewcox4324
    @andrewcox4324 Před rokem

    Thank you for finally explaining Tailwinds in a way that i can actually understand and appreciate the power of it.

  • @marshalguo457
    @marshalguo457 Před 11 měsíci +2

    Literally no one addressed the issue of how the styles.css is minimal when first starts and requires to build the CSS again. Thank you SO MUCH!!!

    • @lastspoil5547
      @lastspoil5547 Před 4 měsíci

      Do you recommend I start here? I know html css and JavaScript. I'm learning React. I need tailwind to save me 😂

  • @vivekanand5900
    @vivekanand5900 Před rokem +2

    I was thinking of learning tailwind and you started teaching that also... Thank you for making videos..You explain everything very crystal clear..😇

  • @abrahamngetich1415
    @abrahamngetich1415 Před rokem

    Great. Glad to be seeing the new series from you. Thanks, looking to more videos on Tailwind. Consider discussing Tailwind components libraries like Taiwindcomponents Flowbyte

  • @jessedv5915
    @jessedv5915 Před 3 dny

    Amazing video i can finally get started on tailwind css

  • @jeremiahchinwe1336
    @jeremiahchinwe1336 Před rokem +1

    @DaveGrayTeachesCode you have truly helped me learn CSS to a commendable level and now you're teaching me tailwinds. Thank you so much Boss. Get to meet you someday.

  • @captinblack113
    @captinblack113 Před rokem +1

    You are best instructor, thank you Mr.Dave
    I hope this channel will hit 1M soon 😍

  • @samobaidi5000
    @samobaidi5000 Před rokem

    Good video Dave as always , i was using Sass and Styeld components and then changed to tailwind and i can tell that its really cool and as you mentioned about mobile first .

  • @shadz-dev
    @shadz-dev Před rokem

    Thanks for the series sir, would definitely take a look at it after I complete learning JavaScript. One suggestion, it would be great if you make the videos project based.

  • @DomingosCanhanga-do9tq
    @DomingosCanhanga-do9tq Před rokem +1

    Eu gostei desta aula. Obrigado por proporcionar uma grande experiência de aprendizagem. Você ganhou um novo assinante.

  • @mdshakamal4837
    @mdshakamal4837 Před 3 měsíci

    its great ....now its been working......thank you Dave

  • @mohamedelsayed6698
    @mohamedelsayed6698 Před rokem

    Finally I have been waiting for this for a long time ♥️👌

  • @IamSaulSaul
    @IamSaulSaul Před rokem

    I really enjoyed watching this tutorial, some of the other ones where a little confusing to me but not this one. Thanks!

  • @codecuts93
    @codecuts93 Před rokem

    Amazing as always! 👏🏼👏🏼

  • @garrysyt8461
    @garrysyt8461 Před rokem +1

    A tailwind playlist will be great for e.g some complex custom components, components with position, some events included etc will be great help

  • @nhel5240
    @nhel5240 Před rokem

    I like how you teach, you make it simple and add some ways to make it more easy...

  • @pavlinapsarsky2819
    @pavlinapsarsky2819 Před rokem

    Great video as always, thank you!

  • @muhammadyahya1908
    @muhammadyahya1908 Před rokem

    Just awesome bro...good understanding and very impressive. Thank you

  • @PRATAPSINGHSHEKHAWAT
    @PRATAPSINGHSHEKHAWAT Před rokem

    Great course. Love to see more tailwind videos.

  • @NanoPolymer
    @NanoPolymer Před 2 měsíci

    Thanks for you explanation.

  • @muhammadumarsotvoldiev8768
    @muhammadumarsotvoldiev8768 Před 8 měsíci

    thank you very much! Very interesting

  • @licokr
    @licokr Před rokem

    Practical tutorials, useful extentions recommendation thank you so much

  • @bryikcode
    @bryikcode Před rokem

    Hello Dave , thank u for u awesome tutorials
    i think you my best discovery this year

  • @ahmad-murery
    @ahmad-murery Před rokem +4

    Never user Tailwind before, but if it was up to me to decide I would choose Tailwind over Bootstrap or any other css frameworks just because their classes are easier to remember for someone who spent most of his time using vanilla css
    Thanks Dave!

  • @mnkboy
    @mnkboy Před rokem

    Greate tutorial Dave you are awesome ! :P

  • @silasspeech4632
    @silasspeech4632 Před rokem

    😍 let chil and enjoy the contents, as usual your are doing great work here. Am going to save everything for vacations and enjoy every minute love your lesson.

  • @andrewsmichael7047
    @andrewsmichael7047 Před 5 měsíci

    Thank you so much teacher, the lessons was so interestings

  • @mohammedaweis3014
    @mohammedaweis3014 Před rokem

    wow wow wow this is amazing you really helped anyone needs to be full stuck web developer, really i have not watched this vedio yet because i am still watching and learning your css 11hours vedio, i will be right back this amazing tutorial when i complete that vedio thanks again from somalia 🇸🇴 😀

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem +1

      Good idea, Mohammed! I agree with completing the CSS fundamentals first.

  • @HungPham-or7tm
    @HungPham-or7tm Před rokem

    Thanks for sharing your great tutorials :D please keep up your works. again, Thanks alot :D

  • @kensenpai5424
    @kensenpai5424 Před rokem

    Much needed playlist, let's go 😃

  • @mehmetaltinsoy525
    @mehmetaltinsoy525 Před rokem

    Great video. Thanks.

  • @bhawnaakpasare6545
    @bhawnaakpasare6545 Před rokem

    Thank you so much.... I am waiting for this

  • @zeeshanahmad1500
    @zeeshanahmad1500 Před rokem

    thanks Dave created such an awesome content

  • @johnychinese
    @johnychinese Před rokem

    This is insane, the amount of value you drop for free man. You're literally an angel

  • @cleverengineer2410
    @cleverengineer2410 Před rokem

    twailwindcss is beautiful and the way you introduce it make it even easier thanks a lot Sir

  • @NikhilSingh-ez1mq
    @NikhilSingh-ez1mq Před rokem

    Finally 🎉 can’t wait for next tailwind video

  • @theentertainment7239
    @theentertainment7239 Před rokem

    OMG THANKS SO SO MUCH THIS HELPED!!!

  • @mahmudsiam778
    @mahmudsiam778 Před rokem

    Thank you so much for making this course

  • @jean-montero
    @jean-montero Před rokem

    Thanks, Dave! 🙏🏽

  • @TravinskiyVladislav
    @TravinskiyVladislav Před rokem

    Again and again and again, thank you

  • @Meysam19871366
    @Meysam19871366 Před rokem

    Thanks Dave
    very good
    perfect

  • @abdu5822
    @abdu5822 Před rokem

    Wow this is really amazing. thanks Dave.
    .
    one more thing, i really suggest after at the end, you add two or three project templates design with tailwind including the techNotes project.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem +1

      You're welcome! Good suggestions! I've got a couple of projects in mind for this series, but converting the techNotes project might be a good additional one, too!

  • @brajagopalmukherjee1588
    @brajagopalmukherjee1588 Před rokem +12

    Finally web developer university is back with bang🔥...can u make some advanced react playlist and nextjs playlist?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem +10

      Always making more React content 💯 Next.js series in the works, too 🚀

    • @nabinsaud4688
      @nabinsaud4688 Před rokem +2

      @@DaveGrayTeachesCode Thanks for Nextjs

    • @melchizedek79
      @melchizedek79 Před rokem +1

      Let's appreciate the much he has done. It's not easy please.

    • @melchizedek79
      @melchizedek79 Před rokem

      @@brajagopalmukherjee1588 Alright. Try and buy him some Coffee. lol😁

    • @thinklyrics6558
      @thinklyrics6558 Před rokem

      Dev love coffee a lot and I will get him one he his too good

  • @raymondmichael4987
    @raymondmichael4987 Před rokem

    Wow!! Just wow.
    Thanks buddy

  • @Dreamer_78
    @Dreamer_78 Před 11 měsíci

    Спасибо большое за труд!

  • @patite3103
    @patite3103 Před rokem +1

    Hi Dave. thank you for the great video! Would it be possible to do a video on the T3 stack? thank you

  • @tjans1979
    @tjans1979 Před 6 měsíci

    I always stop on Dave's videos. Top notch.

  • @sonamohialdin3376
    @sonamohialdin3376 Před rokem

    Awesome thank you very much

  • @98parth
    @98parth Před rokem

    This is so awesome 🔥

  • @thebrokernotebook
    @thebrokernotebook Před rokem

    best tutorial ever, thanks Dave

  • @Sylar7773
    @Sylar7773 Před rokem

    BEST!!! Thank YOU!!!💪

  • @Jawad_Siddiqui
    @Jawad_Siddiqui Před rokem

    Relearning Tailwind CSS with Dave. Thanks

  • @mirzafaisalbaigfaisal6324

    This channel should cross million subs. Damn!!

  • @learner7778
    @learner7778 Před rokem

    Thanks Dave

  • @siddiqahmed3274
    @siddiqahmed3274 Před rokem

    Thank you for this

  • @akintobby
    @akintobby Před rokem

    The long wait is finally over🤩

  • @rsrinivas6025
    @rsrinivas6025 Před rokem

    Dav love you man

  • @mvip4927
    @mvip4927 Před rokem

    Just simply put the code, it works! thanks!

  • @John-qw8zx
    @John-qw8zx Před rokem

    You are unstoppable!

  • @johnramirez3247
    @johnramirez3247 Před rokem

    Thank you for you tutorial! It was easy to follow. By the way, do I always have to install the tailwindconfig file If i would start another project?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem

      You will need a config file. I suppose you could always copy over settings you prefer from a previously used config file if that is what you mean?

  • @frankreich5018
    @frankreich5018 Před 6 měsíci

    Very nice introduction. Your voice reminds me of newman.

  • @utinthein7274
    @utinthein7274 Před rokem

    I Love You, Sir. I don't known how can I thank you enough.

  • @somebody-17546
    @somebody-17546 Před rokem +1

    I hated tailwind css at first. I thought writing inline styles would make the code look messy but the more I know about it, the more I use it. I use it all the time now :D

  • @kingsleyobi-ko9zj
    @kingsleyobi-ko9zj Před 27 dny

    good work mr dave,but are you gonna be doing this with vite

  • @regilearn2138
    @regilearn2138 Před rokem +1

    Hi Dave, Awesome ,I think its time to start a project base video on TYPESCRIPT with REACT,Please we are eagerly waiting ,Lot of fellow developers agree with me.❤❤❤❤

  • @codernerd7076
    @codernerd7076 Před rokem

    The things I like about tailwind is that it's mobile first and really easy to make responsive designs!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem +1

      Absolutely! That will be demonstrated during the upcoming project 💯🚀

  • @min11benja-shopify
    @min11benja-shopify Před 5 měsíci

    I dont understand why the Documentation does not show how to add tailwind to a normal html file they all force you to sue some framework like NExt or React, this is so much simpler thank you very much!!

  • @mortezafarhangpanah256

    thanks

  • @frankmmd1861
    @frankmmd1861 Před rokem

    thank you!!!!!!!!!!!!!!!!!!!!

  • @CTILET
    @CTILET Před rokem

    Oo Dave is the best

  • @leakyroofmedia
    @leakyroofmedia Před 8 měsíci

    Thanks so much. Quick question: how do you get it so that you can write the html elements and class names with the dot notation? div.grid.shadow etc. Thanks again

  • @badcatdesign
    @badcatdesign Před rokem +1

    @4:45 I think maybe this is where the "Live Preview" extension shines. Also @20:21 VSC has a "Create Manual Folding Ranges from Selection" function that can be run per instance, so you can still see classes etc when you need them. Thanks for the tut👍

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem

      Good notes! Do you like the Live Preview extension better than Live Server? The folding ranges command from VS Code folds full lines of code which can be helpful, but it won't just hide the classnames for me like the Inline Fold extension.

    • @badcatdesign
      @badcatdesign Před rokem

      @@DaveGrayTeachesCode I've been watching the LP extension grow. I'm not sure it's better (or even faster to load), but have a feeling MS will just merge it into the app - who knows. Good point with Inline Fold. thanks!

  • @marktmcewan
    @marktmcewan Před 6 měsíci

    Amazing videos. watched from start to finish (you explain it better than any other video (perhaps even tailwind themselves) I have a question regarding the config file, Tailwind notes state 'src' in the path added to the content ["./src/**/*.{html,js}"] and you use "build". Are both right ?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 6 měsíci +1

      Yes, it depends on where your html file is - which might depend on what you are building your project with. If you look at the GitHub repo for this video, you will see my index.html is in my build directory. Tailwind needs to read the classes inserted into that file to generate the CSS that is used. If I was building with Next.js, I might want it to look in my src directory for js, jsx, ts, or tsx files instead.

    • @marktmcewan
      @marktmcewan Před 6 měsíci

      Thanks Dave, Excellent stuff. Going to work my way through your other videos. If you have a paid course I would be interested.@@DaveGrayTeachesCode

  • @mariusguissou4282
    @mariusguissou4282 Před rokem

    👍👍👍👍👍👍 Coooool!!!!❤

  • @elClubdelas7Cifras
    @elClubdelas7Cifras Před rokem

    note:
    'inline fold extension' for replacing the long lenght classes for three dots.
    minute: 21:00

  • @vishnum9747
    @vishnum9747 Před rokem

    waiting for upcoming video. good content as always. when will be the next video out

  • @VYeS269
    @VYeS269 Před rokem

    Please continue

  • @kutay397
    @kutay397 Před rokem

    Hi dave, i recently finished your HTMLcourse and i am currently on your CSS video. My concern is im in the middle between tailwind and bootstrap and don't know which one to choose after my css course, do you have any suggestions? (I will be focusing heavily on front-end development so i heard tailwind would be better suited for my case but still not sure.)Thank you in advance!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem +1

      Both are good. Pick one now and learn the other one after. Bootstrap has been around longer and has more legacy code deployed - but Tailwind is a great modern choice and more companies are moving towards it.

  • @GetnetGetachew
    @GetnetGetachew Před rokem

    you are smart please make viedo to build project i.e fullstack project (real world project)

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem

      Thank you. I already have. A full stack real world project is advanced. Make sure you know the pre-requisites I mention before attempting this: czcams.com/video/CvCiNeLnZ00/video.html

  • @yumengli6138
    @yumengli6138 Před rokem

    super love your tutorials!! very helpful for beginners, really wanna go through all your classes~
    just wondering, do you have any plan to make TS tutorial series, I stuck here many times when I'm using it in react🥲 need someone to save me🥲🥲🥲

  • @hoangthiendo1909
    @hoangthiendo1909 Před rokem

    wao, I see you put the link of ZTM in the description. Are you cooperating with them? If that so, what a great news! Hope to see your course on ZTM platform 😄

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem

      I think they offer good courses and if you use my links to ZTM, you help support my channel. I have not been asked to create a course for them - yet. 😀 Maybe someday!

  • @Grishopping
    @Grishopping Před rokem

    SUCCESSES ... thank you very much I'll start to see it
    a query is there a way to unite tailwind with styled-components ??
    Greetings from Venezuela
    att. Joseph Grillo
    español
    SUCCESSES ... thank you very much I'll start to see it
    a query is there a way to unite tailwind with styled-components ??
    Greetings from Venezuela
    att. Joseph Grillo

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před rokem +1

      Two different things - styled-components allows writing CSS in JS. Tailwind CSS uses predefined class that you write in your HTML.

  • @AnPham-my8oy
    @AnPham-my8oy Před rokem

    Teacher, after this series, can you do a series about NextJs, thanks ❤❤

  • @Hellnation13
    @Hellnation13 Před rokem

    when I used npx at the start for some reason it made a tailwind.config.scss file but then I did it a second time and it made the config.js file Just curious if that's something new since this video was made or if I mistyped something