The Best Way to Handle Dark Mode with TailwindCSS

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 35

  • @Alipakdamanyt
    @Alipakdamanyt 9 หลายเดือนก่อน +12

    got a headache watching videos on this topic for hours understanding nothing, very clear and straight to the point🔥

  • @BooksWeCanRead
    @BooksWeCanRead 11 หลายเดือนก่อน +8

    Very very cool!! I love how you explain things! No faff just straight to exactly what’s needed! 👏👏✨

  • @digitalsahara6670
    @digitalsahara6670 11 หลายเดือนก่อน +3

    wow that is explained so well and straight to the point, hoping you have a full on course coming out soon ...

    • @tomisloading
      @tomisloading  11 หลายเดือนก่อน +1

      I will absolutely do a full length tailwind vid soon :)

  • @rog0079
    @rog0079 11 หลายเดือนก่อน +2

    so useful stuff in such a short video

    • @tomisloading
      @tomisloading  11 หลายเดือนก่อน

      Thank you!! :D

  • @xiaodhruv7693
    @xiaodhruv7693 11 หลายเดือนก่อน +1

    Wow never thought this would be this easy TT, thankyou very much

  • @ohskynyrdlynyrd
    @ohskynyrdlynyrd 3 หลายเดือนก่อน +1

    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 11 หลายเดือนก่อน +1

    Pretty cool man! Great video.

    • @tomisloading
      @tomisloading  11 หลายเดือนก่อน

      Thank you!! 😁

  • @ricardocnn
    @ricardocnn 10 หลายเดือนก่อน +1

    Awesome approach!

  • @DMZT_dhruv
    @DMZT_dhruv 9 หลายเดือนก่อน +1

    I watched this video long ago, I though I saw this in instagram 😅, but I finally founded here hehe

  • @bassam.2023
    @bassam.2023 2 หลายเดือนก่อน +1

    Very useful. Thanks! 🎉

  • @redders6600
    @redders6600 11 หลายเดือนก่อน +5

    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  11 หลายเดือนก่อน +3

      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 3 หลายเดือนก่อน

      ​@@tomisloadinggreat man share with us

    • @francescoanastasio2021
      @francescoanastasio2021 2 หลายเดือนก่อน

      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.

  • @joshuaheathcote2116
    @joshuaheathcote2116 8 หลายเดือนก่อน +1

    Thank you Tom

  • @feelsthevibes1662
    @feelsthevibes1662 10 หลายเดือนก่อน +2

    if u use this
    primary: 'rgba(var(--color-primary), )',
    than opacity will work

  • @whyyshivam
    @whyyshivam 5 หลายเดือนก่อน +1

    So Good, that I wanna recreate this 🤧

  • @yaronp16
    @yaronp16 9 หลายเดือนก่อน +1

    thanks you helped a lot!

    • @tomisloading
      @tomisloading  9 หลายเดือนก่อน

      Happy I could help :)

  • @sofyanox12
    @sofyanox12 3 หลายเดือนก่อน +1

    the only problem with this is that we can't see the small previewed colour in the class name

  • @madie2659
    @madie2659 11 หลายเดือนก่อน +1

    Loved it thanks

    • @tomisloading
      @tomisloading  11 หลายเดือนก่อน +1

      Happy i can help! :)

  • @Ancode2
    @Ancode2 6 หลายเดือนก่อน +1

    How simple and useful. Thank you very much for this

  • @NitinKumar-jc7bg
    @NitinKumar-jc7bg 10 หลายเดือนก่อน +1

    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  10 หลายเดือนก่อน +1

      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 :)

  • @FelipeOcampo-v4i
    @FelipeOcampo-v4i 5 หลายเดือนก่อน +1

    You're a fucking legend.

  • @amirreza3638
    @amirreza3638 8 หลายเดือนก่อน

    What about colors with intensity? Like blue-400 ?

  • @raybelmo
    @raybelmo 7 หลายเดือนก่อน +1

    Cool!

  • @ZeeshanRiyasMuhammed
    @ZeeshanRiyasMuhammed หลายเดือนก่อน

    thanks

  • @СергейКр-щ4с
    @СергейКр-щ4с 3 หลายเดือนก่อน +1

    I pressed like 11 times

  • @LulsegedAdmasu
    @LulsegedAdmasu 6 หลายเดือนก่อน +1

    wow