-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Description
The CapacitorJS main website (https://capacitorjs.com) currently does not include a theme toggler for switching between light and dark modes. Most modern developer documentation sites provide a theme switcher to improve accessibility, readability, and user customization.
Platforms
- iOS
- Android
- Web
Request or proposed solution
A theme toggle button (Light / Dark / System Default) should be added to the homepage header or navigation bar.
The theme preference should persist between sessions using localStorage (or a similar mechanism) and respect the system setting via prefers-color-scheme.
Preferred Solution:
- Add a theme toggler component consistent with the existing Capacitor site design.
- Ensure the theme change applies globally and smoothly transitions between modes.
- Store and restore the user’s theme preference automatically.
Alternatives
- Continue using the default light theme (less user-friendly in dark environments).
- Rely on browser extensions or OS-level dark mode inversion (inconsistent results).
Additional Information
Implementing a theme toggler will bring visual consistency with other modern web frameworks and documentation platforms (e.g., Ionic, React, and Vite).
It enhances the developer experience and aligns with accessibility best practices.