Theme Switching
How it works
- The user toggles the
ThemeSwitchcomponent. - The
useThemehook updates the theme state. - The hook adds either
.lightor.darkclass todocument.documentElement. - CSS variables from
variables.cssare applied according to that class. - Components using
var(...)immediately pick up the new values.