light-dark function
Channel: Chrome for Developers
Date: 2024-03-26

The light-dark() function in CSS lets developers more easily adapt a color-scheme to a user's preference for light or dark mode.
Use the light-dark() function to specify two different color values within a single CSS property. The browser (or device) will automatically choose the appropriate color based on the element's computed color-scheme value. 

Watch more New in Chrome → https://goo.gle/NewInChrome

Speaker: Adriana Jara