Tailwind CSS Dark Mode | React App Theme Switcher

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • In this short video, I'll show you how to use Tailwind CSS Dark Mode to improve the look and feel of your React app. We'll also discuss how to use Tailwind's Theme Switcher to change the theme of your app with just a few clicks!
    Tailwind is a powerful CSS framework that includes Dark Mode support. This video will show you how to use Tailwind's Dark Mode to improve the look and feel of your React app. We'll also discuss how to use Tailwind's Theme Switcher to change the theme of your app with just a few clicks!
    -----------------------------------------------------------------------------------------------------
    This video will also explain to you how you can set it up to check for the browser's default preferred scheme and apply the color according to the settings.
    💻 GitHub for this project - github.com/Azm...
    -----------------------------------------------------------------------------------------------------
    Music Credits :
    Song: Fredji - Happy Life (Vlog No Copyright Music)
    Music provided by Vlog No Copyright Music.
    Video Link: • Fredji - Happy Life (V...

Комментарии • 50

  • @tanvirramim3647
    @tanvirramim3647 11 месяцев назад +2

    but there is problem , when i switched dark mode from light and later on if do refresh it will go back to light mode again , how can resolve this problem

    • @ShamilKP-r2n
      @ShamilKP-r2n 6 месяцев назад +2

      Did you find solution I think storing theme dark or light on localstorage fix this 😊

  • @pupil_1
    @pupil_1 Год назад +1

    but there is problem , when i switched dark mode from light and later on if do refresh it will go back to light mode again , how can resolve this problem

  • @usamamohiuddin7904
    @usamamohiuddin7904 Год назад +1

    This doesnt work for me and the code is not doing anything

  • @nikolavaniscakova4367
    @nikolavaniscakova4367 Месяц назад

    if even if I went step by step it doesn't work

  • @NorgeSantana
    @NorgeSantana Год назад +2

    Awesome guide, after searching around this is the best one I found. Simple and efective!

  • @bestchoice7431
    @bestchoice7431 4 месяца назад

    When refresh the page the darkmode will be gone. Not a great video for the production.

    • @flojd2232
      @flojd2232 3 месяца назад

      just store it in local storage

  • @roddrickanummartey8749
    @roddrickanummartey8749 15 дней назад

    Thanks. You are great☺

  • @GhanayemOmar
    @GhanayemOmar Год назад +2

    Good,
    But its too hard to apply the dark theme on each element in the app,
    Its should be more reusable way to do that ..

    • @RealOverClocked
      @RealOverClocked  Год назад

      This button will actually trigger all the dark elements with className: “dark:” you have to within the site.
      I think the other approach would be to add it app/index.css file and use @apply if you want it all over the site.

  • @ShubhamChadokar-k7b
    @ShubhamChadokar-k7b 3 месяца назад

    background music is irritating

  • @libertarianted2077
    @libertarianted2077 Год назад +1

    how can I add a transition to the theme switch

  • @angshumanpathak2300
    @angshumanpathak2300 Год назад

    Can you guys tell me one thing I have an image in my head.js folder and I have a particular Darkmode component that has a theme state and thus what i want is that in my head.js folder I want to change my logo to a white one whenever my theme state changes to dark

  • @RichReflectionz
    @RichReflectionz Год назад +1

    This has been easy to follow and made integration easier, unless I didn’t read the docs correctly to get it to work, the example you provided with hooks definitely helped.

  • @GDSKS
    @GDSKS Год назад +1

    Good Video

  • @rayhanalkavey1820
    @rayhanalkavey1820 Год назад +1

    Valuable content like this will help us both to grow.

  • @vibhourrr
    @vibhourrr 11 месяцев назад

    Most simplified video you'll find on RUclips on 'Dark mode in Tailwind, react'

  • @Rapunzel-mo9ur
    @Rapunzel-mo9ur 7 месяцев назад

    Its's a very easy and effective way to toggle dark/light theme with an exceptional explanation. 🎉😊

  • @smartstar4131
    @smartstar4131 2 месяца назад

    That was super easy and straightforward. Thank you!

  • @nadeemsymun2196
    @nadeemsymun2196 Год назад

    it's best one i hope. And also need use toggle icon in this dark mode. please help me

  • @felistusmbesa4053
    @felistusmbesa4053 11 месяцев назад

    Thanks buddy😊, your tutorial came through when i needed it

  • @anangyoga1381
    @anangyoga1381 Год назад

    hi man, thank you it short, simple, and most importantly, works!

  • @muonyeluchinedu5454
    @muonyeluchinedu5454 Месяц назад

    Thanks for the guide.

  • @Vivi-Price
    @Vivi-Price Год назад

    This was exactly what I needed! Thank you for this video! 😊

  • @ader1473
    @ader1473 Год назад

    Thank you sooo much.. so short and simple

  • @christianmiguellicudanilov220
    @christianmiguellicudanilov220 Год назад

    thank you thank you thank you for this

  • @whatever.username
    @whatever.username 8 месяцев назад

    it works! thanks a bunch!!!

  • @hooho491
    @hooho491 9 месяцев назад

    Thank you so much

  • @anikaibnathaque5700
    @anikaibnathaque5700 2 года назад

    damn this was helpful. thanks!

  • @mohamedyoussef8835
    @mohamedyoussef8835 Год назад

    Awesome tutorial +++++++++++++++++ 🙂

  • @afrinsadia152
    @afrinsadia152 Год назад

    Clear Explaination , Thank You :)

  • @camilobautista6468
    @camilobautista6468 Год назад

    Thank you very much!

  • @alisonoz7219
    @alisonoz7219 Год назад

    great video! thank you!

  • @vutran1160
    @vutran1160 Год назад

    nice explaination , easy to understand , thanks

  • @itsmoh4med
    @itsmoh4med Год назад

    thanks mate

  • @RadoslavRobert
    @RadoslavRobert Год назад

    Most concise and good tutorial about dark mode.

  • @ilyaivanteev172
    @ilyaivanteev172 10 месяцев назад

    Beautiful

  • @mohdsiddiqulhaque4486
    @mohdsiddiqulhaque4486 Год назад

    Will it toggle the class in all the components ??

  • @juicio_den
    @juicio_den Год назад

    Awesome

  • @techno_talis
    @techno_talis Год назад

    How to i get this type of terminal that you use?

    • @RealOverClocked
      @RealOverClocked  Год назад +1

      I'm using an app called Hyper JS from - hyper.is/ and there are many tutorials on how you could set it up with the color and fonts the way you want.

  • @bayezidmostafa3364
    @bayezidmostafa3364 Год назад

    Thanks a lot for helping me out!

  • @S20N01
    @S20N01 Год назад

    what ide is that?