--- uai: "1.0" type: topic-memory status: active project: iarpg.com release: "IARPG-OPS-2" version: "2.0.27-wip" review_state: current-until-superseded --- # Theme ## Purpose Preserve light-first rendering and visitor-controlled local dark appearance. ## Current doctrine - Light is the unconditional public default. - A saved dark preference initializes before the stylesheet and persists locally. - Theme changes synchronize across tabs through the standard storage event. - Blocked storage restores the light default. - The theme switch exposes correct labels, aria-pressed state, and browser theme color. ## Shared Constraints - Apply [repository constraints](constraints.uai#non-negotiable-constraints). ## Relevant standards - https://iarpg.com/standard/accessibility-evidence-publication ## Relevant mission examples - https://iarpg.com/mission/port-access-anomaly-investigation - https://iarpg.com/mission/cross-border-ceasefire-verification - https://iarpg.com/mission/internal-leak-counterintelligence-review ## Deep report links - [Intelligence Operative Archetypes and Tradecraft](../docs/long-term-memory/reports/intelligence-operative-archetypes-and-tradecraft.md#analytical-liaison-and-support-roles) - [Justice System and Warrant Escalation for Rogue Intelligence](../docs/long-term-memory/reports/justice-system-and-warrant-escalation-for-rogue-intelligence.md#strategic-fit-with-rogue-intelligence) - [Monetary Architecture, Genesis Allowance, and Economic Stabilization](../docs/long-term-memory/reports/monetary-architecture-genesis-allowance-and-economic-stabilization.md#ledger-schema-and-telemetry) ## Related UAI records - [ui-shell.uai](ui-shell.uai) - [browser-validation.uai](browser-validation.uai) - [accessibility-evidence.uai](accessibility-evidence.uai)