Let's Build a Light/Dark Mode Toggle with Tailwind and Next.js

Поделиться
HTML-код
  • Опубликовано: 28 окт 2023
  • Let's Build a Light/Dark Mode Toggle with Tailwind and Next.js
    Personal Website: bit.ly/3Qxh5BT
    GitHub: bit.ly/3LNXEls
    Twitter: bit.ly/3GoxZ0m
    LinkedIn: bit.ly/3GqSdXk
    Dev Community: bit.ly/3Q0enES

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

  • @russbashaw2279
    @russbashaw2279 5 месяцев назад

    Thanks for this excellent tutorial. I'd found many similar tutorials for Next.js but they were all for single-page applications that didn't require state. This one checks all the boxes.

  • @martynbillings4924
    @martynbillings4924 6 месяцев назад

    Thanks dude, this was simple clear to understand and works a treat!

  • @maskman4821
    @maskman4821 3 месяца назад +5

    Sir, this is client side approach, users will see a blank screen or a flicker when page gets refreshed which is not a good experience, how do we implement theme switcher with cookie in nextjs app router app? Can you create a tutorial on this topic? 🙏

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

    Thanks so much this was concise and straight to the point

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

    Beautifully explained and that too in under 13 minutes

  • @gabrielballester8390
    @gabrielballester8390 6 дней назад

    Thank you for the tutorial. I have seen similar tutorials that use a different approach, for example, with a dark/light theme using shadcn or with Tailwind theming. I wonder what your opinion is about these methods of applying dark/light mode, especially in terms of client and server side. Cheers Antonio!

  • @amdadullahraihan7694
    @amdadullahraihan7694 Месяц назад +2

    What about reloading? on reload it will splash the light mode.

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

    bless brotha

  • @nguyentheson9315
    @nguyentheson9315 7 месяцев назад +3

    Your video is great! I think you should show the problem when the screen flicking after you reload the page and the solution for it, it would be much better

    • @maskman4821
      @maskman4821 4 месяца назад +1

      yeah, this is an issue we need to work it out ❤

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

      @@maskman4821 You should try next-themes, it worked for me

  • @nishanth4177
    @nishanth4177 5 месяцев назад

    Thanks

  • @kamalnathdhekwar5497
    @kamalnathdhekwar5497 12 дней назад

    can you provide code as well