OpenDoc supports Light, Dark, and System through the sidebar footer and the Appearance submenu of the reader's Skills and appearance menu (the book in its toolbar, as for the sidebar's Skills). Appearance is an app setting, so it stays out of the document's options menu. System is the default. The browser saves an explicit choice under opendoc-appearance, synchronizes it between workspace tabs, and applies it before the first paint. If storage is unavailable, the current session still works. System follows live device appearance changes.
colors.css owns the semantic palette, including increased-contrast overrides. Reuse its roles for surfaces, text, controls, feedback, focus, and PDF inspection. Keep component styles in the existing app stylesheets and reuse shared controls. Do not duplicate palette values in documentation or component-local overrides.
The interface uses the bundled Geist variable font from assets/ui-fonts/geist, independently of the document font catalog. Arabic letters, which Geist lacks, use Arabic-only subsets of Noto Naskh Arabic from assets/ui-fonts/noto-naskh-arabic, with real regular, medium, semibold, and bold faces so Arabic names keep the weight of the Latin text beside them; they load only when a page shows Arabic. Shared typography and density tokens live in src/app/ui/ui.css: page titles and the side panel's drilled-in headings use 20/26px, section and card titles and the reader's document title 16/22px, labels 13/18px Medium, body text 13/20px Regular, captions 12/16px, and compact badges and key hints 11/15px. Buttons use a 32px minimum height with a 6px radius; data rows use 32px (44px on touch screens) and library list rows 40px. Rows may grow for wrapped content. Existing status badges use a 20px height and 6px radius, with palette roles defined in colors.css.
Preserve larger touch targets where the compact reader needs them. Keep labels and descriptions readable, long names and paths wrapping, visible keyboard focus, and usable controls at narrow widths. Use the existing reduced-motion behavior.
Appearance changes the surrounding interface. Paper, media, logo variations, theme specimens, and exports retain their authored colors. Do not invert a PDF canvas or choose logo artwork from the app appearance. Media and asset preview backgrounds are inspection aids; they do not modify source files.
Review affected views in light and dark appearance, then with increased contrast. Check text, actions, menus, notices, disabled states, and visible focus against their actual backgrounds. Check system switching, explicit overrides, reload persistence, and cross-tab synchronization when changing appearance state. Include the reader, comments, and a narrow workspace view after shared palette or shell changes.
Use measured contrast ratios and readable screenshots as evidence for the specific colors and states changed. Do not turn a palette measurement into a claim of complete accessibility conformance. A PDF rendered before and after an app-only appearance change should have identical bytes.