Skip to content

docs: fix dark-mode contrast on API reference#42

Merged
tgiachi merged 1 commit into
developfrom
docs/dark-code-contrast
Jul 3, 2026
Merged

docs: fix dark-mode contrast on API reference#42
tgiachi merged 1 commit into
developfrom
docs/dark-code-contrast

Conversation

@tgiachi

@tgiachi tgiachi commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

In dark mode, inline code rendered in the dark brand teal (#0D7786) against the near-black body background - contrast ~2:1, nearly unreadable. API reference pages are full of inline code (type/member/parameter names), which is where it hurt most. The active TOC item and the "In this article" affix marker had the same missing dark override.

Fix: dark-mode overrides lifting all three to the light accent (#4BB4BD), consistent with the existing dark link color.

Test Plan

  • docfx build 0 warnings; overrides present in the built _site/public/main.css
  • Light mode untouched (brand-deep on white keeps its contrast)

@tgiachi
tgiachi merged commit 0bdb5ec into develop Jul 3, 2026
3 checks passed
@tgiachi
tgiachi deleted the docs/dark-code-contrast branch July 3, 2026 07:04
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