color-scheme Property
Use the color-scheme property to inform the browser which themes an element supports.
What is color-scheme?
The color-scheme property tells the browser which color schemes an element (or the page) supports. The browser then uses this information to style its own UI elements — scrollbars, form controls, checkboxes, input borders — to match the requested scheme.
color-scheme Values
Accepted values:
normal: element uses the document defaultlight: element supports light scheme onlydark: element supports dark scheme onlylight dark: supports both; browser picks based on preferencedark light: prefers dark; falls back to light