This commit is contained in:
team3
2026-06-04 00:27:29 +02:00
parent 614bce2c89
commit d08878289e
11 changed files with 18 additions and 0 deletions

View File

@@ -771,5 +771,6 @@ The app toggles dark mode by setting `data-theme="dark"` on `<html>` inside its
```
- Do NOT use `prefers-color-scheme` — the app controls the attribute.
- Do not hardcode callout/infobox backgrounds — or darken them explicitly in the dark block (e.g. to `var(--bg-soft)`); the colored border stays.
- Keep dark rules inside `@media screen` only, so WeasyPrint/PDF renders the light theme.
- Elements with light text on accent backgrounds (table headers, cover) may keep their light-theme background.