Skip to content

fix(docs): align dark mode with the frontend theme - #119

Merged
FrangSierra merged 2 commits into
mainfrom
fix/docs-dark-theme-alignment
Oct 28, 2026
Merged

FrangSierra merged 2 commits into
mainfrom
fix/docs-dark-theme-alignment

Conversation

@FrangSierra

Copy link
Copy Markdown
Contributor

Summary

Align hosted and offline documentation dark mode with Zylon's current warm stone frontend theme. Light mode and article content remain unchanged.

Why

The docs retained near-black surfaces and gold/purple highlights while the frontend uses warm neutrals and light neutral accents.

Implementation

Use the frontend's default .dark palette for surfaces, text and borders. Scope hosted overrides to dark mode, remove its decorative glow, and align offline search and navigation states. Add theme-maintenance guidance.

Actual browser comparisons from the same pages and viewports:

View Before After
Hosted desktop Hosted desktop before Hosted desktop after
Hosted mobile Hosted mobile before Hosted mobile after
Offline desktop Offline desktop before Offline desktop after
Offline mobile navigation Offline mobile before Offline mobile after

Tests

  • git diff --check
  • python3 scripts/check-doc-versions.py
  • python3 -m unittest discover -s scripts/tests — 7 passed.
  • npm --prefix offline test — 15 passed.
  • npm --prefix offline run build — 886 pages, 466 redirects.
  • node .codex/validation/docs-theme.mjs — both renderers at desktop/tablet/mobile in both themes; 60 article combinations, 30 identical light screenshots, preserved text/heading geometry, painted code surfaces and preserved syntax colors, plus navigation, search, tabs, accordions, locale menus and offline theme persistence.

Independent Quality review approved c706250fa6d7fd5cc1c5b5a51fe8f1b001c1beef after resolving the painted code-background finding. No blocking findings remain.

Local Mintlify 0.0.2296 was used. Hosted search results need a deployed preview; external flag assets were blocked during captures. Review focus: dark-only scoping, Mintlify decoration hooks, and offline theme tokens.

@FrangSierra
FrangSierra merged commit f4143e4 into main Oct 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant