Tailwind CSS | Dark & Light Theme Switcher

Ғылым және технология

📕 Vue 3 Crash Course: johnkomarnicki.gumroad.com/l/...
🤖 SaaS I'm Building (WebDevDaily): www.webdevdaily.io/
📹 Writeable computed properties: • Writeable computed pro...
📹 defineModel: • This New Vue 3.3 defin...
🚀 Join the channel : / @johnkomarnicki
🤖 Website: johnkomarnicki.com/
🐦 Twitter: / john_komarnicki
In this video we explore Tailwind CSS Dark Mode and how to implement a theme switcher.
Tailwind CSS Playlist:
• Tailwind CSS
Timestamps:
0:00 Introduction
0:38 Dark Mode Basics
2:23 Dark Mode Class Strategy
3:43 Dark/Light Theme Switcher
#tailwind #tailwindcss #tailwinddarkmode
Current Subscribers: 6,922

Пікірлер: 52

  • @JohnKomarnicki
    @JohnKomarnicki2 жыл бұрын

    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!

  • @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
    @priyanshuganatra5 ай бұрын

    Clear and straight to the point, thanks ❤

  • @warprod
    @warprod Жыл бұрын

    Thanks for this one, very well explained

  • @abdulmlaikalomayri727
    @abdulmlaikalomayri727Ай бұрын

    Amazing video John, the way you simplest things is admirable.

  • @JohnKomarnicki

    @JohnKomarnicki

    Ай бұрын

    I appreciate that!

  • @juanrincon6576
    @juanrincon65762 ай бұрын

    Thanks a lot! Loved it!!

  • @gabriel_lk
    @gabriel_lk Жыл бұрын

    Thanks a lot!!!! Worked perfectly

  • @creativehabib
    @creativehabib Жыл бұрын

    Thanks a lot! Good Tutorial

  • @nitinsoni9956
    @nitinsoni99562 жыл бұрын

    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!

  • @universecode1101
    @universecode11012 жыл бұрын

    Good job, I thought Dark mode in these days for one of my projects

  • @JohnKomarnicki

    @JohnKomarnicki

    2 жыл бұрын

    Thank you!

  • @xtheory9640
    @xtheory9640 Жыл бұрын

    clean and simple 💝💝

  • @animemaster_2024
    @animemaster_2024Ай бұрын

    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

  • @MohamedShetifa
    @MohamedShetifa Жыл бұрын

    much thanks bro

  • @frankilunga2288
    @frankilunga22883 ай бұрын

    very clear instructions 🫂

  • @artemb.2677
    @artemb.2677 Жыл бұрын

    thanks a lot! short and simple!

  • @JohnKomarnicki

    @JohnKomarnicki

    Жыл бұрын

    Glad it was helpful!

  • @JaehoonMe
    @JaehoonMe11 ай бұрын

    Good job

  • @forno_nicolas
    @forno_nicolas Жыл бұрын

    Thanks!

  • @jeyjeymohaa3081
    @jeyjeymohaa30812 жыл бұрын

    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?

  • @adityamore896
    @adityamore896 Жыл бұрын

    Can anyone help how to deploy this html,node js and tailwind project!!!

  • @suryon3822
    @suryon38226 ай бұрын

    thanks

  • @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?

  • @nadim9164
    @nadim91642 жыл бұрын

    thank you

  • @JohnKomarnicki

    @JohnKomarnicki

    2 жыл бұрын

    🙌

  • @rasyidshiddiq5008
    @rasyidshiddiq50089 ай бұрын

    How to remove flash when reloading page?

  • @codewithsoyeb

    @codewithsoyeb

    6 ай бұрын

    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.

  • @chadgregory9037
    @chadgregory90372 жыл бұрын

    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.

  • @NiM44
    @NiM44 Жыл бұрын

    If you have issue with toggling may use .display-none { display: none !important; } instead of @apply

  • @forhadbinamir7299
    @forhadbinamir7299 Жыл бұрын

    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

    Жыл бұрын

    Hi dud I got the solution Thanks

  • @JohnKomarnicki

    @JohnKomarnicki

    Жыл бұрын

    Awesome, yeah to me it sounds like something wasn’t right with the function grabbing the local storage preference, possibly

  • @salmaahmed7789
    @salmaahmed7789 Жыл бұрын

    where is the source code

  • @matthewkk5087
    @matthewkk5087 Жыл бұрын

    can u explain on react please?

  • @JohnKomarnicki

    @JohnKomarnicki

    Жыл бұрын

    Sorry, unfortunately I don’t use react!

  • @jogofin4939
    @jogofin4939 Жыл бұрын

    Good tutorial but sheeze just use display:none instead of applying the CSS from tailwind lol

  • @fuukowatty9817
    @fuukowatty9817 Жыл бұрын

    You have polish surname John

  • @badasscoder4481
    @badasscoder44812 жыл бұрын

    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!

Келесі