Log in Sign up
1 Matching Annotations
  1. Oct 2023
  2. www.bram.us www.bram.us
    The Future of CSS: Easy Light-Dark Mode Color Switching with light-dark()
    1
    1. kael 10 Oct 2023
      in Public

      ```css :root { color-scheme: light dark; }

      body { background: light-dark(#333, #ccc); } ```

      css:light-dark() css dark mode colors css:prefers-color-scheme css:color-scheme css:schemed-value
    Visit annotations in context

    Tags

    • css:color-scheme
    • css:schemed-value
    • dark mode
    • css:prefers-color-scheme
    • colors
    • css
    • css:light-dark()

    Annotators

    • kael

    URL

    bram.us/2023/10/09/the-future-of-css-easy-light-dark-mode-color-switching-with-light-dark/
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy