Build a Website with Tailwind CSS | Project Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 125

  • @DaveGrayTeachesCode
    @DaveGrayTeachesCode  2 ปีที่แล้ว +16

    In this Tailwind CSS lesson, we will begin building a project which will help us learn many of the Tailwind CSS class names as well as how to apply media queries for both sizes and light & dark modes. You will see how Tailwind CSS Intellisense helps us easily see the actual CSS style rules that are applied, and how quickly we can add Tailwind classes to HTML once you become familiar with them. If you are just getting started with CSS, I recommend going to my CSS for Beginners course here: th-cam.com/video/n4R2E7O-Ngo/w-d-xo.html

    • @Sky-yy
      @Sky-yy 2 ปีที่แล้ว

      What should I start with when starting tailwind css for 1st time. Coz it's bouncing over my head , coz these classes are not clicking in my head.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว

      @@Sky-yy go to lesson 1 in this series.

  • @jessiefianu6881
    @jessiefianu6881 6 หลายเดือนก่อน

    I'm glad I chanced upon your channel Dave. I just started my internship and was new to tailwind. Your videos and detailed explanation has given me a level of confidence that I am so glad I came across your video. Thank you for sharing your knowledge with us.

  • @leasbenmaupa3780
    @leasbenmaupa3780 7 หลายเดือนก่อน +1

    Thank you, Dave, for such content and to think of it all for free, it's amazing..been working on BS for some time but now jumping onto Tailwind, and omg I just landed on your channel, thanks mill pal🤝🤝, you have earned a Subscriber

  • @ValeriyTuz
    @ValeriyTuz ปีที่แล้ว +3

    Hi. Very nice and well explained tutorial, thanks. I have noticed that you added classes: w-2/3 sm:w-5/6. But tailwind is mobile first, right? Shouldn't it be vice versa? w-5/6, md:w-2/3? It is on

  • @TanjimAshraf-pv6ik
    @TanjimAshraf-pv6ik 2 ปีที่แล้ว +6

    An awesome way of learning Tailwind CSS. Thank you Dave for such effort ❤

  • @simonnjoroge
    @simonnjoroge 2 ปีที่แล้ว +2

    Thank you so much for this, it helped me. Love how you explain every small detail unlike other people.

  • @AsheAve
    @AsheAve ปีที่แล้ว +1

    You are a great help, Dave. Thank you for so many things you’ve taught me.

  • @2ru2pacFan
    @2ru2pacFan 9 หลายเดือนก่อน +1

    Hey Dave, thank you for all the content sir, I love learning from you! 🔥
    Can I ask for a favour and ask if you could make a tutorial on using Express and Tailwind and creating a project or even just showing a video on how to set things up?
    Thank you!

  • @cossale
    @cossale 2 ปีที่แล้ว +7

    Hey Dave, can you cover how would you do a really complex navigation menu on mobile (University website kinda with very nested menus) with tailwind?I can't find anything related to it. Thanks!

  • @Reebak018
    @Reebak018 2 ปีที่แล้ว +1

    Amazing content and project.
    I cant wait for more of tailwindcss series!

  • @hadibq
    @hadibq 7 หลายเดือนก่อน

    Awesome as always!! every word has value. Thanks, Dave, for sharing 👍

  • @ranjeetsinghtharu5375
    @ranjeetsinghtharu5375 9 หลายเดือนก่อน

    43:59 I was also bangin my head over that issue! ...this video is helpful!

  • @koffisamuelshanvier164
    @koffisamuelshanvier164 ปีที่แล้ว +1

    Thank you Dave for this amazing content

  • @digigoliath
    @digigoliath 2 ปีที่แล้ว

    Awesome!!! This is exactly the kind of project I was looking for. TQVM Dave. It is much appreciated 👍👍

  • @pgallovich
    @pgallovich 2 ปีที่แล้ว

    This was a fun project and it really helped me understand Tailwind CSS. Thanks so much Dave, you made me a better frontend dev today.

  • @aadityathukral5667
    @aadityathukral5667 ปีที่แล้ว

    At 9:30, how do we make it so that prettier formats other files as well, for instance all js files?

  • @AbdelkaderLeymax
    @AbdelkaderLeymax ปีที่แล้ว

    Thank you for this amazing tutorial, I have learned so much already

  • @CTILET
    @CTILET 2 ปีที่แล้ว +2

    Dave i want to ask.
    Will you make a turtorials how to add a payments to websites?
    I coundnt find any good turtorial on youtube.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว +3

      Good request! There are many different 3rd party APIs for this. I'm sure some do not cover these details due to sensitive financial info, but I'll look into it.

  • @Thekidisalright
    @Thekidisalright ปีที่แล้ว +1

    Hi Dave, I am new to this and I have a noob question to ask, I tried to follow your video step by step and when I tried to install the prettier-plugin-tailwindcss to vscode, i can install it but it doesn’t show up on the package.json file, i have to manually add “devDependencies”: { “prettier-plugin-tailwindcss”: “^0.3.0”} to the json file manually, may I know why does this happen and am I doing it right by adding it myself? Thank you.

  • @dcanhanga
    @dcanhanga ปีที่แล้ว +2

    Estou a gostar dessa serie, mais uma aula incrível.

  • @csprofessorpam
    @csprofessorpam 6 หลายเดือนก่อน

    After creating the script for prettier, am I supposed to do npm run prettier? Because the extention does not seem to be working for me.

  • @RAYMONDJOSEPH-h4g
    @RAYMONDJOSEPH-h4g 4 หลายเดือนก่อน

    Can't thank you enough keep up the good work you are my idol

  • @niteshprajapat.d3v
    @niteshprajapat.d3v 2 ปีที่แล้ว

    Your content is just amazed! Learnt many things from you and will continue learning from you Sir💖❤

  • @4tk932
    @4tk932 2 ปีที่แล้ว +1

    Hello Dave, as I really enjoy your tutorials I would love to see a tailwindcss react tutorial :) Thanks for your work!

  • @denmccormik7654
    @denmccormik7654 2 ปีที่แล้ว

    Hello, Thank you for your lesson.
    I regret that I didn't know about your chanel earlier. Found it by infinite scroll react video.
    By the way, on 33:00 you press Ctrl+D and change rockets to testimonials.
    Why inside h2 tag it becomes capitalized and inside id - lowercased?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว +1

      You're welcome! Ah yes - you are asking about Ctrl+D and to preserve the case, you need to install the extension "Multi Cursor Case Preserve" - it's great!

    • @denmccormik7654
      @denmccormik7654 2 ปีที่แล้ว

      Thank you!

  • @csprofessorpam
    @csprofessorpam 6 หลายเดือนก่อน +1

    Actually it's the intellisense extention that does not seem to be working, after installing is there any setting to change or anything to enable it? I hover over and I am not seeing the css,

    • @theonlyjl17
      @theonlyjl17 3 หลายเดือนก่อน

      I am not seeing the css as well. I've tried disabling and reinstalling intellisense, still nothing when hovered over.

    • @SarahMatambira
      @SarahMatambira หลายเดือนก่อน

      Me too the tailwind classes are.not shown ​@theonlyjl17

    • @SarahMatambira
      @SarahMatambira หลายเดือนก่อน

      Y
      Me too help please

  • @joncena3159
    @joncena3159 ปีที่แล้ว +1

    when ever i put in npx tailwindcss init it says The term 'npx' is not recognized as the name of a cmdlet, function, script file, or
    operable program. Check the spelling of the name, or if a path was included, verify that
    the path is correct and try again.
    At line:1 char:1
    + npx
    + ~~~
    + CategoryInfo : ObjectNotFound: (npx:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    do u know how to fix this?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว

      A couple of solutions are posted in the answer of this post: github.com/facebook/create-react-app/issues/9735

    • @joncena3159
      @joncena3159 ปีที่แล้ว

      @@DaveGrayTeachesCode thank you

  • @oussama95bso
    @oussama95bso 2 ปีที่แล้ว

    Hello Dave, thank you for this usefull video
    ! I have a question at 33:00 you're selecting words using CTRL+D and replacing and it seems to be case sensitive can you tell me please how you did this ?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว

      The VS Code extension "multiple cursor case preserve". It's great!

    • @oussama95bso
      @oussama95bso 2 ปีที่แล้ว

      @@DaveGrayTeachesCode Thank you Dave !

  • @ahmad-murery
    @ahmad-murery 2 ปีที่แล้ว +2

    Looks better than Bootstrap so far at least to me,
    Tailwind docs are extremely helpful as vanilla css properties are mentioned for each class,
    I don't remember if I mentioned this before, but we can test dark/light mode using Chrome dev tool/Styles/The little paint brush icon.
    Thanks Dave and have a nice weekend 🚀

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว +2

      Great tip, Ahmad! You have a great weekend, too! 💯🚀

  • @vishnum9747
    @vishnum9747 2 ปีที่แล้ว

    i was waiting for this video . thanks

  • @patite3103
    @patite3103 2 ปีที่แล้ว

    Thank you for this series!

  • @PauloPinheiro-j8n
    @PauloPinheiro-j8n 6 หลายเดือนก่อน

    Hi Dave. I followed your instructions but i'm getting this error: Unknown at rule @tailwindcss(unknownAtRules)
    Is it cuz my version of tailwind is different from yours or any other reason? Can you provide me a fix? I really would love to follow you here. Thank you

  • @HtetMyat79
    @HtetMyat79 2 ปีที่แล้ว

    My Life Best Teacher Thanks

  • @kuchikibyakuya7697
    @kuchikibyakuya7697 ปีที่แล้ว

    So basically u need to remember the class or can find it on the tailwind website?

  • @megastar6080
    @megastar6080 2 ปีที่แล้ว

    How do you calculate the correct size to use when building a project, should I just play around figures till I get the one I like or is there a specific mathematics for that ?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว

      It is more experimenting. The more you do it, the better your estimates will become.

  • @ozibryan
    @ozibryan 2 หลายเดือนก่อน

    Hi - great course its valuable to have a such a resource to starrt learning tailwind - whihc looks great btw - one issue I have followed the video and applied the code yet I still have a light screen - I compared to the github and all looks good but not sure what Ive missed to have a 'light theme' anyway thanks for putting this together great help :-)

  • @viniciusm.m.7822
    @viniciusm.m.7822 2 ปีที่แล้ว

    Beautiful project! Thanks, Dave!
    God bless!
    Abraço!

  • @MichaelStickley
    @MichaelStickley 2 หลายเดือนก่อน

    If anyone has issues with the smooth scroll not working in Chrome try using the !important modifier eg Took me a while to figure out Chrome might have issues with smooith scroll

  • @devshah4030
    @devshah4030 ปีที่แล้ว

    @Dave the dark:bg-black doesn't seem to work. Still getting a white background. My code is identical to yours.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว

      Are you using Linux and Chrome? There is a known issue some have discussed about Chrome.

    • @devshah4030
      @devshah4030 ปีที่แล้ว

      @@DaveGrayTeachesCode I am on Mac with M2 CPU running Ventura 13.3 using Chrome Version 112.0.5615.137 (Official Build) (arm64)

  • @idrisdiba
    @idrisdiba ปีที่แล้ว

    I'm not quite sure where I went wrong since applying styles to the body element in Acme Rocket doesn't change anything. However when I apply the same styles to the h1 element it does change but not to the body. Kindly share some thoughts. Thanks.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว

      I can only guess about your code. My source code is available at the course resources link in the description and is provided by chapter. Please compare your code to mine to look for differences.

  • @harishgowdabp
    @harishgowdabp 10 หลายเดือนก่อน

    If you add the content of the element and then add classes one by one, it will be easy to understand

  • @kensenpai5424
    @kensenpai5424 2 ปีที่แล้ว

    Amazing lecture as always

  • @kiranthilak6471
    @kiranthilak6471 2 ปีที่แล้ว

    Cool project loved it!! ❤

  • @bLitzKinG20
    @bLitzKinG20 2 ปีที่แล้ว

    Thank man! Subbed and liked!

  • @jorgecallejasmoran
    @jorgecallejasmoran ปีที่แล้ว

    Awesome! What kind of computer you use? Do you prefer Windows?

  • @TravinskiyVladislav
    @TravinskiyVladislav 2 ปีที่แล้ว

    Thank you, Dave

  • @sonamohialdin3376
    @sonamohialdin3376 2 ปีที่แล้ว

    Awesome tutorial thank you

  • @craigburton4447
    @craigburton4447 2 ปีที่แล้ว

    Is your browser zoomed in? everything looks much narrower on my version.
    Great tutorial BTW, thanks
    Edit, I just switched my max widths to 5xl and it looks good, so I learned something extra :)

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว

      I may have zoomed in. Glad you learned something extra!

  • @Suhaibsayyad
    @Suhaibsayyad 2 ปีที่แล้ว

    awesome tut just using my custom css also waiting for next tut

  • @hosseineyvazi3122
    @hosseineyvazi3122 ปีที่แล้ว

    thank u bro❤

  • @HrissW
    @HrissW 2 ปีที่แล้ว

    How many parts are there in this series?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว

      I never truly know. I just go where the content leads. This will not be a long series though. It is just for introducing Tailwind CSS and creating some familiarity with classes and settings.

  • @mehmetaltinsoy525
    @mehmetaltinsoy525 2 ปีที่แล้ว

    Amazing content.

  • @utinthein7274
    @utinthein7274 2 ปีที่แล้ว

    Sir, not working.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว +2

      Check your spelling "black"

    • @utinthein7274
      @utinthein7274 2 ปีที่แล้ว

      😮‍💨

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว +3

      @@utinthein7274 your operating system preference must now be set to a dark theme to see a black background and white text.

    • @utinthein7274
      @utinthein7274 2 ปีที่แล้ว

      Ofcourse Sir, i forgot on off theme🥰

  • @learner7778
    @learner7778 2 ปีที่แล้ว

    Thank you

  • @darawan_omar
    @darawan_omar ปีที่แล้ว

    You are the best

  • @abbasmohamedwalaal5753
    @abbasmohamedwalaal5753 2 ปีที่แล้ว

    Wow very useful

  • @therevealmusic
    @therevealmusic 2 ปีที่แล้ว

    Hey Dave keep the good work the channel is growing strong,will you be doing clones so that we get real world experience
    Thanks

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว +1

      Maybe sometime - clones do not interest me as much, but I do see their usefulness. I'm glad you have liked my content so far!

  • @KrystianGaleczka5
    @KrystianGaleczka5 2 ปีที่แล้ว

    Great!

  • @wc899
    @wc899 ปีที่แล้ว

    button: sm:hidden
    nav: hidden sm:block
    can you explain please
    ?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว +1

      I thought I did, but here you go: tailwindcss.com/docs/hover-focus-and-other-states#media-and-feature-queries

  • @siidjadhav17
    @siidjadhav17 ปีที่แล้ว

    26:44

  • @7doors847
    @7doors847 2 ปีที่แล้ว +1

    🔥

  • @johnjohnson5765
    @johnjohnson5765 2 ปีที่แล้ว

    World best👍

  • @dharmeshgohil9375
    @dharmeshgohil9375 2 ปีที่แล้ว

    great

  • @nademkhan931
    @nademkhan931 ปีที่แล้ว

    Excellent, very instructive. But it seems that intuitively doing this will be long time coming ..... this stuff doesn't come naturally to me

  • @DodokhKheriba
    @DodokhKheriba 5 หลายเดือนก่อน

  • @7Janiel
    @7Janiel 2 ปีที่แล้ว +1

    It's a dislike from my side.
    I think it would be an improvement if you add the html elements first and then start adding the css classes.
    This way i can see what each tailwind css class does.

  • @big-jo89
    @big-jo89 2 ปีที่แล้ว

    Hi Dave, I was trying to download the course files from the git repo as zip files but I got warnings from my anti virus saying that the files have Trojan " Trojan:Script/Wacatac.H!ml " classified as Severe!
    but cloning the repo was fine had no issue 🤷‍♂

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 ปีที่แล้ว

      Strange - seems your anti-virus doesn't like any type of script files. Just learning code here! I recommend git clone as well.

    • @big-jo89
      @big-jo89 2 ปีที่แล้ว

      @@DaveGrayTeachesCode
      My anti virus is just windows defender actually and you are right I tried downloading completely different repo and same thing happened but as I said cloning the repos works fine, thank you for all your awesome content ❤️