Get started with Tailwind CSS latest version 2.2 without installing it

  Рет қаралды 3,709

Thirus

Thirus

Күн бұрын

Пікірлер: 71
@taheermattur
@taheermattur 3 жыл бұрын
Thank you! I needed this!!
@VaibhavShete
@VaibhavShete 3 жыл бұрын
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. :)
@Thirus
@Thirus 3 жыл бұрын
Oh that’s great! Good to know :)
@kieran2347
@kieran2347 3 жыл бұрын
Yet another amazing video! Thanks, Shruti
@Thirus
@Thirus 3 жыл бұрын
You’re welcome :)
@puneetsingh9678
@puneetsingh9678 3 жыл бұрын
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
@Thirus
@Thirus 3 жыл бұрын
Thanks for the info Puneet
@Slachy_dot
@Slachy_dot 3 жыл бұрын
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
@Thirus
@Thirus 3 жыл бұрын
Happy to hear that! You’re welcome 😊
@stephenlau2845
@stephenlau2845 3 жыл бұрын
Wao, So Powerfull the Tailwind Css v2.2, Thank you your Tutorial....!
@Thirus
@Thirus 3 жыл бұрын
You’re welcome 😊
@vishal_taywade
@vishal_taywade 3 жыл бұрын
OMG 😻 It's really awesome 👍👍 I love the latest features of Tailwind CSS 😻
@Thirus
@Thirus 3 жыл бұрын
Yes there are so many new features!
@webdeveloper7994
@webdeveloper7994 3 жыл бұрын
Your tutorials are awesome
@Thirus
@Thirus 3 жыл бұрын
Thank you 😊
@yddc902
@yddc902 3 жыл бұрын
made my day!
@Thirus
@Thirus 3 жыл бұрын
Awesome!
@puneetsingh9678
@puneetsingh9678 3 жыл бұрын
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
@Thirus
@Thirus 3 жыл бұрын
Initially I wasn’t comfortable either. But you may start liking it slowly. Look where I am now! Can’t not use it
@puneetsingh9678
@puneetsingh9678 3 жыл бұрын
@@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.
@Thirus
@Thirus 3 жыл бұрын
Yes that’s how it is! Feel free to DM on Twitter @shrutibalasa if you get stuck
@nitindevatraj
@nitindevatraj 3 жыл бұрын
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 ?
@tanzimibthesam5861
@tanzimibthesam5861 3 жыл бұрын
I am not good at Hindi but you are Tailwindwali.Excellent video
@Thirus
@Thirus 3 жыл бұрын
Ha ha thanks 😀
@gideonetowa9075
@gideonetowa9075 3 жыл бұрын
Thanks for the amazingly simplified video. How do I toggle or off/on the JIT watcher? I'm using Vscode for windows
@Thirus
@Thirus 3 жыл бұрын
Remove the -jit flag in the command when you don’t need it
@gideonetowa9075
@gideonetowa9075 3 жыл бұрын
@@Thirus Thank you
@lordsonmateleddi5481
@lordsonmateleddi5481 3 жыл бұрын
you are the best 😘😘
@jbraddockm
@jbraddockm 3 жыл бұрын
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.
@Thirus
@Thirus 3 жыл бұрын
With wordpress? I need to look into it
@jbraddockm
@jbraddockm 3 жыл бұрын
@@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.
@NZjmac
@NZjmac 3 жыл бұрын
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?
@Thirus
@Thirus 3 жыл бұрын
No I’m sure that’s not the case. I only have npm globally installed. I wonder why it doesn’t work
@NZjmac
@NZjmac 3 жыл бұрын
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.
@Thirus
@Thirus 3 жыл бұрын
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-sh1vj
@rxxt-sh1vj 3 жыл бұрын
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 ?
@Thirus
@Thirus 3 жыл бұрын
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-sh1vj
@rxxt-sh1vj 3 жыл бұрын
@@Thirus Thanks for the prompt reply...:D one more thing can you make a complete course on using Tailwind CSS ?
@anuj7286
@anuj7286 3 жыл бұрын
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?
@Thirus
@Thirus 3 жыл бұрын
Can you connect to me on Twitter @shrutibalasa and share some screenshots?
@anuj7286
@anuj7286 3 жыл бұрын
@@Thirus okay i will share it.
@sunilsharma1233
@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
@Thirus Жыл бұрын
Please follow this video on latest version - kzbin.info/www/bejne/nmq9pqFqZpKCsMU
@sunilsharma1233
@sunilsharma1233 Жыл бұрын
@@Thirus not a frontend developer. but love your content. thanks a lot
@denismakau544
@denismakau544 3 жыл бұрын
nice one😊
@rangabharath4253
@rangabharath4253 3 жыл бұрын
awesome
@adarshchakraborty
@adarshchakraborty 3 жыл бұрын
What is the use of postcss
@Thirus
@Thirus 3 жыл бұрын
You can use autoprefixer with it. So you don’t have to add prefixes like “-webkit-“ manually
@oscarl06
@oscarl06 3 жыл бұрын
Perfect
@Thirus
@Thirus 3 жыл бұрын
Thank you!
@srikanth_mrconfident
@srikanth_mrconfident 3 жыл бұрын
Hi Shruti ji your is tutorial amazing please do hindi language videos
@Thirus
@Thirus 3 жыл бұрын
I’m not good at Hindi
@srikanth_mrconfident
@srikanth_mrconfident 3 жыл бұрын
ok mam thanks for reply
@rubenchiquin3768
@rubenchiquin3768 3 жыл бұрын
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
@Thirus
@Thirus 3 жыл бұрын
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?
@rubenchiquin3768
@rubenchiquin3768 3 жыл бұрын
@@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?
@Thirus
@Thirus 3 жыл бұрын
Hmm no, I don’t think so
@Krlos5605
@Krlos5605 3 жыл бұрын
@@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.
@Thirus
@Thirus 3 жыл бұрын
Looks like there’s no other way
@hi-yi7en
@hi-yi7en 3 жыл бұрын
👍👍👍
@CharlesOkwuagwu
@CharlesOkwuagwu 3 жыл бұрын
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
@Thirus
@Thirus 3 жыл бұрын
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
@KrishnaManohar8021
@KrishnaManohar8021 3 жыл бұрын
Can you make one deep side course ?
@Thirus
@Thirus 3 жыл бұрын
Deep side course meaning?
@KrishnaManohar8021
@KrishnaManohar8021 3 жыл бұрын
@@Thirus sry deep dive. Like nav bar, image sliders, projects, etc.
@Thirus
@Thirus 3 жыл бұрын
There are multiple such videos in this playlist - navbar, contact section, testimonials section, portfolio, landing page and more
@_q1b_
@_q1b_ 3 жыл бұрын
Nice 🙂 One from me
@Thirus
@Thirus 3 жыл бұрын
Thank you :)
@loiuxxx
@loiuxxx 2 жыл бұрын
how to run tailwind project on other devices?
@Thirus
@Thirus 2 жыл бұрын
You mean without hosting the website?
@loiuxxx
@loiuxxx 2 жыл бұрын
@@Thirus yes. i mean html files and css file to be opened on other devices.
Install Tailwind CSS with Vue 3 and Vite
6:32
Thirus
Рет қаралды 6 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 48 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 14 МЛН
Light & Dark Mode toggle using Tailwind CSS & Alpine JS
19:30
Learn CSS in 20 Minutes
23:44
Web Dev Simplified
Рет қаралды 1,9 МЛН
Learn MUI (Material UI) in under 10 min!
9:06
FrontStart
Рет қаралды 149 М.
Junior vs Senior React Folder Structure - How To Organize React Projects
16:16
Learn CSS Animation In 15 Minutes
15:33
Web Dev Simplified
Рет қаралды 774 М.
How The Web Works - The Big Picture
12:25
Academind
Рет қаралды 530 М.
А зачем ему рабочий ноутбук?..
0:12
Новостной Гусь
Рет қаралды 656 М.
iPhone включил камеру 📲
0:32
serg1us
Рет қаралды 366 М.
MacBook Pro Announcement - October 30
16:53
Apple
Рет қаралды 23 МЛН