Parameters
root
HTMLElement
Returns
void
Remarks
Sets the light values as inline custom properties, which inherit into everything below the element. The vitest and jest presets call it ondocument.documentElement for you, so call it yourself only in a test that
renders outside renderWithTap or wants the variables on one subtree. It sets
no dark values; drive the mode through renderWithTap’s theme option, which
is what useTapTheme reads.