Тёмный
No video :(

My Favorite Tailwind Tools 

Coding in Public
Подписаться 47 тыс.
Просмотров 23 тыс.
50% 1

Tailwind CSS is beloved by many, but a few tools make it a much better experience!
🔗 Key Links 🔗
- Github: github.com/cod...
- Sorting: tailwindcss.co...
- TWMerge: www.npmjs.com/...
---------------------------------------
🔗 Additional Links 🔗
- www.npmjs.com/...
- ui.shadcn.com/
---------------------------------------
🎨 VSCode Theming
- Font: Cascadia Code: github.com/mic...
- Theme: marketplace.vi...
- Icons: marketplace.vi...
---------------------------------------
🌐 Connect With Me 🌐
- Website: codinginpublic...
- Blog: chrispenningto...
- Twitter: / cpenned
- Patreon: / coding_in_public
- Buy Me a Coffee: www.buymeacoff...

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 78   
@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 11 месяцев назад
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!
@Omar45
@Omar45 Год назад
Amazing as usual ❤ A shadcn in-depth video would be great!
@CodinginPublic
@CodinginPublic Год назад
🙌 I’ll cue it up!
@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 7 месяцев назад
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.
@jmula1963
@jmula1963 7 месяцев назад
Seems that tool hasnt been updated in 3 years tho. theres also eslint-plugin-tailwindcss
@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.
@mohammadmahdialvansaz8001
@mohammadmahdialvansaz8001 Год назад
Great A Shadcn video would be nice
@CodinginPublic
@CodinginPublic Год назад
I’ll cue something up!
@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!
@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!
@ionutsandu5913
@ionutsandu5913 8 дней назад
The conditional thing don't work. It generates the classes but styles are not being applied.
@skylerjknight
@skylerjknight 11 месяцев назад
Ah it would be so cool if we could override Astros class:list directive to include twMerge... Thanks for the video!
@CodinginPublic
@CodinginPublic 11 месяцев назад
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 11 месяцев назад
@@CodinginPublicYes, fairly certain it works in class:list, but I wouldn't want to ruin that clean syntax 😆
@ihateorangecat
@ihateorangecat Год назад
for conditional styling I just use built-in style prop.
@CodinginPublic
@CodinginPublic Год назад
That’s definitely an option. It will always override your other CSS, but it’s often the simplest and I sometimes do that, too.
@K.Huynh.
@K.Huynh. 9 месяцев назад
thank for sharing
@CodinginPublic
@CodinginPublic 9 месяцев назад
Glad it was a help!
@DanteMishima
@DanteMishima Год назад
I found your repo before your video 😂😂
@CodinginPublic
@CodinginPublic Год назад
lol 👀
@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.
@TheDeprecatedLibrarian
@TheDeprecatedLibrarian Год назад
New sub. This content is really great!
@CodinginPublic
@CodinginPublic Год назад
Welcome! So glad you enjoyed the video!
@lpndev
@lpndev 11 месяцев назад
Nice video, but could you teach us how to install the tailwind plugin for auto sort classes using Astro? Would be wonderful.
@CodinginPublic
@CodinginPublic 11 месяцев назад
It should work the same way I mentioned in this video? At least it's working for me?
@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!
@wertin200
@wertin200 Год назад
4:33 A I see a fellow man of culture, using rainbow indent.
@CodinginPublic
@CodinginPublic Год назад
lol 👊
@anhdunghisinh
@anhdunghisinh 7 месяцев назад
Hey, how do you make className wrapline like that?
@CodinginPublic
@CodinginPublic 7 месяцев назад
I think it's line-wrap feature enabled in VSCode?
@shayantriedcoding
@shayantriedcoding Год назад
How can I use that clx and twMerge functionality in Laravel PHP and blade
@CodinginPublic
@CodinginPublic Год назад
Hmm, that I’m not sure. Anyone else?
@mabillama
@mabillama Год назад
Another great video!!
@CodinginPublic
@CodinginPublic Год назад
Glad you enjoyed it!
@kashboyflexn2440
@kashboyflexn2440 Год назад
I wish you let the video be saved to playlist please
@CodinginPublic
@CodinginPublic Год назад
hmm; I think I am? Can you check again?
@sjoerdvermeijden
@sjoerdvermeijden 2 месяца назад
Let's timestamp this :D
@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
@serychristianrenaud
@serychristianrenaud Год назад
Thank
@CodinginPublic
@CodinginPublic Год назад
…you
@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
@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 11 месяцев назад
lol seriously; I have a video planned, but just KNOW it's going to come out Shad CDN like half the time ha
@TheCrowdel
@TheCrowdel Год назад
Hi chris make more video
@muhammadmusab6334
@muhammadmusab6334 Год назад
shadcdn 😂
@CodinginPublic
@CodinginPublic Год назад
lol oops. I mean, could be a thing? 😆
@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!
Далее
better form defaults
0:30
Просмотров 4,4 тыс.
CSS Anchor Is The Best New CSS Feature Since Flexbox
15:39
Кого из блогеров узнали?
00:10
Просмотров 547 тыс.
Is Tailwind Taking Over CSS? (and some other insights)
18:25
Tailwind V4 Is Bigger Than Expected 👀
20:07
Просмотров 121 тыс.
Astro View Transitions Overview
22:28
Просмотров 3,9 тыс.
cn() - Every Tailwind Coder Needs It (clsx + twMerge)
7:46
5 MORE TailwindCSS Tips I Wish I Learned Earlier
5:32
Top 10 Tips and Tricks with Tailwind CSS
23:45
Просмотров 88 тыс.
Tailwind CSS Plugins I Wish I knew Sooner
14:38
Просмотров 6 тыс.
Tailwind CSS V4 is SO Good!
8:51
Просмотров 34 тыс.