Windows and macOS now have dark mode. For CSS I can use: But I am using the Stripe Elements API, which puts colors in JavaScript For example: How can I detect the OS’s preferred color scheme in JavaScript? Answer To watch for changes:
Windows and macOS now have dark mode. For CSS I can use: But I am using the Stripe Elements API, which puts colors in JavaScript For example: How can I detect the OS’s preferred color scheme in JavaScript? Answer To watch for changes: