This is amazing! I have been trying to learn postcss and things like gulp/webpack just to get what this does out of the box! I just couldn't figure out the 'watch' option in those things. But now I do, thanks to you. Thanks for walking me through it so nicely. :)
@Thirus3 жыл бұрын
Oh that’s great! Good to know :)
@kieran23473 жыл бұрын
Yet another amazing video! Thanks, Shruti
@Thirus3 жыл бұрын
You’re welcome :)
@puneetsingh96783 жыл бұрын
Based on this video I have created a custom script for my ReactJS project: "build-css": "npx tailwindcss -i ./src/tailwind.css -o ./src/index.css --minify --jit --purge='./src/**/*.jsx' -w" But for some reason it was not working with yarn run build-css command when I tried it with npm run build-css it worked. If you guys are facing similar problem might wanna use npm instead of yarn
@Thirus3 жыл бұрын
Thanks for the info Puneet
@Slachy_dot3 жыл бұрын
Thank you for your videos they are very helpful and made my days a lot easy with getting a nice workflow in my vs-code setup
@Thirus3 жыл бұрын
Happy to hear that! You’re welcome 😊
@stephenlau28453 жыл бұрын
Wao, So Powerfull the Tailwind Css v2.2, Thank you your Tutorial....!
@Thirus3 жыл бұрын
You’re welcome 😊
@vishal_taywade3 жыл бұрын
OMG 😻 It's really awesome 👍👍 I love the latest features of Tailwind CSS 😻
@Thirus3 жыл бұрын
Yes there are so many new features!
@webdeveloper79943 жыл бұрын
Your tutorials are awesome
@Thirus3 жыл бұрын
Thank you 😊
@yddc9023 жыл бұрын
made my day!
@Thirus3 жыл бұрын
Awesome!
@puneetsingh96783 жыл бұрын
This new version is soo awesome 😻. I've decided you to use tailwindcss in new project but still not comfortable with it, I like vanilla css more. But learning tailwindcss will help me in the long run
@Thirus3 жыл бұрын
Initially I wasn’t comfortable either. But you may start liking it slowly. Look where I am now! Can’t not use it
@puneetsingh96783 жыл бұрын
@@Thirus Thanks its a little intimidating as I have to finish project in a deadline and using external library will give me plus points hence using it, but also scared of getting stuck on something and not able to complete task under given time. I guess that's part of being a developer 😅 so gonna give it a shot.
@Thirus3 жыл бұрын
Yes that’s how it is! Feel free to DM on Twitter @shrutibalasa if you get stuck
@nitindevatraj3 жыл бұрын
So so thankful that I found this video, even the official docs don't contain info on using the jit and purge options.just one of thing is there a resource where I can dive deep into how to use this cli , for ex I didn't much understand how the arg given to the purge flag works ?
@tanzimibthesam58613 жыл бұрын
I am not good at Hindi but you are Tailwindwali.Excellent video
@Thirus3 жыл бұрын
Ha ha thanks 😀
@gideonetowa90753 жыл бұрын
Thanks for the amazingly simplified video. How do I toggle or off/on the JIT watcher? I'm using Vscode for windows
@Thirus3 жыл бұрын
Remove the -jit flag in the command when you don’t need it
@gideonetowa90753 жыл бұрын
@@Thirus Thank you
@lordsonmateleddi54813 жыл бұрын
you are the best 😘😘
@jbraddockm3 жыл бұрын
Thank you for this. I was wondering if you have a tutorial that additionally shows how to integrate and compile scss files as well as to use Tailwind JIT with WordPress? I couldn’t find an up to date tutorial that address these two questions. Thx.
@Thirus3 жыл бұрын
With wordpress? I need to look into it
@jbraddockm3 жыл бұрын
@@Thirus I’ve actually managed to do this last night with Laravel Mix, sass, sass-loader and using your tutorials. Now I have to integrate BrowserSync to the setup and move it to an actual WordPress setup. But a tutorial on this would be highly appreciated. Also, the syntax in your Postcss config file is different than most documentation online. For example, how do I add tailwindcss/nesting to it? If I change the script to accept require('tailwindcss/nesting') then the conditional check for cssnano gets broken. How can I add this as well as plug-in options for cssnano while keeping the env check in place? Thank you.
@NZjmac3 жыл бұрын
Hi Shruti Great tutorial but there must be a step missing, I have tried the command npx tailwindcss -o styles.css on three different computers (2 mac's and on linux) and this command wont work on any of them. If I add a src styles sheet with @tailwind directives and use npx tailwindcss build src/style.css -o styles.css it will work. It woud appear that there is some global tailwind css stuff on your machine that the npx command is using?
@Thirus3 жыл бұрын
No I’m sure that’s not the case. I only have npm globally installed. I wonder why it doesn’t work
@NZjmac3 жыл бұрын
The output from the command shows tailwindcss 2.1.4 then Usage tailwind [options] then a list of the commands available help | init | build (all have options) ? I get this output on all machines with just the tailwind version varying.
@Thirus3 жыл бұрын
Oh wait tailwind 2.1.4 how? It must be 2.2.x Why is it getting you the older version? That’s why it doesn’t work. This is the feature of 2.2 version
@rxxt-sh1vj3 жыл бұрын
Hello shruti...how can we purge files with both .html and .php extensions in one command? Which is better to you according to you out of bootstrap 5.0 or tailwind CSS 2.2 ?
@Thirus3 жыл бұрын
You can mention both the paths of html and php files in the ‘purge’ option. Bootstrap or Tailwind depends on your requirements. If you need ready components like models, navbars and buttons, you can use Bootstrap. But otherwise Tailwind is great
@rxxt-sh1vj3 жыл бұрын
@@Thirus Thanks for the prompt reply...:D one more thing can you make a complete course on using Tailwind CSS ?
@anuj72863 жыл бұрын
Hi mam, I am facing some issues in tailwind installation in next js is JIT mode is breaking the CSS in the latest version without JIT mode it works fine... How to fix that?
@Thirus3 жыл бұрын
Can you connect to me on Twitter @shrutibalasa and share some screenshots?
@anuj72863 жыл бұрын
@@Thirus okay i will share it.
@sunilsharma1233 Жыл бұрын
i am on windows and using npm 6.14.15. i am facing error whille executing npx npm ERR! Could not install from "Sharma\Desktop\test\=\_npx\2072" as it does not contain a package.json file.
@Thirus Жыл бұрын
Please follow this video on latest version - kzbin.info/www/bejne/nmq9pqFqZpKCsMU
@sunilsharma1233 Жыл бұрын
@@Thirus not a frontend developer. but love your content. thanks a lot
@denismakau5443 жыл бұрын
nice one😊
@rangabharath42533 жыл бұрын
awesome
@adarshchakraborty3 жыл бұрын
What is the use of postcss
@Thirus3 жыл бұрын
You can use autoprefixer with it. So you don’t have to add prefixes like “-webkit-“ manually
@oscarl063 жыл бұрын
Perfect
@Thirus3 жыл бұрын
Thank you!
@srikanth_mrconfident3 жыл бұрын
Hi Shruti ji your is tutorial amazing please do hindi language videos
@Thirus3 жыл бұрын
I’m not good at Hindi
@srikanth_mrconfident3 жыл бұрын
ok mam thanks for reply
@rubenchiquin37683 жыл бұрын
Now that I don't have to install it, i'm having problems using the tailwlind CSS IntelliSense plugin for the snippets. I've checked the installation details of the plugin and it says that "In order for the extension to activate you must have tailwindcss installed and a Tailwind config file named tailwind.config.js in your workspace." Any ideas how to remidate this? P.D: Great video! Helped me alot
@Thirus3 жыл бұрын
Installing might not be required. Config file is required for sure. Can you try generating the default config file and see if the plugin works?
@rubenchiquin37683 жыл бұрын
@@Thirus Hello! Thanks for the quick reply. Yes, i've tried, but it doesn't seem to work. But as soon as I install tailwind (npm install tailwindcss) and restart Visual Studio Code, the plugin starts working again. Perhaps there's a way to keep it always on?
@Thirus3 жыл бұрын
Hmm no, I don’t think so
@Krlos56053 жыл бұрын
@@Thirus I'm having the same problem. Tailwlind CSS IntelliSense is not working using Tailwind CLI, I had to install Tailwindcss and create a tailwind config file to get IntelliSense to work again.
@Thirus3 жыл бұрын
Looks like there’s no other way
@hi-yi7en3 жыл бұрын
👍👍👍
@CharlesOkwuagwu3 жыл бұрын
Thanks for these great tutorials. Please can you share your recommendations for using the new v2.2 with vite+vue3+TS since v2.2 has its own cli, how do we get it to play nice with vite and still have the watch option running
@Thirus3 жыл бұрын
Everything would be same as before. This CLI is just another way of using Tailwind. For JIT mode, in tailwind.config.js - add ‘mode’: ‘jit’ and make sure you have the purge paths correct. With this if you do “npm run dev” (or whatever you usually do in Vite), it would start watching the files
@KrishnaManohar80213 жыл бұрын
Can you make one deep side course ?
@Thirus3 жыл бұрын
Deep side course meaning?
@KrishnaManohar80213 жыл бұрын
@@Thirus sry deep dive. Like nav bar, image sliders, projects, etc.
@Thirus3 жыл бұрын
There are multiple such videos in this playlist - navbar, contact section, testimonials section, portfolio, landing page and more
@_q1b_3 жыл бұрын
Nice 🙂 One from me
@Thirus3 жыл бұрын
Thank you :)
@loiuxxx2 жыл бұрын
how to run tailwind project on other devices?
@Thirus2 жыл бұрын
You mean without hosting the website?
@loiuxxx2 жыл бұрын
@@Thirus yes. i mean html files and css file to be opened on other devices.