feat: add light/dark mode system #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/light-dark-mode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
colors.backgroundrole to schema — explicit page surface color (optional, falls back to secondary → white)_compute_chrome()helper — computes translucent border/tint/shadow adapted to surface luminance--brand-surface,--brand-on-surface, and--brand-chrome-*CSS custom properties in:root.brand-invertedclass that swaps surface/text and flips chrome for opposite mode.bg-backgroundutility class and--brand-background/--brand-background-rgbvarsTest plan
uv run scripts/build.pypasses with full brand.ymluv run scripts/build.pypasses with example.brand.yml (minimal brand)uv run scripts/validate.pypassesbrand.csscontains--brand-surface,--brand-on-surface,--brand-chrome-*, and.brand-invertedassets/exports/index.htmlin browser — toggle works, chrome flips correctly