A
AstraWind
v0.2.0
System
Interactivity

color-scheme

Utilities for controlling the color scheme of an element.

Quick reference

No native equivalent: these classes are accepted and ignored
Class
Styles
React Native
scheme-dark
color-scheme: dark;
No native equivalent
scheme-light
color-scheme: light;
No native equivalent
scheme-light-dark
color-scheme: light dark;
No native equivalent
scheme-normal
color-scheme: normal;
No native equivalent
scheme-only-dark
color-scheme: only dark;
No native equivalent
scheme-only-light
color-scheme: only light;
No native equivalent
The React Native column is what AstraWind resolves each class to, computed live on this page with the current color scheme. Classes with no native equivalent are accepted without effect, and AstraWind warns about them in development. See Compatibility.