TailwindCSS Is Ugly. Here's How To Deal With It.

  Рет қаралды 7,854

Tom Is Loading

Tom Is Loading

Күн бұрын

Пікірлер: 23
@gamingwolf3385
@gamingwolf3385 5 ай бұрын
5:40 you can also use tailwind-merge with clsx for conditional styles , Its a good combo
@bioburden
@bioburden 4 ай бұрын
Thanks for quickly explaining cva, I was struggling to know the best way of implementing a design system with Tailwind.
@nested9301
@nested9301 5 ай бұрын
I always turn everything into separate components it's the core of react
@smoothoperatah
@smoothoperatah 5 ай бұрын
always? everything? that sounds tedious
@treyrader
@treyrader 5 ай бұрын
Only do that if you find yourself needing to reuse the div. I use tw merge and clsx and thn wrap things in the cn() function divided by commas. (eg 'cn("flex", "items-center", "justify-center", {"hidden": !isActive});'. I also use the layer directive and add all my combo classnames, such as "flex-center": "flex items-center justify-center"; It goes a longg way. Used to store the classnames in a separate module but it proved to be difficult to make modifications nor did i get the intellisense. I fucking love tailwind so much
@kartikm7
@kartikm7 5 ай бұрын
Great content man, always getting learn something new from here!
@blu_ey
@blu_ey 5 ай бұрын
I use tailwind-variants instead of cva, it has slots and automatically uses twMerge
@tomisloading
@tomisloading 5 ай бұрын
I’ll check that out!
@joshuadeguzman2911
@joshuadeguzman2911 5 ай бұрын
I think it would be better to create an array of links if links have similar styles except for active status. It'll make it easier to add new links and style them similarly and could simply highlight the active link.
@slliks4
@slliks4 5 ай бұрын
Or repeat in a more fancy way Create an array of dic with the link name as a key Map through it in your jxs and just style one of the tag
@Dreamslol
@Dreamslol 5 ай бұрын
The buttons look so cute!
@slliks4
@slliks4 5 ай бұрын
Overriding is still a flex complex thing for me 😅 I just write CSS code if it Gets too complex
@victorshirokiy9883
@victorshirokiy9883 5 ай бұрын
Instead of variants logic, you can define custom classes with {@apply: bg-white text-black ...}
@0xAndy
@0xAndy 5 ай бұрын
Love this channel.
@tomisloading
@tomisloading 5 ай бұрын
Thank you! 😁
@obasaajibola3933
@obasaajibola3933 5 ай бұрын
please create an awwwards like preloader animation on your next video with framer-motion and react or nextjs
@felipefregginrules
@felipefregginrules 5 ай бұрын
Love this!
@Howdyhowthis
@Howdyhowthis 5 ай бұрын
Cant we just do css module and use @component.
@daleryanaldover6545
@daleryanaldover6545 5 ай бұрын
Finally found Tom, the maker of JDSL 😂
@ofeklevy1242
@ofeklevy1242 5 ай бұрын
GREAT
@mattmaloney5988
@mattmaloney5988 5 ай бұрын
Insane that anyone has the time per mental space to deal with this nonsense.
@aliventurous
@aliventurous 4 ай бұрын
How would you deal with it?
@ДенисМаценко-м2р
@ДенисМаценко-м2р 4 ай бұрын
The Advanced TailwindCSS Crash Course
37:39
Tom Is Loading
Рет қаралды 17 М.
The Biggest Framer Motion Mistakes that Beginners Make
7:51
Tom Is Loading
Рет қаралды 3,2 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 97 МЛН
Refactoring UI Book Review - by a Frontend Developer
8:01
Anthony Sistilli
Рет қаралды 3,9 М.
8 TailwindCSS Classes I Wish I Found Earlier
4:48
Tom Is Loading
Рет қаралды 77 М.
Build Complex Exit Animations with React & Framer Motion
16:28
Tom Is Loading
Рет қаралды 9 М.
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 436 М.
We can now transition to and from display: none
21:20
Kevin Powell
Рет қаралды 109 М.
Staggered Text Animations with React and Framer Motion
11:59
Tom Is Loading
Рет қаралды 25 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 716 М.
The Most Overlooked Framer Motion Hook is DOPE
9:55
Tom Is Loading
Рет қаралды 4,8 М.
Is Tailwind Taking Over CSS? (and some other insights)
18:25
Kevin Powell
Рет қаралды 59 М.
How I'm Writing CSS in 2024
12:59
leerob
Рет қаралды 58 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН