Skip to content

fix: improve documentation contrast and site titles - #110

Open
nick-csu wants to merge 4 commits into
pre-releasefrom
fix/primary-button-contrast
Open

nick-csu wants to merge 4 commits into
pre-releasefrom
fix/primary-button-contrast

Conversation

@nick-csu

@nick-csu nick-csu commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Calculate primary button text contrast from sRGB luminance of the configured fill.
  • Keep the button fill consistent in light and dark themes; adjust standalone accents separately.
  • Share the CSS generator between server rendering and live homepage configuration updates.
  • Add regression coverage for dark and light fills, including the three hosted documentation demo colors.

Verification

  • Docs UI unit tests: 30 passed.
  • Repository lint: passed.
  • Static browser regression cases cover orange, blue, purple, and white fills in both appearances.
  • Redeploying the three documentation examples and checking computed button colors through Playwright MCP.

Site titles

The documentation header now uses the configured display title before the hosting project slug, so sites can use a readable name while keeping their reserved subdomains.

@nick-csu nick-csu changed the title fix: adapt primary button text to configured colors fix: improve documentation contrast and site titles Sep 28, 2026

This branch has not been deployed

No deployments
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