Tailwind CSS 4.0 is finally here - The NEW way to install with Vite + React (2025)

Поділитися
Вставка
  • Опубліковано 7 лют 2025

КОМЕНТАРІ • 146

  • @lukas.webdev
    @lukas.webdev  10 днів тому +20

    Should I create more videos on Tailwind CSS, or dive deeper into the brand new Tailwind CSS Version 4?
    If there’s any other topic you'd like me to cover, drop a comment below! 😉⬇

    • @redintfacts
      @redintfacts 9 днів тому +1

      yes i want to know about how to install tailwindcss with postcss simply in vscode
      in window 11

    • @Srinipi
      @Srinipi 9 днів тому +2

      yes please

    • @5G1Sanvith
      @5G1Sanvith 9 днів тому +1

      bro make a video on shadcn+vite reactjs
      some error in tailwind installation

    • @aryamansingh1956
      @aryamansingh1956 9 днів тому +1

      @@5G1Sanvith I am getting some validation error, are you having same problem? Please do share the solution if you got one. thanks

    • @lukas.webdev
      @lukas.webdev  8 днів тому

      @@5G1Sanvith Shadcn doesn’t fully work with Tailwind CSS v4 yet because Tailwind Merge (which Shadcd relies on) isn’t compatible with v4 at the moment. The Tailwind Merge team is already working on an update. - Should I make a video about it once it’s out? 🤔

  • @imgovindam
    @imgovindam 4 дні тому +10

    So much confused while installing the new tailwind in my vite project, even ChatGPT could not helped ……meanwhile I find your Totorial here on UA-cam. Thanks ❤😊

  • @withinsyn7482
    @withinsyn7482 8 днів тому +5

    This was just the video I was looking for. Very helpful and right to the point. Thank you!

    • @lukas.webdev
      @lukas.webdev  5 днів тому

      You're welcome! Thanks for the feedback, I really appreciate it! 😉

  • @chinoarc
    @chinoarc 9 днів тому +4

    THANK YOUUUU, I should be more updated huhu
    I was trying to figure out like why wasn't my tailwind installing for 2hours, I even used chatgpt. But then I checked youtube and saw this, Thank youuu

    • @lukas.webdev
      @lukas.webdev  8 днів тому +1

      You're welcome! Thanks for the feedback, I'm glad I could help. 😉

  • @hezekiahmekonen6058
    @hezekiahmekonen6058 6 днів тому +1

    Finally after 3hrs of headache, Thanks!!

  • @ydhiman20
    @ydhiman20 16 годин тому

    This was incredible. 👏

  • @farangiziz
    @farangiziz 9 днів тому +2

    It is working. Thank you!

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      You're welcome! Thanks for the feedback, I really appreciate it! 😉

  • @Tylerj0937
    @Tylerj0937 9 днів тому +2

    It worked. So helpful, thank you!

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      My pleasure, buddy! Thank you for your feedback 😉

  • @janisvintermanis7687
    @janisvintermanis7687 9 днів тому +2

    Thank you for the simple and fast tutorial :)

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      My pleasure! I’m glad you like it and I appreciate your feedback! 😉

  • @forgehustle
    @forgehustle 8 днів тому +8

    how to add custom break points and set custom colors this 4.0 version doesn't gave tailwind config file 😰 and also how to use plugins like material-tailwind , daisyui ?

  • @netrob
    @netrob 8 днів тому

    you made my day. thanks a lot. I really needed a step by step guide here ❤

  • @malikacumar339
    @malikacumar339 2 дні тому

    thank you so much for clearing the confusion , i was beginning to panic😆🙏

  • @EazyLightDigital
    @EazyLightDigital 10 годин тому

    It work well. Thanks so much.

  • @himanshumohapatra5141
    @himanshumohapatra5141 6 годин тому

    thank you so much,really grateful

  • @Sharemcqs-c8v
    @Sharemcqs-c8v 9 днів тому +2

    Yes we want next video on tailwind CSS in detail

    • @lukas.webdev
      @lukas.webdev  8 днів тому +2

      Thanks for the input! I’m already working on the next video about Tailwind CSS v4 - subscribe to get notified when it drops! 🔔🚀

  • @tomasfrancisco6703
    @tomasfrancisco6703 12 годин тому

    Thanks dude!

  • @mahh-bluerose
    @mahh-bluerose 9 днів тому +1

    You are so good darn it!!

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      Thank you very much, I really appreciate it! 🤩

  • @2012jbizzle
    @2012jbizzle 8 днів тому +1

    YEEEEEESSSS! Thank you

    • @lukas.webdev
      @lukas.webdev  8 днів тому

      You're welcome! Thanks for the feedback, I really appreciate it! 🤩

  • @Solutionswithnayan
    @Solutionswithnayan 8 днів тому

    super helpful video sir appreciated now i can continue my learning!!!

  • @ShubhamKumar-uf3gc
    @ShubhamKumar-uf3gc 4 дні тому

    saved the day mate👍

  • @devsingh-g9u
    @devsingh-g9u 3 дні тому

    thank you sir ! very helpful

  • @LAXMIPRIYAPANDA-z2e
    @LAXMIPRIYAPANDA-z2e 2 дні тому

    thank you so much sir for this video....

  • @nolonger.h.u.m.a.n
    @nolonger.h.u.m.a.n 2 дні тому

    thank you so much!

  • @SYEDBILALAHMED-i2b
    @SYEDBILALAHMED-i2b 3 дні тому

    Some of you might be wondering why it is still not working. The issue is the Node version. Install the latest version and follow along with the video-it will work.
    Node Version: v22.13.11

  • @rafaelbarboza6876
    @rafaelbarboza6876 5 днів тому

    Thank you!!

  • @madishatech
    @madishatech 5 днів тому

    My Gosh Thank you ... I was in struggle

  • @manishaac3120
    @manishaac3120 2 дні тому

    Thanks for the video and can you please update what all are changes and how to add the custom theme etc. its more difficult to know the updates in v4

  • @tarun-d1t
    @tarun-d1t 4 дні тому +1

    tailwind intellisense is not working with v4 could you please tell us how to work on this

  • @codeengines1029
    @codeengines1029 9 днів тому +5

    it is not showing suggestions

    • @msibaramdora
      @msibaramdora 13 годин тому

      Bro uninstall then reinstall the extension my be problem is solved 😊😊😊

  • @rohullahazimy7400
    @rohullahazimy7400 8 днів тому +1

    After running npm run dev command this error appears: the specified module could not be found.

  • @Show0primo
    @Show0primo 9 днів тому +1

    helpful thanks

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      My pleasure! I'm happy to hear that and really appreciate your feedback! 😉

  • @enjoylife3913
    @enjoylife3913 3 дні тому +1

    dear tell about extention about you use with new version beacuse our previous tailwindcss intellisence extention is not working with tailwind new verson.

  • @lalAslanova-ox1ef
    @lalAslanova-ox1ef 6 днів тому

    Thank you

  • @foam_ranther141
    @foam_ranther141 9 днів тому +2

    tailwind intellisense not working after the update, can you tell us what might be the problem. Yours is working fine.

    • @prashantsingh.118
      @prashantsingh.118 9 днів тому

      Bro if you got the way edit your comment and let us know

    • @foam_ranther141
      @foam_ranther141 9 днів тому

      ​ @prashantsingh.118
      actually it worked after i tried some things like ,
      1. uninstall and reinstall the extension
      2. initially i was putting import "tailwindcss" only inside the index.css file but later i put it inside app.css aswell
      I did both of thing and it worked for me .

    • @charlijoelgaspartaraz
      @charlijoelgaspartaraz 9 днів тому

      I also have the same problem, do you have a solution?

  • @farkhandadalal2796
    @farkhandadalal2796 9 днів тому +1

    can u make a vid on how to use the custom tailwind classes in the react project with the new installation.
    Everything else is working fine with the new installation until i try to use the custom tailwind classes created by me

    • @lukas.webdev
      @lukas.webdev  8 днів тому

      Thanks for the input! I’m already working on the next videos about Tailwind CSS v4 - subscribe to get notified when they drops! 🔔😉

  • @ShubhamKumar-nr1ce
    @ShubhamKumar-nr1ce 8 днів тому +4

    how to add custom break points and set custom colors this 4.0 version doesn't gave tailwind config file ?

  • @titanprasetyo6876
    @titanprasetyo6876 9 днів тому +1

    Terimakasih abangkuh

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      My pleasure, buddy! Thank you for your feedback. 😉

  • @AnkitKumar-vn4cj
    @AnkitKumar-vn4cj 6 днів тому

    Thanks you 👍👍

  • @IsStoic_Mindset_Official
    @IsStoic_Mindset_Official 2 дні тому

    thanks, bro

  • @devStefan-b6u
    @devStefan-b6u 3 дні тому

    thanks you ;)

  • @AsianServer
    @AsianServer 9 днів тому +1

    Cab you pls make video on how to convert config of version 3 into index css i have theme colors gradients font size etc on it how each thing we can cahnge ok index css

    • @lukas.webdev
      @lukas.webdev  8 днів тому +1

      Great idea! 🎯 I’ll see what I can do - stay tuned! 🔥😉

  • @bruno-qy7xf
    @bruno-qy7xf 9 днів тому +1

    GRACIAS, ME SIRVIO ME QUEME LA CABEZA PORQUE NO PODIA INSTALAR TAILWINDCSS
    THANK YOU, IT HELPED ME. I BURNED MY HEAD BECAUSE I COULDN'T INSTALL TAILWINDCSS

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      You're welcome! Thanks for the feedback, I really appreciate it! 😉

  • @sumitdongare9827
    @sumitdongare9827 2 дні тому

    Thank You....

  • @bobysonlaishram4055
    @bobysonlaishram4055 3 дні тому

    why is it bad to create the project folder in the dektop

  • @NGUCoding
    @NGUCoding 9 днів тому +1

    The auto completion of classes is not working any solution?

  • @24_Harsh
    @24_Harsh 9 днів тому +1

    please drop a video on all new features that comes with v4.0

    • @lukas.webdev
      @lukas.webdev  8 днів тому

      Good idea! I might just do that - stay tuned! 😉🔥

  • @Jetix-r1m
    @Jetix-r1m 2 дні тому

    sir i hace all the steps as you mentioned in your video but css i am applying is not showing on webpage is it bcoz i have never used or installed anything for tailwind before in my local environement of vscode (i have installed nodejs though) please help me out

  • @prashankulathunga2591
    @prashankulathunga2591 10 днів тому +1

    Boom ❤

  • @EliHacıyev-p7v
    @EliHacıyev-p7v 15 годин тому

    Thanks

  • @unitedforevalution
    @unitedforevalution 4 дні тому

    It's working but it is not showing any kind of suggestion like while adding text color or bg color as usual

  • @bintangnaufal
    @bintangnaufal 9 днів тому +1

    do you omit everything from the default css file that came from vite or not?

    • @lukas.webdev
      @lukas.webdev  8 днів тому

      Yes, I usually remove everything from the default CSS files (like App.css, index.css) when setting up Tailwind. However, it really depends on your project's needs. In most cases, you'll want to use Tailwind's utility-based styles and extend them with your own custom CSS rules. 😉

  • @Ankit_tripathi2k24
    @Ankit_tripathi2k24 День тому

    Everything is ok in v4 but now auto suggestions are not working.Tailwind css intelliSense is installed as well

  • @Supraja_kitchen
    @Supraja_kitchen 2 дні тому

    actually i want to import postcss.config.js and tailwindcss.config.cs is this process will applicable

  • @corpse_i
    @corpse_i 5 днів тому

    I am having a problem here, so basically i was using an index.css config from a github for color codes now since they have changed importing from @tailwind base; to @import tailwindcss what should i do there are a bunch of errors now

  • @gbube054
    @gbube054 5 днів тому

    how do get intellisense and how do i configure?

  • @San_sin143
    @San_sin143 8 днів тому

    please make video on installation of shared tailwind on turbo repo

  • @aryamansingh1956
    @aryamansingh1956 9 днів тому +1

    Can you share installation process of shadcn after tailwindcss v4? In my project when I install shadcn, tailwindcss v4 isn't validating and I installed tailwind following this tutorial.

    • @lukas.webdev
      @lukas.webdev  8 днів тому

      Shadcn doesn’t fully work with Tailwind CSS v4 yet because Tailwind Merge (which Shadcd relies on) isn’t compatible with v4 at the moment. The Tailwind Merge team is already working on an update.
      There is a workaround if you can’t wait a few more days for the update… but I’d really recommend holding off until official support and updated docs from Shadcd are available. 😉- Should I make a video about it once it’s out? 🤔

    • @aryamansingh1956
      @aryamansingh1956 7 днів тому +1

      @@lukas.webdev Yeah please do make a video

  • @shobhitparmar4024
    @shobhitparmar4024 4 дні тому

    With this version 4.0 I'm not getting tailwind.config.js file, so how could I install google fonts like roboto.

  • @Bladeszep
    @Bladeszep 10 днів тому +2

    How make tailwind config insteeed?

    • @lukas.webdev
      @lukas.webdev  10 днів тому +2

      One of the biggest changes in Tailwind CSS v4.0 => Instead of a tailwind.config.js file, you can configure all of your customizations directly in the CSS file. 😉
      For more informations go to => tailwindcss.com/blog/tailwindcss-v4#css-first-configuration

  • @arinmishra2141
    @arinmishra2141 4 дні тому

    i am not getting suggestions of tailwind classes even i have installed intellisence extension for it what should i do

  • @shivthedev
    @shivthedev 9 днів тому +5

    Honestly... this is just more irritating to become a front end developer... We are getting changes every second!

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      That’s right, but that’s coding! You’ve got to love learning new things. 🔥
      But the better you get and the longer you do it, the easier it becomes - just keep going! 💪 😉

  • @tawongachauluntha2880
    @tawongachauluntha2880 9 днів тому +1

    what about using vue .js Same process ?

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      If you're using Nuxt, there's an installation guide under the Framework Guides section => tailwindcss.com/docs/installation/framework-guides/nuxt
      Otherwise, it depends on your build tool. If you're using Vite, the process is almost the same as in this video! 😉

  • @rohitrkl1971
    @rohitrkl1971 10 днів тому +1

    How to use daisyUI with the new tailwind css !?

    • @lukas.webdev
      @lukas.webdev  10 днів тому

      With Tailwind CSS v4, you can now import daisyUI as a plugin in the CSS file. 😉
      More informations on that topic => v5.daisyui.com/docs/v5-beta/#tailwind-css-4-compatibility

    • @rohitrkl1971
      @rohitrkl1971 10 днів тому +1

      @@lukas.webdev thankyou 🙌

  • @nramyareddy9418
    @nramyareddy9418 5 днів тому

    Unable to get the tailwind class names suggestions? Can you please give solution fir that?

  • @armandsputra495
    @armandsputra495 7 годин тому

    I do not found tailwindcss.config.js

  • @arturvillanova4991
    @arturvillanova4991 2 дні тому

    intellisense doest work on this whyyy

  • @1boysod
    @1boysod 8 днів тому +1

    need more tutorial please

    • @lukas.webdev
      @lukas.webdev  8 днів тому

      Thanks for letting me know! I'm already working on more Tailwind CSS content. Make sure to subscribe so you don't miss it. 😉

  • @amitgorai1202
    @amitgorai1202 8 днів тому

    Make a full video about Tailwind CSS v4 .

  • @vsrrv12
    @vsrrv12 7 днів тому

    I had confusion where to paste @import " tailwindcss".
    Thank you. I am from Bangladesh 🇧🇩

  • @shoopdewoop3325
    @shoopdewoop3325 День тому

    Hello so I have a question. I already have a React project and folder ready, do I still need to run the "npm create vite@latest tailwindcss4 -- --template react command"? Also, I don't know if it's relevant, but in my package.json, I have a script "start" that runs "react-scripts start".

    • @hauntedREADY
      @hauntedREADY 11 годин тому

      if you have a already React project and folder ready,
      so ,
      only use this cmd npm install tailwindcss @tailwindcss/vite

  • @mounirhabbas7969
    @mounirhabbas7969 10 днів тому

    It works but i have type errors after changing the config file (im using ts and if u can mention how i use tailwind and css.modules in the same time)

  • @dheenahere
    @dheenahere 9 днів тому

    h1 text is Bigger now 🔥

    • @lukas.webdev
      @lukas.webdev  9 днів тому

      I only changed the text color - why would the h1 size be different? 🤔

  • @murali-krishnan
    @murali-krishnan 9 днів тому +1

    Make an in-depth TailwindCSS v4 video, Lukus

    • @lukas.webdev
      @lukas.webdev  8 днів тому +1

      Thanks for the input! I'll see what I can do - subscribe so you don't miss it! 😉

  • @Nihal-lw6iw
    @Nihal-lw6iw 9 днів тому

    i have a problem that my npm run dev didn't work and i get a error. please help me

  • @vishalkumarchoudhary8497
    @vishalkumarchoudhary8497 10 днів тому +1

    After installation all things and run command npm run dev
    failed to load config from C:\Users\HP\Desktop\ecommerce\vite.config.js error when starting dev server: Error: The specified module could not be found. \?\C:\Users\HP\Desktop\ecommerce
    ode_modules@tailwindcss\oxide-win32-x64-msvc\tailwindcss-oxide.win32-x64-msvc.node at Module. extensions ..

    • @vishalkumarchoudhary8497
      @vishalkumarchoudhary8497 10 днів тому +1

      Is anyone can help me because searching everywhere.

    • @rparhyar
      @rparhyar 10 днів тому +1

      @@vishalkumarchoudhary8497 same issue

    • @samuelimman3047
      @samuelimman3047 10 днів тому +1

      @@rparhyarsame issue also

    • @lukas.webdev
      @lukas.webdev  10 днів тому +2

      I'll take a look at this for you - but first, can you please let me know your Node.js version? Also, did you install Tailwind v4 in a new project or an existing one?
      In the meantime, try deleting the node_modules folder and the package-lock.json file, then run npm install.

    • @Chillarbacha
      @Chillarbacha 10 днів тому +1

      ​@@lukas.webdev my node version is 18 and yes I do install tailwind v4 in my project still facing the same problem

  • @hopepak
    @hopepak 3 дні тому

    Interested

  • @codezytech
    @codezytech 9 днів тому

    I am not getting tailwind suggestion after thus update

    • @fazeelacharan3714
      @fazeelacharan3714 9 днів тому +1

      Exactly same , although it has implemented but not getting suggestions.

    • @saurabhpatel4589
      @saurabhpatel4589 9 днів тому

      @@fazeelacharan3714 same

  • @Mrx-w9g
    @Mrx-w9g 6 днів тому

    Best

  • @eklavyaraj5888
    @eklavyaraj5888 3 дні тому

    Ya more make videos more about this

  • @femina6172
    @femina6172 9 днів тому +1

    nxt video ..

    • @lukas.webdev
      @lukas.webdev  8 днів тому

      Thanks for the input! I'm already working on the next video - subscribe to get notified when it drops. 😉

  • @AjinkyaDarkase
    @AjinkyaDarkase 8 днів тому +1

    PS H:\Ajinkya_Content\Ajinkya_FullStack_Training\React_Learning\Practice\Practice> npm run dev
    > practice@0.0.0 dev
    > vite
    failed to load config from H:\Ajinkya_Content\Ajinkya_FullStack_Training\React_Learning\Practice\Practice\vite.config.js
    error when starting dev server:
    Error: The specified module could not be found.
    \\?\H:\Ajinkya_Content\Ajinkya_FullStack_Training\React_Learning\Practice\Practice
    ode_modules\@tailwindcss\oxide-win32-x64-msvc\tailwindcss-oxide.win32-x64-msvc.node
    at Object..node (node:internal/modules/cjs/loader:1725:18)
    at Module.load (node:internal/modules/cjs/loader:1313:32)
    at Function._load (node:internal/modules/cjs/loader:1123:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Module.require (node:internal/modules/cjs/loader:1335:12)
    at require (node:internal/modules/helpers:136:16)
    at Object. (H:\Ajinkya_Content\Ajinkya_FullStack_Training\React_Learning\Practice\Practice
    ode_modules\@tailwindcss\oxide\index.js:72:29)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)
    at Object..js (node:internal/modules/cjs/loader:1699:10)
    After running the npm run dev command i am getting this error what should i do next?

  • @OxieBeats
    @OxieBeats 6 днів тому

    Your content is Very GOOD!! but?? Your Thumbnail does not match current Trend. how can i Contact you because i want to make Thumbnail for YOU!!!!!!!!!

  • @spammemz8364
    @spammemz8364 3 дні тому +1

    Thank you sir

  • @Shyamgupta-uo7rs
    @Shyamgupta-uo7rs 7 днів тому

    thanku thanku so much brother

  • @fatimaiqra2169
    @fatimaiqra2169 3 дні тому

    thanks a lot!

  • @ramizmondal4922
    @ramizmondal4922 День тому

    thanks bro

  • @AJINVR-
    @AJINVR- 3 дні тому

    How can I use ShadCN with it?