How To Install Tailwind CSS | Install Tailwind Via NPM | Tailwind Tutorial | Learn Tailwind 2 CSS

  Рет қаралды 45,526

Code With Dary

Code With Dary

Күн бұрын

Пікірлер: 89
@codewithdary
@codewithdary 2 жыл бұрын
LETS CONNECT THROUGH INSTAGRAM. www.Instagram.com/codewithdary
@jessica-tv6ep
@jessica-tv6ep 3 жыл бұрын
You deserve more subscribers, Man! Don't stop, keep going! You'll get more subs, I believe.
@codewithdary
@codewithdary 3 жыл бұрын
Ah that's so sweet! Thank you so much. 1 or 1M subscribers, I just want to help people :)
@camaronornelas3178
@camaronornelas3178 Жыл бұрын
Great walkthrough. Been struggling with plesk install of tailwind, but this worked for me!!!
@codewithdary
@codewithdary Жыл бұрын
Glad it helped buddy!! :)
@yavuzdemir7184
@yavuzdemir7184 Жыл бұрын
Thanks. This video helped me understand the official instructions clearly.
@codewithdary
@codewithdary Жыл бұрын
I'm happy to help Yavuz!
@chooticharika
@chooticharika 2 жыл бұрын
You are the only one gives simple and deep guidelines. Thank you very much
@codewithdary
@codewithdary 2 жыл бұрын
You are welcome Charika :)
@arshiashirzad4329
@arshiashirzad4329 2 жыл бұрын
peerfect, I just can say this was the only tutorial that solved my problem installing tailwind, keep going
@blueprintoc3453
@blueprintoc3453 3 жыл бұрын
This tutorial solved my inability to get tailwind to work with Electron. Their documentation doesn't state to pre-build the style.css before using it. Though i'm new to JS programming so that might just be common knowledge.
@codewithdary
@codewithdary 3 жыл бұрын
Lovely!
@stefanocons
@stefanocons 3 жыл бұрын
Your videos are amazing! You are a very good teacher and I'm learning a lot, thank you so much!!
@codewithdary
@codewithdary 3 жыл бұрын
Thanks for being here Stafano, that means a lot to me as well! :)
@shbd1701
@shbd1701 2 жыл бұрын
clean and simple explanation easy to understand, glade to find your channel. keep going wish you the best...thumbs up
@codewithdary
@codewithdary 2 жыл бұрын
Thank you for your nice words!
@oluwaseyibabarinde5297
@oluwaseyibabarinde5297 2 жыл бұрын
Thank you Dary for the tutorial
@codewithdary
@codewithdary 2 жыл бұрын
Thank you for watching Oluwaseyi!
@newdehan3889
@newdehan3889 3 жыл бұрын
When i download tailwind, i dont get package json.. only lock json.. what i must to do ? Write manualy or ?
@MrMrsmerrell
@MrMrsmerrell 2 жыл бұрын
rerun npm install -D tailwindcss
@theguy6740
@theguy6740 2 жыл бұрын
Nothing opens in the workspaces for me after I follow all steps, not Node nor package-lock or package .json files
@codewithdary
@codewithdary 2 жыл бұрын
Please follow their official documentation: tailwindcss.com/docs/installation
@wealthwisy
@wealthwisy 3 жыл бұрын
man trust me you deserve better !
@codewithdary
@codewithdary 3 жыл бұрын
We will get there!!!
@DjokovicIsOurLordAndSaviour
@DjokovicIsOurLordAndSaviour 3 жыл бұрын
This worked for me. Thanks.
@codewithdary
@codewithdary 3 жыл бұрын
You're welcome!
@soufianebk6252
@soufianebk6252 3 жыл бұрын
your tutorials are great !!!
@codewithdary
@codewithdary 3 жыл бұрын
Thank you!
@manuelcuevas1378
@manuelcuevas1378 2 жыл бұрын
Great video thanks.
@codewithdary
@codewithdary 2 жыл бұрын
Thank you Manuel!
@serbob8636
@serbob8636 2 жыл бұрын
Hello, I have a problem, my classes are not working, what could be the problem?
@codewithdary
@codewithdary 2 жыл бұрын
Probably linked your CSS in the wrong way or your CSS has not been compiled :)
@dnlcorona
@dnlcorona 2 жыл бұрын
I have the same problem, what should i do?
@edozieonyeanusi4225
@edozieonyeanusi4225 3 жыл бұрын
I noticed your directives had the yellow underlines showing a warning of some sorts, I had something quite similar in my own too with an error message of "Unknown at rule @tailwind". I would love to know how you corrected yours, thank you.
@codewithdary
@codewithdary 3 жыл бұрын
Tailwind directives are not valid CSS syntax; so VSCode is complaining. You can suppress unknown at rules warnings in the Lint setting for CSS by modifing your module.exports: module.exports = { rules: { 'at-rule-no-unknown': [true, { ignoreAtRules: [ 'tailwind', 'apply', 'variants', 'responsive', 'screen' ] }], 'declaration-block-trailing-semicolon': null, 'no-descending-specificity': null }
Жыл бұрын
for some reason at the point when you use npm run build-css i got a warning message instead that says no utility classes detected in source file i cant get further and didnt get the file saved shown any ideas?
@aaron6822
@aaron6822 2 жыл бұрын
cant believe im stuck 5 min in but is (classname= "underline text-3x1") a shrotcut? is there a plugin i didnt install or a step i could have possibly missed with the tailwind installation? it does not unterline or increase text size bby 3x. im pretty sure movingf forward without figuring this out first will be an issue with the css in the future. accepting help from anybody
@codewithdary
@codewithdary 2 жыл бұрын
Did you run npm run watch to compile your assets?
@aaron6822
@aaron6822 2 жыл бұрын
@@codewithdary thanks for the reply. It was a simple mistake I was able to rectify it. I hope to learn as much as I can from this video and the others you have taken the time to create
@qobiljonnajmiddinov4551
@qobiljonnajmiddinov4551 Жыл бұрын
Hello! What kind of color theme is used in the video?
@codewithdary
@codewithdary Жыл бұрын
I got a new one right now but I think it was Material Theme Palenight
@dreadskin3439
@dreadskin3439 2 жыл бұрын
it doesn't shows to me package.json ?
@pauliversoncortez1544
@pauliversoncortez1544 3 жыл бұрын
I hope i can see more of this, and please add a playlist for this tailwind tutorial. thanks sir Dary.
@codewithdary
@codewithdary 3 жыл бұрын
Will do!
@anandoptimus7160
@anandoptimus7160 2 жыл бұрын
I have done my tailwindcss class but it doesn't works 🙃 y....
@jansanchez
@jansanchez 2 жыл бұрын
Cool video. In my case, all the process goes well but then when I try to use some Tailwindcss class they don't load ):
@codewithdary
@codewithdary 2 жыл бұрын
Clear cache?
@alanproduction910
@alanproduction910 Жыл бұрын
thank you
@codewithdary
@codewithdary Жыл бұрын
You're welcome Alan!
@orlandoflores-pd
@orlandoflores-pd 2 жыл бұрын
Having an issue with this. When coding an index.html and adding tailwind classes, can't see the css classes being recognized in Live Server, unless I run (every time I add a new class) 'npm run build-css'. It's like the generated css only contains the added classes in the html file. So it's frustrating that I have to run that line every time I add a new class in the html. Is that how it's supposed to work, or I'm doing something wrong :/
@codewithdary
@codewithdary 2 жыл бұрын
That is actually what you want.. Otherwise you're adding a stylesheet of 5 MB which can slow down your site. You want to minimise the stylesheet size by compiling it and only using classes that you need.
@orlandoflores-pd
@orlandoflores-pd 2 жыл бұрын
@@codewithdary Yep I see the point that the css file is light because it only has the needed css lines. But let me explain why I suffer with my workflow: I add a class, then I have to run the build-css line. This again and again, for every single class. It gets annoying. I think there could be a middle point, where you could add freely any classes from the complete stylesheet, and skipping the build-css run command. And in a later stage, when you have just 300 classes from the available 5000, then compile it so it's just 2 kb. Hope you see my point, I'm sure I'm doing something wrong, because in videos you only hit save
@elyorsadulaev7261
@elyorsadulaev7261 2 жыл бұрын
throwing error 404 when i try install tailwind css to my vue project, can you help me ?
@codewithdary
@codewithdary 2 жыл бұрын
Have you seen Tailwinds official documentation when using Vue? tailwindcss.com/docs/guides/vite
@Olu_Adm
@Olu_Adm Жыл бұрын
I got the installation up to the point of 9:44, only to open the css file and see that it is empty Please what can I do???
@codewithdary
@codewithdary Жыл бұрын
Please following the following link, Tailwind CSS came out with a new version: tailwindcss.com/docs/guides/laravel
@riateefrhaimjayj.3945
@riateefrhaimjayj.3945 Жыл бұрын
is this also applicable if I'm going to use pnpm?
@codewithdary
@codewithdary Жыл бұрын
I have never used pnpm but I assume it does!
@flaschiboi7189
@flaschiboi7189 2 жыл бұрын
It didn't work for me. First it said "[deprecation] Running tailwindcss without -i, please provide an input file." provided an input file (-i style.css) and I just got 420 Lines of CSS (it should be around 300000) this is pretty annoying. Can you help?
@thi-m10
@thi-m10 2 жыл бұрын
Just place the -i tag before the input css file path. Example: build -i ./src/style.css (... rest of command)
@codewithdary
@codewithdary 2 жыл бұрын
Thiago for president :)
@amalamaggie
@amalamaggie 2 жыл бұрын
@@thi-m10 bro please let me know when should I include -i ? For me too the same problem
@thi-m10
@thi-m10 2 жыл бұрын
@@amalamaggie between BUILD and INPUT FILE PATH. "build -i style.css", for instance 😉
@kubagostkowski2337
@kubagostkowski2337 2 жыл бұрын
Hello I have some problem with Tailwind. Running tailwindcss without -i, please provide an input file. - maybee someone know what i need to do with this error?
@codingcody
@codingcody 2 жыл бұрын
same!
@codewithdary
@codewithdary 2 жыл бұрын
Tailwind has recently released version 3.0, which changed some things up. Here is the correct installation for Tailwind now: Run the following two commands in the CLI: npm install -D tailwindcss npx tailwindcss init Configure your template paths inside the tailwind.config.js file: module.exports = { content: ["./src/**/*.{html,js}"], theme: { extend: {}, }, plugins: [], } Add Tailwind directive to your CSS file: @tailwind base; @tailwind components; @tailwind utilities; Start the Tailwind CLI build proces: npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
@amalamaggie
@amalamaggie 2 жыл бұрын
@@codewithdary Hi bro, I tried this, but still I get an error that specified input file ./etc/input.css does not exist
@amalamaggie
@amalamaggie 2 жыл бұрын
@@codewithdary I can't thank u enough bro!.. keep up the great work 👍
@lunamaibach2810
@lunamaibach2810 2 жыл бұрын
What is that extension with the emojis in your terminal? I want to download that too!
@codewithdary
@codewithdary 2 жыл бұрын
Here you go! github.com/ohmyzsh/ohmyzsh/wiki/Themes
@zerochu3599
@zerochu3599 2 жыл бұрын
hello! may i know what is your terminal theme? It looks cool!
@codewithdary
@codewithdary 2 жыл бұрын
Here you go: ohmyz.sh/
@someuserouthere
@someuserouthere 3 жыл бұрын
Thank you so much!
@codewithdary
@codewithdary 3 жыл бұрын
You're welcome!
@proteus1
@proteus1 2 жыл бұрын
Impossible to install on my imac, even if I follow exactly..no such file or directory.
@codewithdary
@codewithdary 2 жыл бұрын
Doesn't have anything to do with your iMac, check the difference with their official documentation right here: tailwindcss.com/docs/installation
@graham11545
@graham11545 3 жыл бұрын
I did not get any package.json
@nizz4m
@nizz4m 3 жыл бұрын
me too After install the tailwind, my folder was empty
@mateboros952
@mateboros952 3 жыл бұрын
delete package-lock and type in terminal npm init
@nizz4m
@nizz4m 3 жыл бұрын
@@mateboros952 now its working.thank you.
@dreidgon
@dreidgon 2 жыл бұрын
For me it was that the npm was not up to date,so I upgrade it with npm install npm@latest -g
@manto7
@manto7 3 жыл бұрын
Am I the first one to comment?
@codewithdary
@codewithdary 3 жыл бұрын
I guess so :)
@valentinfigueiredo
@valentinfigueiredo 3 жыл бұрын
why you dont do npm init? thanks
@jessica-tv6ep
@jessica-tv6ep 3 жыл бұрын
just do npm init if you want. I did it too before installing tailwind and other dependencies
@developers_hub
@developers_hub 2 жыл бұрын
css classes not working man
@codewithdary
@codewithdary 2 жыл бұрын
What’s going on?
@dnlcorona
@dnlcorona 2 жыл бұрын
I have the same problem, what did you do to solve?
@pucksheet4456
@pucksheet4456 2 жыл бұрын
Why I cant type shit on my terminal
Install Tailwind CSS v3 - CDN vs CLI vs PostCSS
34:19
Thirus
Рет қаралды 31 М.
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 6 МЛН
you NEED to use VS Code RIGHT NOW!!
12:48
NetworkChuck
Рет қаралды 576 М.
10 Tailwind Tricks You NEED To Know!
10:45
Ravi - Perfect Base
Рет қаралды 304 М.
Build any layout with tailwind | crash course
34:28
Hitesh Choudhary
Рет қаралды 93 М.
Top 10 Tips and Tricks with Tailwind CSS
23:45
developedbyed
Рет қаралды 90 М.
Tailwind CSS Crash Course
30:31
Traversy Media
Рет қаралды 645 М.
Tailwindcss Tools you can't live Without as a Developer
10:37
Sorting Tailwind CSS Classes Automatically with Prettier
10:00
Tailwind Labs
Рет қаралды 89 М.