No video

This Prettier Plugin Makes Tailwind So Much Better

  Рет қаралды 209,745

Web Dev Simplified

Web Dev Simplified

Күн бұрын

🌎 Find Me Here:
My Blog: blog.webdevsim...
My Courses: courses.webdev...
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/Web...
CodePen: codepen.io/Web...
#Shorts

Пікірлер: 172
@realdiegor
@realdiegor Жыл бұрын
WOW, it wasnt a big problem, it was my MAIN problem. hehe. Thanks for sharing Kyle
@shakapaker
@shakapaker Жыл бұрын
WARNING! Do not use "prettier-plugin-tailwindcss" and "eslint-plugin-tailwindcss" simultaneously; it caused unreal lags in VSCode and I wasted a week resolving it. I recommend using the plugin for ESLint if you are using ESLint in your project.
@vasylperehinets8562
@vasylperehinets8562 Жыл бұрын
yeah, I had the same problem
@mooza.shorts
@mooza.shorts Жыл бұрын
Someone should open an issue
@StabilDEV
@StabilDEV 8 ай бұрын
Why do you prefer the eslint plugin?
@MobinurRahaman
@MobinurRahaman 7 ай бұрын
@monotype1110 Does this issue exist now?
@a-factoracademy
@a-factoracademy 4 ай бұрын
I should have read earlier!😢
@aram5642
@aram5642 11 ай бұрын
In frontend we're so good at solving problems we've created for ourselves by choosing to use YAF (Yet Another Framework) that then turns out to need YAP (Yet Another Plugin) for YAF in order to tame the annoyances.
@StabilDEV
@StabilDEV 9 ай бұрын
While this critique might generally be valid it does certainly not apply to tailwind
@gerooq
@gerooq 3 ай бұрын
I agree for the most part but I like to believe that there is a general uptrend in DX even if the line is more stair-step than straight. I think the JS ecosystem was unfortunate in that the demand for more and more complex web applications superseded the progress in developer tooling.
@VitoSolin0
@VitoSolin0 2 ай бұрын
🤣🤣
@tito_me_doe676
@tito_me_doe676 21 күн бұрын
I’m a developer for over 20 years, and frameworks like tailwind where you design with classes goes against every best practice rule that was ever taught to me. It forces the user to put the design into the markup, rather than separating concerns. In addition, you end up with dozens of KB or so of CSS that will never be used. Just my $0.02
@Xtreme-yb9yo
@Xtreme-yb9yo 7 күн бұрын
you do know that unused css can get purged before production right
@marceloviannadev
@marceloviannadev Жыл бұрын
Use "Headwind" instead. Does the same with less complications. The only problem I've found so far is when u use [ ] custom values. In this case, classes do not sorted out and u have to do manually. Other than that, it's amazing! 🤘
@hooooman.
@hooooman. Ай бұрын
"custom-values []" also working fine now, tried and confirmed it and loving it. anyway thanks for the suggestion, as the plugin mentioned in this video not worked for me lol
@eddybowie2211
@eddybowie2211 Жыл бұрын
THIS IS A LIFESAVER! Sometimes I have 2+ lines of just tailwind styles and it's a pain in the arse having to go trough it all looking for a simple p-3 💀, specially when applying different styles for different screen sizes
@theisoj
@theisoj Жыл бұрын
That's crazy! Thanks Kyle as always 👍
@kimbapslayer1995
@kimbapslayer1995 Жыл бұрын
Every time you hit the save button, it all flip flops, then you realize you made a mistake although you haven’t moved your cursor yet, and end up editing the wrong class cos it switched positions. So you gotta undo a few times. My biggest problem with it.
@andreandersson1137
@andreandersson1137 Жыл бұрын
Run it in a pre-commit hook instead, and thats solved. Then its also going to work in all editors, Notepad and Word included 😅
@rickybeats1919
@rickybeats1919 7 ай бұрын
Yep this is my issue too, i removed the plugin
@BlenderfulShowcases
@BlenderfulShowcases 6 ай бұрын
Sounds like a skill issue xd
@sunilnune5681
@sunilnune5681 Жыл бұрын
Waiting for Next Js to get full support of MUI & Chakra UI
@askeladden450
@askeladden450 Жыл бұрын
What do you mean by full support? Dont they work perfectly as is?
@lamhung4899
@lamhung4899 Жыл бұрын
@@askeladden450 MUI only work on client mode , no server component afaik.
@javhaasuhochir8126
@javhaasuhochir8126 9 ай бұрын
that library is not working in my vscode. But I downloaded extenstion called "headwind" and it worked.
@codingman8056
@codingman8056 5 ай бұрын
Thanks for the package, Kyle
@njokuchisomjoseph
@njokuchisomjoseph Ай бұрын
Since it would it is a dev dependecy and would probably only be used locally on your pc, i think installing it globally would be great instead of installing it as a dev-dependecy on every project
@epotnwarlock
@epotnwarlock Жыл бұрын
would be nice to have a visualization that shows conflicts in the class or property inheritance or situations where one property is overridden by another
@ghazankhan8447
@ghazankhan8447 Жыл бұрын
The liner for tailwind works underlines overlapping classes. Its in vscode
@hrvojemarjanovic9188
@hrvojemarjanovic9188 Жыл бұрын
Yes by default it is zig-zag orangish underline
@leon_the_professional
@leon_the_professional 6 күн бұрын
Modern solutions require modern problems
@lovedayevans5406
@lovedayevans5406 Жыл бұрын
I really appreciate this... This will really help me to improve
@userou-ig1ze
@userou-ig1ze Жыл бұрын
2min, literally saved me from a world of headaches
@rahulxcr
@rahulxcr Жыл бұрын
Thanks. That's a really useful plugin.
@xDmtm
@xDmtm Ай бұрын
Yeeeesss! I was just thinking about whether there is an extension that reorders classes.
@FireGames25
@FireGames25 Жыл бұрын
I just use an extension that does that (headwind)
@AhmadMughal1
@AhmadMughal1 Жыл бұрын
thanks for the recommendation much better than messing up prettier as it causes alot of different conflicts
@rahul_bali
@rahul_bali Жыл бұрын
thanks
@dragononfire7124
@dragononfire7124 Жыл бұрын
Thanks bro, it is really helpful 😍
@FONO63
@FONO63 Жыл бұрын
Lifesaver, this comment. Prettier Tailwindcss plugin has all sort of problems.
@redsharingan6190
@redsharingan6190 10 ай бұрын
give this man a nobel price
@bharadwajvaranasi6447
@bharadwajvaranasi6447 Жыл бұрын
Super. Soo helpful. Thank you so much
@wesleyyandotantra6662
@wesleyyandotantra6662 Жыл бұрын
Thank you for this
@breezycodes
@breezycodes Жыл бұрын
Good plugin but it makes saving a file a pain in big projects. I had to stop using it in big projects as it would cause vscode to freeze for like 5 mins while trying to save a file.
@ZUNAEED_IMRAN
@ZUNAEED_IMRAN 3 ай бұрын
thanks man.
@eliasvonbrille
@eliasvonbrille Жыл бұрын
Is it just me or does this guy look like handsome real life gigachad
@zain_x_alpha
@zain_x_alpha Жыл бұрын
Thanks for it❤...please also make tips and tricks videos like this
@tauraigombera
@tauraigombera 11 ай бұрын
Thank you
@encapsule2220
@encapsule2220 Жыл бұрын
Omg this is a life saver as a tailwind fiend
@stosyst
@stosyst 11 ай бұрын
Taiwin always feels like an inline css on steroids, I always prefered separate css with html - much cleaner and maintainable
@rd_45
@rd_45 Жыл бұрын
Thanks man
@incarnateTheGreat
@incarnateTheGreat 8 ай бұрын
There are a few like this. I use one for eslint and it works very well.
@ssygon2
@ssygon2 Жыл бұрын
TW=Classes hell. Just have reusable SCSS/LESS mixins functions, which can just use 1 or a few classes.
@mooza.shorts
@mooza.shorts Жыл бұрын
Do you think that on a comparison between two versions of a big, heavily css decorated page, the first with tailwindcss, the other with a wisely optimized SCSS (mixins and stuff) one, would be there a significant reduce of workload on the browser behalf? My opinion (but I'm open to hear different ones) is that given real, enough complex web pages, tailwind results in less stuff to download. I may be wrong, didn't benchmarked yet.
@glibaudio
@glibaudio Жыл бұрын
Super helpful ty
@chiragchhajed8353
@chiragchhajed8353 Жыл бұрын
There's an vscode extension to right, HeadWind CSS
@PhamHuy-mc8wk
@PhamHuy-mc8wk 11 ай бұрын
thank you for this
@Sean-mv5kd
@Sean-mv5kd Жыл бұрын
Theo from McDonalds
@nickwoodward819
@nickwoodward819 11 ай бұрын
bigger prob for me is that astro seems to hate multi-line classes, even in template strings. I'd like to be able to have them structured by attribute, so `row-start-4 md:row-start-6 lg:row-start-2` and then cols on a new line.
@user-xz8bp5eb4d
@user-xz8bp5eb4d 8 ай бұрын
Omg thank you
@wandenreich770
@wandenreich770 Жыл бұрын
as always great content
@fcktom
@fcktom Жыл бұрын
I would have killed for this back in the bootstrap jquery days
@GeneraluStelaru
@GeneraluStelaru 3 ай бұрын
I can't understand how this is better than bootstrap. Not that I like the latter either.
@OpeyemiFatogun
@OpeyemiFatogun Ай бұрын
Has more range than Bootstrap
@hrvojemarjanovic9188
@hrvojemarjanovic9188 Жыл бұрын
Omg thanks bro
@ZackOfAllTrad3s
@ZackOfAllTrad3s 8 ай бұрын
I too, like many people, got caught in this time sink. Just too many issues with getting it to work.
@saiphaneeshk.h.5482
@saiphaneeshk.h.5482 9 ай бұрын
I've been using this method for normal css.
@Srabon444
@Srabon444 3 ай бұрын
How can I use it in the NextJS project in Webstorm IDE? Does anyone know how? I tried installing and saving the file, but unfortunately, it doesn't do anything.
@bonekazz-8441
@bonekazz-8441 4 ай бұрын
I do that without noticing it hahah just be organized
@kevinka99
@kevinka99 10 ай бұрын
Well, you forgot to mention that to it work as you said you need to have Prettier extension installed in your editor and set it as default and if it's VSCode you must need to turn on the formatOnSave options on settings.json.
@Vikings-uk3ht
@Vikings-uk3ht 8 ай бұрын
thank you for this
@user-bc7bl1bw6y
@user-bc7bl1bw6y Жыл бұрын
Yeah easy for me but sometimes use bootstrap so this library also work in bootstrap
@anshulanand02
@anshulanand02 Жыл бұрын
That's really nice 👍
@heracraft5526
@heracraft5526 Жыл бұрын
Theo said the same thing ☺️
@markusklyver6277
@markusklyver6277 3 ай бұрын
neovim tho
@linxzzsr
@linxzzsr Жыл бұрын
Insane
@blackpurple9163
@blackpurple9163 Жыл бұрын
Isn't there a vs code extension for this already???
@Jacob-ch8qj
@Jacob-ch8qj Жыл бұрын
I use headwind for this yeah
@ZiPMo85
@ZiPMo85 Жыл бұрын
​@@Jacob-ch8qj yeah same. Unnecessary dev dependency
@imkir4n
@imkir4n Жыл бұрын
@@ZiPMo85 yeah makes sense
@airixxxx
@airixxxx Жыл бұрын
@@ZiPMo85 You need to tell all the people on the project and every time someone new comes to use vs code and to install the extension. That's the need of the dependency.
@syed.simanta820
@syed.simanta820 9 ай бұрын
Life saver 🎉
@tomfarrell4651
@tomfarrell4651 8 ай бұрын
I’m not a fan of adding 56 classes to a div.
@alexweej
@alexweej 9 ай бұрын
As someone who learned CSS when it was new in the 90s... What the **** is this Tailwind noise?
@aryansoni57
@aryansoni57 29 күн бұрын
Tailwind is a more efficient way to write css
@mikec9444
@mikec9444 Жыл бұрын
preach!
@VidozMusic
@VidozMusic Жыл бұрын
Just use Chakra UI. ❤️
@TakeOnMe5
@TakeOnMe5 Жыл бұрын
No, use MUI 🙂
@tusharkashyap3241
@tusharkashyap3241 Жыл бұрын
i don't know why but this does not work for me for some reasons I'm nextjs's app directory with eslint and this plugin does not work for me. any suggestions?
@sck3570
@sck3570 11 ай бұрын
for me too, it doesnt format at all, prettier formats the html or js text but not the tailwind part
@theanarchist4449
@theanarchist4449 11 ай бұрын
That's why I prefer writing pure css in classes and add class to html. How convenient? And readable too.
@PsychoDude
@PsychoDude 10 ай бұрын
how convenient naming everything hahaha
@rajeshbudhathoki7888
@rajeshbudhathoki7888 10 ай бұрын
It is no longer working with prettier extension. Anyone having the same problem?
@abdalrhmanalmarakeby5813
@abdalrhmanalmarakeby5813 Жыл бұрын
Why it is not working in my project , HELP please!!!
@redmizu
@redmizu 3 ай бұрын
isn't that the same as the headwind extension?
@RS4P
@RS4P 7 ай бұрын
Isn’t it better to do “py-3 px-2”, rather than “p-3 px-2”?
@over1498
@over1498 Жыл бұрын
This is a game changer, how does it work with clsx though, I feel like it could screw something up
@skyzane2735
@skyzane2735 Жыл бұрын
can I install it globally instead? Or configure my prettier vscode extension with it?
@hooooman.
@hooooman. Ай бұрын
didnt worked for me, added the " .prettierrc" file in the root directory as per the official documentation of tailwind.css, restarted the vs code, still the code formating didnt worked. meanwhile form this comment section, saw about "Headwind" vscode extension, tried it, it worked absolutely perfect,even for custom tailwind class
@dvirhanum9530
@dvirhanum9530 Жыл бұрын
How can I break each class on a new line?
@AlThePal78
@AlThePal78 2 ай бұрын
So you prefer tw over bootstrap
@swapnilraj4989
@swapnilraj4989 Жыл бұрын
Is there a similar extension on vs code for CSS. Like when format document it arranges the css styles in either alphabetical way or logical way
@hamaomer1825
@hamaomer1825 5 ай бұрын
why i cant find that plug in :(
@okosunfamily1081
@okosunfamily1081 Жыл бұрын
Tailwind I'm still learning you but I have a filling you would be the best
@AnuMessi10
@AnuMessi10 Жыл бұрын
Filing 💀
@keyboardmandaniel
@keyboardmandaniel 6 ай бұрын
What is the name of this plugin?
@linxzzsr
@linxzzsr Жыл бұрын
Bootstrap vs Tailwind recommend anyone ? How can I use Bootstrap without CDN also in my react app without react bootstrap which is really complicated??
@Surya-np1bb
@Surya-np1bb Жыл бұрын
Tailwind Anyday
@KILLCHRISU
@KILLCHRISU Жыл бұрын
forget bootstrap just learn tailwind
@ricardocnn
@ricardocnn Жыл бұрын
Awesome 👍
@juanxc7
@juanxc7 9 ай бұрын
what if auto save
@contraspower6302
@contraspower6302 Ай бұрын
Sick🔥
@zuong
@zuong 8 ай бұрын
Is there a similar way for pure CSS?
@iwankiddies9274
@iwankiddies9274 11 ай бұрын
How you add background image with tailwind in react
@user-oj2wc7mk1c
@user-oj2wc7mk1c 11 ай бұрын
will it work with cva library also?
@re.liable
@re.liable Жыл бұрын
Does this work with React components as well? Can it only format classes directly assigned to className? What if the classes are stored in a separate string?
@maendassin195
@maendassin195 Жыл бұрын
I'm using tailwind in my current react project and it works great. It sorts classes assigned to the "className" property for react components just fine. I'm not sure what you mean in the last question. Classes stored as a string in a different variable? If so,. I'm not sure as I haven't tried doing that. But if you're doing it to reuse classes for common components then there's a better and more semantic way to do that in the tailwind config file.
@falcon4359
@falcon4359 Жыл бұрын
I don't think it will work if you're assigning a variable or a const. But storing classes in a separate string and this plugin achieves the same thing minimising visual clutter so not sure why you would need both
@sD-fc9mp
@sD-fc9mp 2 ай бұрын
🙏🏾 🙏🏾 🙏🏾
@GeorgeNey
@GeorgeNey 2 ай бұрын
Copy paste installation: npm i -D prettier-plugin-tailwindcss
@ademolaadepoju4121
@ademolaadepoju4121 Жыл бұрын
Does this install globally?
@UwU-dx5hu
@UwU-dx5hu Жыл бұрын
Haha i knew it already
@izzulhaqmahardika8892
@izzulhaqmahardika8892 Жыл бұрын
Can i use it while on tailwind cdn?
@blenderpanzi
@blenderpanzi 10 ай бұрын
I still don't understand tailwind. If you have one class for each style property+value, why not just use the style="..." attribute? It is what you're effectively doing.
@shantanusharma4901
@shantanusharma4901 Жыл бұрын
You are God
@AbZen7
@AbZen7 Жыл бұрын
U bought a second guitar but still never played us something
@T1Oracle
@T1Oracle 9 ай бұрын
SCSS mixins > tailwind
@seclvded
@seclvded Жыл бұрын
just use tailwind styled components to get rid of that long ass class names
@onecarwood
@onecarwood Жыл бұрын
What happened to Bootstrap? It changed its name to Tailwind.
@GamerSharp
@GamerSharp Жыл бұрын
Bootstrap sucks tbh
@airixxxx
@airixxxx Жыл бұрын
Bootstrap died a long time ago, the day CSS grid came. And Tailwind has nothing in common with Bootstrap.
@alekseychikin
@alekseychikin Жыл бұрын
And it is still a mess
@MobiusCoin
@MobiusCoin Жыл бұрын
I think Tailwind is unusable without Prettier.
@samirhajdarevic7757
@samirhajdarevic7757 15 күн бұрын
Don't use too many plugins
@cau8777
@cau8777 Жыл бұрын
Do not use this plugin if you use daisy-ui or any other tailwind extensions alike
@mooza.shorts
@mooza.shorts Жыл бұрын
Why
@paschalokafor9043
@paschalokafor9043 3 ай бұрын
WOW
@megasx6335
@megasx6335 Жыл бұрын
Just use headless xD
@entertainmentweekly1307
@entertainmentweekly1307 9 ай бұрын
@ichiroutakashima4503
@ichiroutakashima4503 Жыл бұрын
It's hilarious. Makes a post like this then suddenly makes a post that says, don't use tailwind, use CSS.
@hetsahk
@hetsahk Жыл бұрын
Tailwind is shit man, idk why ppl are so hyped about
@wildanm2
@wildanm2 Жыл бұрын
why tailwind is shit?
@hetsahk
@hetsahk Жыл бұрын
@@wildanm2 because it doesn't solve any problems, the real problem is that no one wants to learn CSS properly. We have web components and CSS custom properties, you don't need Tailwind at all, it's just the Bootstrap of the Z generation.
@hnni5149
@hnni5149 Жыл бұрын
You are nice :)
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 179 М.
10 Tailwind Tricks You NEED To Know!
10:45
Ravi - Perfect Base
Рет қаралды 287 М.
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4,3 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 48 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 86 МЛН
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,5 МЛН
Use these instead of vh
6:06
Kevin Powell
Рет қаралды 503 М.
Tailwind V4 Is Bigger Than Expected 👀
20:07
Theo - t3․gg
Рет қаралды 121 М.
🔥 Bento Grid Layouts with Tailwind CSS | Easy 🤯
11:13
Sashank GL
Рет қаралды 9 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 654 М.
Do You Really Need Bootstrap or Tailwind?
8:28
Lama Dev
Рет қаралды 191 М.
Should You Use Tailwind CSS?
7:47
Web Dev Simplified
Рет қаралды 354 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 470 М.
CSS Anchor Is The Best New CSS Feature Since Flexbox
15:39
Web Dev Simplified
Рет қаралды 367 М.
Watching Tailwind Tutorials Is A Waste Of Time
7:56
Web Dev Simplified
Рет қаралды 228 М.
I WISH I Knew These Tailwind Tips Earlier
9:15
Theo - t3․gg
Рет қаралды 183 М.
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4,3 МЛН