--- ### ALL PAGES ### layout: themes/[ site.theme.id ]/frontend/core/base permalink: /test/libraries/appearance ### REGULAR PAGES ### sitemap: include: false meta: title: "Appearance test page" description: "Testing the appearance switching system (dark, light, system modes)." breadcrumb: "Appearance test" index: false ---

Appearance test page

Testing the appearance switching system with detailed debugging information.

Theme Switcher
Click to change appearance mode
Debug Panel
Live values (updates automatically)
Saved Preference -
Resolved Theme -
data-bs-theme attr -
localStorage raw -
System Preference -
Site Preset (Jekyll) {{ page.resolved.theme.appearance }}
Event Log
Theme change events
Waiting for events...
Visual theme test
These elements should adapt to the current theme
Backgrounds
bg-body
bg-body-secondary
bg-body-tertiary
Text

text-body (primary text)

text-body-secondary

text-body-tertiary

text-muted

Adaptive buttons
Alerts
Primary alert
Secondary alert
Success alert
Form elements
API Reference
webManager.uj().appearance methods
Method Returns Description
.get() 'dark' | 'light' | 'system' | null Get saved preference (null if not set)
.getResolved() 'dark' | 'light' Get actual displayed theme
.set(value) void Save and apply preference ('dark', 'light', or 'system')
.toggle() void Toggle between dark and light
.cycle() void Cycle: dark -> light -> system -> dark
.clear() void Clear saved preference (revert to site default)