Skip to content

isPrefersLightTheme()

Checks whether the user prefers a light color scheme.

Example:

ts
const prefersLight = isPrefersLightTheme();

Released under the MIT License.