v0.11.0
- This release adds the
<ColorSchemeProvider>
,usePreferredColorScheme
,useNativeColorScheme
anduseColorScheme
. This set of utilities allows automatic management of color scheme preferences by both the user and the device. This also synchronizes across pages and persists in the local storage.<ColorSchemeProvider>
can also be either controlled and uncontrolled through the use ofinitialValue
,value
andonChange
.
See docs
for example usage.