Toggling the theme
Tap the ○/● button in the top-right corner of the header to switch between light and dark mode.- ○ — light theme is active
- ● — dark theme is active
How the theme is applied
The theme is controlled by adata-theme attribute on the root <html> element. Light mode uses the default CSS custom properties defined in :root. Dark mode overrides them under the [data-theme="dark"] selector:
How the preference is saved
When you toggle the theme, the app callsApp.setTheme(), which sets the data-theme attribute and writes the preference to localStorage under the key pos_theme:
setupThemeToggle() reads pos_theme from localStorage and restores your saved preference before the page renders.
Setting the theme programmatically
You can also set the theme from the browser console without clicking the button:The theme setting is stored in
localStorage key pos_theme as either "light" or "dark". Clearing browser storage will reset the theme to light on the next launch.