Skip to content

Match the header logo to the favicon - #40

Merged
patrick-5546 merged 1 commit into
mainfrom
teal-logo
Dec 3, 2026
Merged

patrick-5546 merged 1 commit into
mainfrom
teal-logo

Conversation

@patrick-5546

Copy link
Copy Markdown
Owner

Zensical's modern theme draws the header logo in the header's text color, black or white, while the favicon, the same icon, is teal. A new stylesheet, docs/stylesheets/extra.css, draws the logo in the palette's primary color instead, in the header and in the mobile menu, so it matches the favicon and follows any palette change. The favicon's teal is fixed in its file, so it still needs changing by hand.

The header itself stays neutral, as the modern theme intends. variant = "classic" would bring back the teal bar, but also the rest of Material for MkDocs' look, and recoloring the modern header would take overrides of several of the theme's rules.

.editorconfig indents CSS by two spaces, like JavaScript, and the Zensical page's layout table mentions CSS.

Verification

  • make lint and make build pass.
  • In headless Chromium, the logo is drawn in #009485 in the light and dark headers and in the mobile menu, and the title keeps its color.
  • The teal contrasts 3.8:1 with the light header and 5.2:1 with the dark one, above the 3:1 WCAG asks of icons.

Zensical's modern theme draws the logo in the header's text color, black or white. A stylesheet now
draws it in the palette's primary color, the favicon's teal, and the header stays neutral.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@patrick-5546 patrick-5546 added the infrastructure Infrastructure updates label Dec 3, 2026
@patrick-5546
patrick-5546 merged commit 0951ccb into main Dec 3, 2026
2 checks passed
@patrick-5546
patrick-5546 deleted the teal-logo branch December 3, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Infrastructure updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant