Tankōbon / hooks/use-settings / keepThemeInSync
Function: keepThemeInSync()
keepThemeInSync():
void
Defined in: hooks/use-settings.ts:62
Applies the theme setting from now on: toggles the dark class of <html> (the design tokens of index.css) and follows the OS scheme while the setting is system. Call it before the first render so the UI never shows up in the wrong scheme.
Returns
void