Shares the page's colour mode: the stored choice, or the system preference until one is made. The choice is stored
through the registered persistence layer (localStorage by default) under the theme attribute. The mode is applied
to <html> as a dark class (for Tailwind's dark: variant) and as color-scheme (for light-dark() and system
colours such as Canvas), so pages and themes follow it.
Shares the page's colour mode: the stored choice, or the system preference until one is made. The choice is stored through the registered persistence layer (
localStorageby default) under thethemeattribute. The mode is applied to<html>as adarkclass (for Tailwind'sdark:variant) and ascolor-scheme(forlight-dark()and system colours such asCanvas), so pages and themes follow it.