My Favorite Tailwind Tools

  Рет қаралды 24,545

Coding in Public

Coding in Public

Күн бұрын

Пікірлер: 80
@codewithantonio
@codewithantonio Жыл бұрын
Very useful! I often try to follow a convention when it comes to order of my tailwind classes but had no idea there is a general practice to follow and that prettier can help with that!
@CodinginPublic
@CodinginPublic Жыл бұрын
So glad you enjoyed it! Love your content, btw!
@simonswiss
@simonswiss Жыл бұрын
Amazing video. I knew exactly what the tools would be, but still watched it and really enjoyed the way you presented the problem space and how those tools solve those problems. Good work!
@CodinginPublic
@CodinginPublic Жыл бұрын
Cheers, Simon. That's so kind! Glad you enjoyed it!
@ammaraateeb1914
@ammaraateeb1914 Жыл бұрын
Love your work. Please do the shadcn clsx in depth. Also it would absolutely be a live changer if you could show how to set up animations and transitions with tw, custom configs/utility classes and apply can be tricky and very unclear
@CodinginPublic
@CodinginPublic Жыл бұрын
I'll plan something on shadcn/ui or clsx here in the future!
@neontuts5637
@neontuts5637 Жыл бұрын
Thanks for sharing these excellent tailwind tools Chris. Yes, please make a in-depth video on Shadcn. If possible show how to use these tools with Shadcn.
@CodinginPublic
@CodinginPublic Жыл бұрын
Great! I’ll get something scheduled!
@KarimShalapy
@KarimShalapy Жыл бұрын
Very interested in how to make the cn function and the library you mentioned, definitely give it a shot.
@CodinginPublic
@CodinginPublic Жыл бұрын
Thanks for the feedback!
@keshavakumar9828
@keshavakumar9828 Жыл бұрын
It's was a greate refresher, reminding me why I use these utlties 😂. Great vid
@CodinginPublic
@CodinginPublic Жыл бұрын
lol you’re one step ahead!
@OcielGonzalez_mx
@OcielGonzalez_mx Жыл бұрын
New sub. This content is really great!
@CodinginPublic
@CodinginPublic Жыл бұрын
Welcome! So glad you enjoyed the video!
@IsmailMamaniat
@IsmailMamaniat Жыл бұрын
Thanks very clearly explained. I would like a video on using twmerge and clsx together, and possibly what a good reusable component such as a button would look like :)
@CodinginPublic
@CodinginPublic Жыл бұрын
Sounds good! I’ll get something together! That’s essentially what shadCN does, so it’s a good thing to look at for a quick explanation in the meantime.
@Omar45
@Omar45 Жыл бұрын
Amazing as usual ❤ A shadcn in-depth video would be great!
@CodinginPublic
@CodinginPublic Жыл бұрын
🙌 I’ll cue it up!
@skylerjknight
@skylerjknight Жыл бұрын
Ah it would be so cool if we could override Astros class:list directive to include twMerge... Thanks for the video!
@CodinginPublic
@CodinginPublic Жыл бұрын
You can use it directly in there! At least I’ve done it and I’m pretty sure it works. That’s going off memory, but pretty sure I have.
@skylerjknight
@skylerjknight Жыл бұрын
@@CodinginPublicYes, fairly certain it works in class:list, but I wouldn't want to ruin that clean syntax 😆
@martinezfg111
@martinezfg111 2 ай бұрын
00:10:05 The conditional class `bg-${pending? "gray" : "blue"}-600` didn't actually work in the video? The next step when you add && the browser responds with the gray background. I noticed that after it didn't work for me in my project.
@mohammadmahdialvansaz8001
@mohammadmahdialvansaz8001 Жыл бұрын
Great A Shadcn video would be nice
@CodinginPublic
@CodinginPublic Жыл бұрын
I’ll cue something up!
@mabillama
@mabillama Жыл бұрын
Another great video!!
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad you enjoyed it!
@lpndev
@lpndev Жыл бұрын
Nice video, but could you teach us how to install the tailwind plugin for auto sort classes using Astro? Would be wonderful.
@CodinginPublic
@CodinginPublic Жыл бұрын
It should work the same way I mentioned in this video? At least it's working for me?
@wertin200
@wertin200 Жыл бұрын
4:33 A I see a fellow man of culture, using rainbow indent.
@CodinginPublic
@CodinginPublic Жыл бұрын
lol 👊
@K.Huynh.
@K.Huynh. Жыл бұрын
thank for sharing
@CodinginPublic
@CodinginPublic Жыл бұрын
Glad it was a help!
@ionutsandu5913
@ionutsandu5913 3 ай бұрын
The conditional thing don't work. It generates the classes but styles are not being applied.
@81NARY
@81NARY Жыл бұрын
Cool vid, I learned about these from using shadcn/ui. Do you have a resource where you find background images like checks.png or did you create it yourself? Looks dope.
@CodinginPublic
@CodinginPublic Жыл бұрын
Just made it myself :)
@81NARY
@81NARY Жыл бұрын
@@CodinginPublic Awesome! Looks clean as a background. You should do a short or a quick vid on creating these patterns.
@DanteMishima
@DanteMishima Жыл бұрын
I found your repo before your video 😂😂
@CodinginPublic
@CodinginPublic Жыл бұрын
lol 👀
@anhdunghisinh
@anhdunghisinh 10 ай бұрын
Hey, how do you make className wrapline like that?
@CodinginPublic
@CodinginPublic 10 ай бұрын
I think it's line-wrap feature enabled in VSCode?
@0xZurvan
@0xZurvan Жыл бұрын
Vue solve the merging conflict without the use of any external tool for you and also the conditional classes, I only see this problem when I use React, but is good to know about shadcn
@CodinginPublic
@CodinginPublic Жыл бұрын
Oh, that’s really interesting! Didn’t know that about Vue! I wonder what they’re using behind the scenes!
@kashboyflexn2440
@kashboyflexn2440 Жыл бұрын
I wish you let the video be saved to playlist please
@CodinginPublic
@CodinginPublic Жыл бұрын
hmm; I think I am? Can you check again?
@serychristianrenaud
@serychristianrenaud Жыл бұрын
Thank
@CodinginPublic
@CodinginPublic Жыл бұрын
…you
@coding-master-shayan
@coding-master-shayan Жыл бұрын
How can I use that clx and twMerge functionality in Laravel PHP and blade
@CodinginPublic
@CodinginPublic Жыл бұрын
Hmm, that I’m not sure. Anyone else?
@phucnguyen0110
@phucnguyen0110 Жыл бұрын
Wait, is that a Dodge Viper polo shirt there my man? :D
@CodinginPublic
@CodinginPublic Жыл бұрын
lol I coach a soccer team and just happened to have my coach shirt on
@Kermin00
@Kermin00 Жыл бұрын
I've tried to implement this auto-sorting-classes in Astro, but it doesn't seem to be supported yet.
@CodinginPublic
@CodinginPublic Жыл бұрын
Hmm. I haven’t had trouble with Astro. Astros extension actually uses a prettier plugin behind the scenes I think. Did you use the .prettierrc file?
@Omar45
@Omar45 Жыл бұрын
I was having the same problem, after some trial and error I figured out that the order of plugins matter. In the .prettierrc file when I write { "plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"] } it works, but when I swap their order it doesn't work. Also if I only write "prettier-plugin-tailwindcss" as in the video it doesn't work so I have to explicitly write the two plugins (and install them as dev-dependencies ofc)
@Kermin00
@Kermin00 Жыл бұрын
@@Omar45 That's because "prettier-plugin-tailwindcss" has to be loaded at the end, i've read about that a few hours ago. Also, i think that i didn't try writing both plugins at once, so i'll try it later. BTW, I was on node 16.13, but some errors appeared, so i updated it to 16.14, errors disappeared, but still doesn't work.
@Kermin00
@Kermin00 Жыл бұрын
@@CodinginPublic I would be grateful if you could specify your node version, and if you've configured astro the same way as on the video.
@tijohnnguyen7058
@tijohnnguyen7058 Жыл бұрын
AFAIK there is a compatible problem of Astro's prettier plugin with Prettier 3. Try to downgrade Prettier v3 to v2.8 if you use v3
@FireGames25
@FireGames25 Жыл бұрын
Headwind sorts the classes and works with prettier out of the box :)
@CodinginPublic
@CodinginPublic Жыл бұрын
Cool! Haven’t heard of it! I’ll check it out. Thanks!
@treyjapan
@treyjapan Жыл бұрын
@@user-pg6lg2bt3y Hey, he's actually not kidding! Headwind (the name is hilarious) is an opinionated class sorter for Tailwind CSS created by Ryan Heybourn and available in VS Code
@garytraffanstedt
@garytraffanstedt 11 ай бұрын
Thank you for sharing this. I could not for the life of me get it to work with the prettier plugin but Headwind worked as soon as I installed it.
@blankcheckguy69
@blankcheckguy69 10 ай бұрын
Seems that tool hasnt been updated in 3 years tho. theres also eslint-plugin-tailwindcss
@sjoerdvermeijden
@sjoerdvermeijden 5 ай бұрын
Let's timestamp this :D
@TheCrowdel
@TheCrowdel Жыл бұрын
Hi chris make more video
@simonswiss
@simonswiss Жыл бұрын
Poor shad will forever be doomed with folks saying "Shad CDN" 😅I have also said this for weeks, until I realised the "d" from Shad was not in the middle of CN, even if all our brains collectively want to believe so 🤣
@CodinginPublic
@CodinginPublic Жыл бұрын
lol seriously; I have a video planned, but just KNOW it's going to come out Shad CDN like half the time ha
@muhammadmusab6334
@muhammadmusab6334 Жыл бұрын
shadcdn 😂
@CodinginPublic
@CodinginPublic Жыл бұрын
lol oops. I mean, could be a thing? 😆
@swiffty1
@swiffty1 Ай бұрын
Thing with Tailwind prettier is that it doesn't just sort your classes, it also messes with your formatting with its opinionated way of formatting.
@mrFighter924
@mrFighter924 Жыл бұрын
I don't understand the popularity of tailwind, it's so robust and clunky when looking at the code
@CodinginPublic
@CodinginPublic Жыл бұрын
My personal preference is to write my own CSS, sometimes with SCSS mixed in. But for projects I touch infrequently or write with others, I’ve found it useful for being able to quickly add new components or styling without having to study the code base to ensure my CSS will work with the rest of the project. There are other reasons it’s helpful, but that’s when I mostly reach for it. It’s a lot to look at, but those benefits have pushed me through the visuals of looking at it :)
@mrFighter924
@mrFighter924 Жыл бұрын
@@CodinginPublic Thank you for the response
@StephenRayner
@StephenRayner Жыл бұрын
Quite basic. 12 minute video for all tailwind prettier plug-in and use tailwind merge.
@CodinginPublic
@CodinginPublic Жыл бұрын
Hope you still found it helpful!
Astro 5.0 Crash Course
28:09
Coding in Public
Рет қаралды 1,6 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 10 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 41 МЛН
Top 10 Tips and Tricks with Tailwind CSS
23:45
developedbyed
Рет қаралды 91 М.
You’re doing dark mode wrong!
7:54
Coding in Public
Рет қаралды 54 М.
🔥 Bento Grid Layouts with Tailwind CSS | Easy 🤯
11:13
Sashank GL
Рет қаралды 12 М.
cn() - Every Tailwind Coder Needs It (clsx + twMerge)
7:46
ByteGrad
Рет қаралды 134 М.
Favorite New Tailwind Extension
9:56
Coding in Public
Рет қаралды 16 М.
How the PROS Use Tailwind
9:55
Frontend FYI – by Jeroen
Рет қаралды 56 М.
Tailwind-Merge Is Incredibly Useful - And Here's Why!
12:58
simonswiss
Рет қаралды 37 М.
Build any layout with tailwind | crash course
34:28
Hitesh Choudhary
Рет қаралды 98 М.
Is Tailwind Taking Over CSS? (and some other insights)
18:25
Kevin Powell
Рет қаралды 59 М.
The Advanced TailwindCSS Crash Course
37:39
Tom Is Loading
Рет қаралды 18 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 10 МЛН