Effortless Light and Dark Mode × Theme Styling

Поділитися
Вставка
  • Опубліковано 15 вер 2024

КОМЕНТАРІ • 10

  • @petecapecod
    @petecapecod 16 днів тому

    We are all living the CSS dream now! 🎆 Pretty much no @prefers-color media queries, I'll take it.
    I'm excited to start using light-dark() in production now. Big time win! 🥳

  • @rossrobino
    @rossrobino 28 днів тому +1

    Great episode, you can put a media attribute on your favicon link tag and set prefers color scheme on it to swap it

  • @abdellahcodes
    @abdellahcodes 27 днів тому

    Just in time for Sentry Docs dark mode

  • @feldinho
    @feldinho 28 днів тому

    Btw, the meta tags also accept the new `light-dark` css function. Where `light-dark(red, yellow)` result in the theme color being red in light mode and yellow in dark mode.
    I hope the issue with icons having poor contrast depending on the browser theme color could be addressed with something like the upcoming `color-contrast` function, where it evaluates the best color to show based on a reference color instead of the light/dark modes. That could potentially be used inside an SVG favicon to compare the available colors against the `Canvas` color, but that's just speculation on my part.

  • @TomAlderman1978
    @TomAlderman1978 28 днів тому

    I learned a lot.. Thanks!

  • @alwayzsmarter
    @alwayzsmarter 24 дні тому

    10:00 for some reason this doesn't change my safari or chrome bar color but when I overflow scroll or whatever my page I can see those colors correctly shown for light vs dark like in background of page but still not the bar

  • @chrsbll
    @chrsbll 28 днів тому

    Always blue! Always blue!

  • @HampusR
    @HampusR 21 день тому +2

    I'm a bit sad. This was the first time I really felt that it's no longer a podcast, but a youtube channel that also provides audio. A lot of "now this, now that" that is impossible to follow along to unless you have the video. I understand that you need to evolve, but as someone who listens riding a bike, the video will always be impossible to look at.

    • @syntaxfm
      @syntaxfm  21 день тому +1

      We've gotten that feedback from a few people and will def adjust. Still getting used to what works for video without ruining the audio cast.

  • @nixoncode
    @nixoncode 28 днів тому

    syntax error