prefers-color-scheme
queries by default for non-JS environmentsprefers-color-scheme
queries on the frontend for JS environmentsscheme
to get or set the preferred color schemehasNativeSupport
to report whether prefers-color-scheme
is supportedonChange
to listen for when the preferred color scheme changesremoveListener
to destroy the native prefers-color-scheme
listener