ThemeScope themes everything inside it, and takes the same props as the web library’s:
KuiTheme
A map of
--kui-* properties to CSS values. A nested scope’s map applies over its parent’s.'light' | 'dark'
Pins the scope to light or dark and paints its surface. Left unset, the scheme follows the scope around it, or the device’s appearance at the root.
KuiTheme both libraries take.
Reading tokens
useTheme() reads the tokens in the values React Native styles take, under the keys of the web library’s token modules:
A value React Native cannot evaluate, such as
calc() or color-mix(), keeps its property at the library’s default, and a development build names it in a warning.
