Skip to content

Support dark mode in documentation#46

Merged
amrabed merged 3 commits intomainfrom
support-dark-mode-9585934945830070398
May 10, 2026
Merged

Support dark mode in documentation#46
amrabed merged 3 commits intomainfrom
support-dark-mode-9585934945830070398

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

This change enables dark mode support in the MkDocs-based documentation. By adding a palette configuration to mkdocs.yml, the documentation now supports:

  1. Automatic Mode Selection: Uses the user's system preference (prefers-color-scheme).
  2. Manual Toggle: Provides a brightness icon in the header for users to manually switch between light (default scheme) and dark (slate scheme) modes.
  3. Indigo Accent: Maintains consistent branding by using indigo as the primary and accent color for both modes.

Verified by building the documentation and inspecting the generated HTML for the correct palette attributes and toggle elements.


PR created automatically by Jules for task 9585934945830070398 started by @amrabed

Added palette configuration to mkdocs.yml to enable both light and dark
mode schemes. The documentation now respects system preferences and
includes a manual toggle for switching between modes.

- Light mode: scheme 'default', primary 'indigo'
- Dark mode: scheme 'slate', primary 'indigo'
- Automatic switching based on 'prefers-color-scheme'
- Manual toggle icons for brightness adjustment
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Comment thread mkdocs.yml
Updated mkdocs.yml to include navigation.tracking in the theme features.
This enables automatic updating of the URL hash as the user scrolls
through the page.
Comment thread mkdocs.yml Outdated
Moved navigation.tracking to be positioned before navigation.top in
mkdocs.yml as requested.
@amrabed amrabed marked this pull request as ready for review May 10, 2026 20:57
@amrabed amrabed merged commit 67eb9d3 into main May 10, 2026
1 check passed
@amrabed amrabed deleted the support-dark-mode-9585934945830070398 branch May 10, 2026 20:57
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