Configure React to use TailwindCSS - The right way - 5 Minute Tutorial

  Рет қаралды 6,575

Dylan Albertazzi

Dylan Albertazzi

3 жыл бұрын

❗️ You’re probably here because you can’t get tailwind CSS to work with your create react app project. It’s because you haven’t configured it properly. Today we’ll learn how to quickly get tailwind configured and verify it works.
🧠 Tailwind is like bootstrap on steroids. If you can’t get it to work, stick with it, it’s well worth the effort once it’s set up!
TailwindCSS: tailwindcss.com/
TailwindUI: tailwindui.com/
---
WHO AM I: I'm Dylan, a Cloud Engineer living in Bend, Oregon. I use my background in tech to make videos about technology that enables and grows businesses.
---
🌍 My website / blog -
dylanalbertazzi.com/

Пікірлер: 42
@AhmedAli-sr4pb
@AhmedAli-sr4pb 3 жыл бұрын
Love you bro. You are awesome. Nice, simple and short.
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
Thank you so much 😀
@YOUdudex
@YOUdudex 3 жыл бұрын
worked thanks, now need to learn how to use tailwind lol, subscribed
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
Glad I could help
@Krishnamultiverse4016
@Krishnamultiverse4016 2 жыл бұрын
Sir I am struck at Craco idk y everything else runs fine.. but when I copy paste craco it shows so many errors ..plz help.. and for tailwindcsss v3.0 I manged to install it in react app.but then when I start to code in app.js the component doesn't import at all ..is there any craco for tailwind 3 ? Plz check it out and help me 🙏
@preethamm.s6095
@preethamm.s6095 3 жыл бұрын
Thanks for this video. A new subscriber added to your channel xD
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
Welcome aboard!
@rayahmed2202
@rayahmed2202 3 жыл бұрын
nicely done. thanks friend.
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
So glad it helped!
@khandoor7228
@khandoor7228 3 жыл бұрын
good stuff DA
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
I'm so glad you enjoyed it!
@codeaperture
@codeaperture 2 жыл бұрын
New version doesn't need this craco, right?
@ezeobisochima9944
@ezeobisochima9944 Жыл бұрын
Hi Dylan, great tutorial over there, but sadly my styles didn't apply, I am also using daisy ui and both the daisy and the tailwind isn't working. what can I do?
@abcdfgabcdfg6096
@abcdfgabcdfg6096 Жыл бұрын
Hey ! Did you find the solution cuz Im having the same problem here...
@samimaher2880
@samimaher2880 3 жыл бұрын
Hey thanks for the video , I've followed all the steps mentionned in the documentation but still not working . I don"t get any error but the css is not applied , I am using nodeJs 16
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
Oh no! It's tough to tell what's wrong just by your node version / your version shouldn't make a difference. Did you ever get it to work?
@NathanielScottYT
@NathanielScottYT 2 жыл бұрын
dude can you pls make a tutorial on getting tailwind css intellisense working I can't find any working tutorial
@dylanalbertazzi
@dylanalbertazzi 2 жыл бұрын
Noted, I'll add it to the list!
@kyulol3235
@kyulol3235 3 жыл бұрын
Did you try with JIT ? I am struggling with JIt and react ;s
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
I haven't :/
@abhishek.rathore
@abhishek.rathore 3 жыл бұрын
Great vid dude. One question though, will it work just as smoothly (like without hassle) if I use typescript template for create-react-app?
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
thanks! I don't see any issues with that... give it a try!
@abhishek.rathore
@abhishek.rathore 3 жыл бұрын
@@dylanalbertazzi Yess I tried and it worked. A had to do a little hack. When I was using craco.config.ts it wasnt working but after making it just JavaScript it started working. Thanks a lot.
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
@@abhishek.rathore Boom, great work!
@rahulanand6015
@rahulanand6015 3 жыл бұрын
followed every single stwp but it didn't worked for me as it is showing an issue with the autoprefixer
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
I'm sorry to hear that. Did you ever figure it out?
@rahulanand6015
@rahulanand6015 3 жыл бұрын
@@dylanalbertazzi recently i got the solution by reinstalling everything and running some commands. I have searched for it a lot and stack overflow helped me out in finding the solution. Anyways a big thanks to you mate.
@AltheaSchutte
@AltheaSchutte 3 жыл бұрын
Have you tried getting tailwind to work with react storybook?
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
I haven’t!
@mithileshkumbhar1347
@mithileshkumbhar1347 3 жыл бұрын
how do i connect with you ? just had doubt's. Thanks Mate!
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
Hey! shoot me an email at d.albertazzi10@gmail.com
@alwinvillero4404
@alwinvillero4404 3 жыл бұрын
What are the benefits of using tailwind?
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
consistency across your projects and faster development speed 🏎
@janosmarta8258
@janosmarta8258 3 жыл бұрын
I didnt learned so much about copy and paste than in this video.:) If you want a real problem solving, solve the vite+react+tailwind how to configurate problem.
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
yep, nothing too fancy here. just helping those new to the platform get up and running! I’ve never used vite. what are its advantages?
@janosmarta8258
@janosmarta8258 3 жыл бұрын
@@dylanalbertazzi I watched Evan You interview by Brian Doulas on github youtube, very messmerizing if I can say so.:) Its advantages the esbuild bundler speed what is almost 100 times faster than webpack or parcel, than hot module replacement and static live server amongst its other features.
@ezeobisochima9944
@ezeobisochima9944 Жыл бұрын
And also the craco didn't work.
@lawrencemotions8720
@lawrencemotions8720 2 жыл бұрын
{: "Unknown at rule @tailwind", }
@softwareengineerlife6252
@softwareengineerlife6252 3 жыл бұрын
you just need to tell .. follow tailwind doc , no need to create video on it
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
Hi Akash, This video is targeted at beginners who are still learning to read the documentation. I could've put a disclaimer at the beginning... next time it will be there! Thanks for being part of the learning process with me:)
@mapardo84
@mapardo84 3 жыл бұрын
Hey Dylan, I've got this error after doing the exact same steps you showed. Unknown at rule @tailwindcss(unknownAtRules). Hope you can help me. Thanks in advance
@dylanalbertazzi
@dylanalbertazzi 3 жыл бұрын
Hey, thanks for watching! This looks like it will solve your problem! ...let me know :) stackoverflow.com/questions/47607602/how-to-add-a-tailwind-css-rule-to-css-checker
How To Build Your First Website For A Client - Workflow and Tools
5:39
Dylan Albertazzi
Рет қаралды 92 М.
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 43 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 191 МЛН
React & Tailwind CSS Image Gallery
38:56
Traversy Media
Рет қаралды 216 М.
Tailwind CSS React Tutorial
13:09
Adrian Twarog
Рет қаралды 212 М.
SQL vs NoSQL - Choose for web development
7:11
Dylan Albertazzi
Рет қаралды 11 М.
Your First Web App in AWS - 30 min Tutorial - Amplify, React, Serverless
28:05
Why I Quit Machine Learning
8:55
Dylan Albertazzi
Рет қаралды 3,3 М.
How To Build an App (2021) - Idea Validation and Planning - Ep. 1
15:04
Dylan Albertazzi
Рет қаралды 2,9 М.
Tailwind, utility-first css-фреймворк
1:25:39
От 0 до 1
Рет қаралды 11 М.
TailwindCSS. Полный курс
1:55:05
webDev
Рет қаралды 63 М.
AWS IAM Overview - It’s Surprisingly Simple - Users vs Roles
7:33
Dylan Albertazzi
Рет қаралды 6 М.
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 27 МЛН
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,1 МЛН
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 609 М.
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Tynalieff Shorts
Рет қаралды 1,9 МЛН