Skip to content

fix: respect system theme and reduced motion preferences - #262

Open
Shilpa805 wants to merge 1 commit into
nitrocloudofficial:mainfrom
Shilpa805:fix-dark-mode-reduced-motion
Open

fix: respect system theme and reduced motion preferences#262
Shilpa805 wants to merge 1 commit into
nitrocloudofficial:mainfrom
Shilpa805:fix-dark-mode-reduced-motion

Conversation

@Shilpa805

Copy link
Copy Markdown

Description

Improves dark mode and motion accessibility on the bundled MCP documentation page. The page now respects the user's system color scheme when no theme preference has been saved, while preserving the existing manual theme toggle.

Type of Change

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation update
  • refactor: Internal code change
  • test: Test-only changes
  • chore: Build, CI, or tooling changes

Related Issues

Closes #23

Changes Made

  • Use prefers-color-scheme to select the initial theme when no saved preference exists.
  • Respect prefers-reduced-motion by disabling non-essential transitions.
  • Disable the .tool-card hover transform when reduced motion is enabled.
  • Preserve saved light/dark theme preferences.

Testing

  • Core test suite passes successfully.
  • 50 test suites passed.
  • 577 tests 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.

[A11y] Bundled MCP docs page: dark-mode body gradient + prefers-reduced-motion

1 participant