Skip to content

fix: TOC entry color contrast, even better - #2379

Merged
chalin merged 1 commit into
docsy:mainfrom
chalin:chalin-m24-add-dark-theme-color-variants-2025-1116
Nov 17, 2025
Merged

chalin merged 1 commit into
docsy:mainfrom
chalin:chalin-m24-add-dark-theme-color-variants-2025-1116

Conversation

@chalin

@chalin chalin commented Nov 17, 2025 •

Copy link
Copy Markdown
Collaborator

Details:

  • Active state now uses var(--bs-primary-text-emphasis) for better contrast
  • Removed hover/focus text color; falling back to the non-hover/focused color since the background color is changing, and that's enough.

Screenshot

Before (left), and after (right)

image

Fixes color contrast issues for table of contents entries in dark mode.

- Active state now uses `var(--bs-primary-text-emphasis)` for better contrast
- Removed hardcoded hover/focus text color that had poor contrast in dark mode
- Adjusted primary color in dark mode (lightened 28%) for better overall contrast
@chalin
chalin merged commit 40e1ad0 into docsy:main Nov 17, 2025
@chalin
chalin deleted the chalin-m24-add-dark-theme-color-variants-2025-1116 branch November 17, 2025 21:33
@chalin chalin added this to the 25Q4 milestone Nov 22, 2025
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