fix: recess the sidebar in light mode, document the theme switcher

In light mode the sidebar was #fff while the toolbar is gray-0, which made it the
brightest surface on screen — it read as a glaring slab beside the chrome rather
than as part of it. A sidebar should sit level with the chrome or slightly below
it, never above. Moving it to gray-1 with a gray-2 header gives a consistent
ladder from the toolbar down to the document surround (L 0.946 / 0.894 / 0.835 /
0.756) and keeps text contrast high (7.35 and 9.70).

Also adds the theme switcher to the README's feature list — it shipped in #16
without being documented there.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-04 16:12:43 +02:00
co-authored by Claude Opus 5
parent 1542458383
commit 7ce2f4ff73
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -38,6 +38,7 @@ To give it a try without installing anything, visit the [live demo](https://alpa
- Compare two document versions (PDF, DjVu, e-books, Office, text) — side-by-side / unified / inline, with word-level highlights, pinnable blame-aware tooltips, and page-by-page diff for multi-page PDF/DjVu
- Client-side only — documents are never uploaded or transmitted
- Multilingual UI — auto-detects your browser language with a manual switcher (English, Polish, Spanish, French, German, Portuguese, Chinese, Japanese, Russian)
- Light / dark / follow-the-system theme, with a localized switcher beside the language one — defaults to following the OS, and the light palette is [Open Color](https://yeun.github.io/open-color/)
## Embedding
+4 -4
View File
@@ -72,8 +72,8 @@
:root:not([data-theme="dark"]) {
--bg-app: var(--oc-gray-3);
--bg-toolbar: var(--oc-gray-0);
--bg-sidebar: #fff;
--bg-sidebar-head: var(--oc-gray-1);
--bg-sidebar: var(--oc-gray-1);
--bg-sidebar-head: var(--oc-gray-2);
--bg-field: #fff;
--bg-hover: var(--oc-gray-2);
--bg-active: var(--oc-gray-3);
@@ -99,8 +99,8 @@
:root[data-theme="light"] {
--bg-app: var(--oc-gray-3);
--bg-toolbar: var(--oc-gray-0);
--bg-sidebar: #fff;
--bg-sidebar-head: var(--oc-gray-1);
--bg-sidebar: var(--oc-gray-1);
--bg-sidebar-head: var(--oc-gray-2);
--bg-field: #fff;
--bg-hover: var(--oc-gray-2);
--bg-active: var(--oc-gray-3);