agent-pages

Plan: Dark and Light Theme Support for the Viewer Shell

Download

Dark and Light Theme Support for the Viewer Shell

Summary

Add a persistent System / Light / Dark preference to the trusted agent-pages viewer shell. The preference will style the HTML toolbar, Markdown renderer, version menu, and viewer error pages without altering published HTML or weakening the iframe sandbox.

Published HTML remains responsible for its own palette. The viewer will clearly communicate that boundary and document how publishers can make artifacts follow the operating-system theme with color-scheme and prefers-color-scheme.

Goals and Success Criteria

Implementation Changes

Theme preference and server behavior

Templates and controls

CSS theme system

Published HTML boundary and author guidance

Security and Compatibility

Public Interface Changes

Test Plan

Assumptions