Tailwind CSS | Dark & Light Theme Switcher

  Рет қаралды 67,353

John Komarnicki

John Komarnicki

Күн бұрын

Пікірлер: 52
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Hopefully you enjoy this video. If you'd like to see more videos with Tailwind on the channel, be sure to leave a like on the video!
@SomeAB
@SomeAB 8 күн бұрын
Thanks, this worked for me, along with adding " darkMode: 'selector', " in my config file
@abdulmlaikalomayri727
@abdulmlaikalomayri727 4 ай бұрын
Amazing video John, the way you simplest things is admirable.
@JohnKomarnicki
@JohnKomarnicki 4 ай бұрын
I appreciate that!
@damianan982
@damianan982 Жыл бұрын
Thank you so much! I was struggling to implement a dark mode switch on my website, but with your approach, I have managed to do it.
@priyanshuganatra
@priyanshuganatra 8 ай бұрын
Clear and straight to the point, thanks ❤
@warprod
@warprod Жыл бұрын
Thanks for this one, very well explained
@animemaster_2024
@animemaster_2024 5 ай бұрын
Buen video bro, pero hay un problem, es que cuando se activa el modo oscuro, y al actualizer la página, me arroja un pantallazo blanco 2:29, como lo soluciono
@juanrincon6576
@juanrincon6576 6 ай бұрын
Thanks a lot! Loved it!!
@universecode1101
@universecode1101 2 жыл бұрын
Good job, I thought Dark mode in these days for one of my projects
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Thank you!
@nitinsoni9956
@nitinsoni9956 2 жыл бұрын
As always a very well structured and easy to follow tutorial from you. Can we have a video on full blown Portfolio website with mobile responsive using all features of Tailwind 3.0
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
I appreciate that! I take that idea into consideration!
@gabriel_lk
@gabriel_lk 2 жыл бұрын
Thanks a lot!!!! Worked perfectly
@rasyidshiddiq5008
@rasyidshiddiq5008 Жыл бұрын
How to remove flash when reloading page?
@codewithsoyeb
@codewithsoyeb 9 ай бұрын
One way to eliminate the white flash is to add to the html. This will mean that the browsers default flash will be dark mode not light mode.
@creativehabib
@creativehabib Жыл бұрын
Thanks a lot! Good Tutorial
@chadgregory9037
@chadgregory9037 2 жыл бұрын
My page is showing dark mode by default, and when I click the button I created it changes, but the dark mode isn't changing from being enabled to disabled
@chadgregory9037
@chadgregory9037 2 жыл бұрын
OMG I got it hahahaha I literally wrote "darkmode" instead of "darkMode" omg it's so satisfying to not actually go nuts, and solve a problem, and get it working, omg lol
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Glad you were able to figure it out!
@chadgregory9037
@chadgregory9037 2 жыл бұрын
@@JohnKomarnicki came a LONG ways since this morning... tailwind is fun =]
@talhaabdurraheem8491
@talhaabdurraheem8491 Жыл бұрын
@@chadgregory9037 Brooo tysm!!! I haven't had breakfast and its noon here, was struggling with this issue. Thx to you now I can eat.
@gerryleonugroho
@gerryleonugroho Жыл бұрын
Hi John, I'm following along with your JS code on my local machine. As it appear on my end I got some different results? Once I hit the URL, it'd present me with the light mode by default, then I switch to dark-mode, it worked. But once I'm navigating to other page, it reverted back to light-mode without me having to click on the dark mode again, any clues why this happened?
@JohnKomarnicki
@JohnKomarnicki Жыл бұрын
How are you utilizing this? In just a basic html, css & js app? Or a JS framework?
@gerryleonugroho
@gerryleonugroho Жыл бұрын
Hi @@JohnKomarnicki currently only on plaon HTML, CSS & JS. But planning to integrate them with Astro SSG. What do you think?
@jeyjeymohaa3081
@jeyjeymohaa3081 2 жыл бұрын
I have had problem installing tailwind css v3 into a vue 3 project (vue/CLI) and after i was done with all the steps in the official tailwind css documentation, and ran the server. I got an error *tailwindcss requires postcss 8* my postcss is is 8.0.4. What could be the prob?
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
What version of Vue are you using within your package.json?
@MohamedShetifa
@MohamedShetifa Жыл бұрын
much thanks bro
@frankilunga2288
@frankilunga2288 6 ай бұрын
very clear instructions 🫂
@xtheory9640
@xtheory9640 Жыл бұрын
clean and simple 💝💝
@artemb.2677
@artemb.2677 2 жыл бұрын
thanks a lot! short and simple!
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Glad it was helpful!
@JaehoonMe
@JaehoonMe Жыл бұрын
Good job
@adityamore896
@adityamore896 Жыл бұрын
Can anyone help how to deploy this html,node js and tailwind project!!!
@salmaahmed7789
@salmaahmed7789 Жыл бұрын
where is the source code
@suryon3822
@suryon3822 10 ай бұрын
thanks
@NiM44
@NiM44 Жыл бұрын
If you have issue with toggling may use .display-none { display: none !important; } instead of @apply
@jogofin4939
@jogofin4939 2 жыл бұрын
Good tutorial but sheeze just use display:none instead of applying the CSS from tailwind lol
@nadim9164
@nadim9164 2 жыл бұрын
thank you
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
🙌
@matthewkk5087
@matthewkk5087 2 жыл бұрын
can u explain on react please?
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Sorry, unfortunately I don’t use react!
@forhadbinamir7299
@forhadbinamir7299 2 жыл бұрын
Hay dud! after dark mode once I come back to the light mode then after reloading the page going to the dark mode why this happen can you tell me please or solve this issue Please😍 Thanks for the meaningful video
@forhadbinamir7299
@forhadbinamir7299 2 жыл бұрын
Hi dud I got the solution Thanks
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
Awesome, yeah to me it sounds like something wasn’t right with the function grabbing the local storage preference, possibly
@fuukowatty9817
@fuukowatty9817 Жыл бұрын
You have polish surname John
@badasscoder4481
@badasscoder4481 2 жыл бұрын
you removed the last video. Vue planner app. Please reupload.
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
I did not remove it, the purpose of the stream we did was to give an insight as to how I create the projects. I’ll be releasing this project soon as a video on my channel
@badasscoder4481
@badasscoder4481 2 жыл бұрын
@@JohnKomarnicki Thank you Sir
@cjmaaz
@cjmaaz 2 жыл бұрын
@@JohnKomarnicki Great! waiting for the Video and next live stream.
@JohnKomarnicki
@JohnKomarnicki 2 жыл бұрын
@@cjmaaz Saturday morning at 9am EST! We should be able to wrap it up during that stream!
Theming Tailwind with CSS Variables
27:24
Tailwind Labs
Рет қаралды 127 М.
How To Build An Advanced Light/Dark Theme Toggle
25:46
Web Dev Simplified
Рет қаралды 89 М.
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 6 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 24 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 124 МЛН
Dark & Light Mode With Vue, VueUse & Tailwind CSS
4:44
John Komarnicki
Рет қаралды 12 М.
Light / Dark Mode Toggle In React Tutorial
16:02
PedroTech
Рет қаралды 100 М.
You’re doing dark mode wrong!
7:54
Coding in Public
Рет қаралды 53 М.
Tailwind is going Mobile
13:02
Simon Grimm
Рет қаралды 26 М.
Dark mode with TailwindCSS in under 7 minutes
6:58
Built With Code
Рет қаралды 40 М.
Build a dark mode light mode in reactjs with context api
29:20
Hitesh Choudhary
Рет қаралды 31 М.
Next.js Dark Mode with No Flicker + Tailwind CSS
9:43
Dave Gray
Рет қаралды 38 М.
Tailwind CSS Dark Mode - In Tamil
28:47
JAFS Code School Tamil
Рет қаралды 1,3 М.
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 6 МЛН