Code snippet defining the CSS color-scheme property along with a button class using light-dark color function for styling.
For example,
color: light-dark(#000, #fff);
First value = light mode color
Second value = dark mode color
The browser picks one based on user preference automatically.
That's it. No @ media (prefers-color-scheme).
BUT...