The Best Way to Handle Dark Mode with TailwindCSS

  Рет қаралды 34,864

Tom Is Loading

Tom Is Loading

Күн бұрын

Пікірлер: 44
@Alipakdamanyt
@Alipakdamanyt 11 ай бұрын
got a headache watching videos on this topic for hours understanding nothing, very clear and straight to the point🔥
@BooksWeCanRead
@BooksWeCanRead Жыл бұрын
Very very cool!! I love how you explain things! No faff just straight to exactly what’s needed! 👏👏✨
@digitalsahara6670
@digitalsahara6670 Жыл бұрын
wow that is explained so well and straight to the point, hoping you have a full on course coming out soon ...
@tomisloading
@tomisloading Жыл бұрын
I will absolutely do a full length tailwind vid soon :)
@piotrdarnowski5190
@piotrdarnowski5190 Ай бұрын
Awesome videos and components pack, thanks for all the great content!
@rog0079
@rog0079 Жыл бұрын
so useful stuff in such a short video
@tomisloading
@tomisloading Жыл бұрын
Thank you!! :D
@xiaodhruv7693
@xiaodhruv7693 Жыл бұрын
Wow never thought this would be this easy TT, thankyou very much
@redders6600
@redders6600 Жыл бұрын
This is the easy bit...! The challenge is getting colour palettes that work well together and using the right colours in the right places... It gets _really_ confusing!
@tomisloading
@tomisloading Жыл бұрын
Funny enough, I’m building a free tool to help with this literally right now 😂😂 there’s a few good ones (Real Time Colors by Juxtopposed is awesome) but I’m building something a bit simpler and more developer focused 😁
@monisankarnath
@monisankarnath 5 ай бұрын
​@@tomisloadinggreat man share with us
@francescoanastasio2021
@francescoanastasio2021 4 ай бұрын
For those with access to Tailwind UI components, you can simply use the colors from the prebuilt components for both light and dark modes, and then proceed with the tutorial. This is particularly helpful for those who correctly point out that selecting the right colors can be the most challenging part. Here's another useful tip: if you have a specific color in light mode, such as `bg-gray-800`, there's a good chance that `bg-gray-200` works well in dark mode. Essentially, the formula is: dark_color = light_color - 800, and vice versa. Unless you have a much more custom palette, of course.
@Thechanterramarie
@Thechanterramarie Ай бұрын
@@francescoanastasio2021thank you for this! 🙌
@sofyanox12
@sofyanox12 5 ай бұрын
the only problem with this is that we can't see the small previewed colour in the class name
@ohskynyrdlynyrd
@ohskynyrdlynyrd 5 ай бұрын
This is the best video on topic. I'm using next js so I'll try to do the same but to use cookies instead of local storage
@mohamedyamani8502
@mohamedyamani8502 Жыл бұрын
Pretty cool man! Great video.
@tomisloading
@tomisloading Жыл бұрын
Thank you!! 😁
@quentinjames981
@quentinjames981 23 күн бұрын
Thanks for this great video, super helpful! One question - around 2:15, is there a reason why you defined background as rgba(var(--background))? It seems a bit redundant to me, unless I'm missing something.
@ricardocnn
@ricardocnn Жыл бұрын
Awesome approach!
@feelsthevibes1662
@feelsthevibes1662 Жыл бұрын
if u use this primary: 'rgba(var(--color-primary), )', than opacity will work
@isaacgarcia2745
@isaacgarcia2745 Ай бұрын
What is the website he is at the beginning when switching themes
@bassam.2023
@bassam.2023 4 ай бұрын
Very useful. Thanks! 🎉
@DMZT_dhruv
@DMZT_dhruv Жыл бұрын
I watched this video long ago, I though I saw this in instagram 😅, but I finally founded here hehe
@joshuaheathcote2116
@joshuaheathcote2116 10 ай бұрын
Thank you Tom
@NitinKumar-jc7bg
@NitinKumar-jc7bg Жыл бұрын
How to get the rgba numbers for dark theme and light theme like you have is there any website ? By the way awesome video ❤👌
@tomisloading
@tomisloading Жыл бұрын
So for this video, I just grabbed some colors from the tailwind site :) There's a bunch of different color generators out there, and I'm actually building my own right now haha. If you check back in a week or so on my site you should see that :)
@excellend_boy
@excellend_boy Ай бұрын
thank you 🤩
@sravanstg234
@sravanstg234 Ай бұрын
Can you please tell which vs code theme you are using?
@tomisloading
@tomisloading Ай бұрын
Andromeda!
@sravanstg234
@sravanstg234 Ай бұрын
@tomisloading thanks
@madie2659
@madie2659 Жыл бұрын
Loved it thanks
@tomisloading
@tomisloading Жыл бұрын
Happy i can help! :)
@amirreza3638
@amirreza3638 10 ай бұрын
What about colors with intensity? Like blue-400 ?
@yaronp16
@yaronp16 11 ай бұрын
thanks you helped a lot!
@tomisloading
@tomisloading 11 ай бұрын
Happy I could help :)
@whyyshivam
@whyyshivam 7 ай бұрын
So Good, that I wanna recreate this 🤧
@FelipeOcampo-v4i
@FelipeOcampo-v4i 7 ай бұрын
You're a fucking legend.
@tomisloading
@tomisloading 7 ай бұрын
😎
@raybelmo
@raybelmo 9 ай бұрын
Cool!
@Ancode2
@Ancode2 8 ай бұрын
How simple and useful. Thank you very much for this
@randomchannelqwert
@randomchannelqwert 4 ай бұрын
thanks
@LulsegedAdmasu
@LulsegedAdmasu 8 ай бұрын
wow
@СергейКр-щ4с
@СергейКр-щ4с 5 ай бұрын
I pressed like 11 times
@the_protaku
@the_protaku 20 күн бұрын
Your are a life savior 🥹🤩🥰
I WISH I Knew These Tailwind Tips Earlier
9:15
Theo - t3․gg
Рет қаралды 200 М.
Translating a Custom Design System to Tailwind CSS
10:10
Tailwind Labs
Рет қаралды 126 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
8 TailwindCSS Classes I Wish I Found Earlier
4:48
Tom Is Loading
Рет қаралды 78 М.
Dark mode with TailwindCSS in under 7 minutes
6:58
Built With Code
Рет қаралды 44 М.
I built a library of code snippets for developers
5:09
Technophile
Рет қаралды 17 М.
Next.js Dark Mode with No Flicker + Tailwind CSS
9:43
Dave Gray
Рет қаралды 42 М.
5 MORE TailwindCSS Tips I Wish I Learned Earlier
5:32
Tom Is Loading
Рет қаралды 14 М.
Build a dark mode light mode in reactjs with context api
29:20
Hitesh Choudhary
Рет қаралды 34 М.
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,8 МЛН
The Biggest Framer Motion Mistakes that Beginners Make
7:51
Tom Is Loading
Рет қаралды 3,7 М.
Advanced TailwindCSS Techniques You Have To Know?! [8 concepts]
20:31
You’re doing dark mode wrong!
7:54
Coding in Public
Рет қаралды 55 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН