Add light/dark theme toggle for standalone docs#588
Open
julioest wants to merge 4 commits intoboostorg:developfrom
Open
Add light/dark theme toggle for standalone docs#588julioest wants to merge 4 commits intoboostorg:developfrom
julioest wants to merge 4 commits intoboostorg:developfrom
Conversation
Add a theme toggle button to the toolbar that allows users to switch between light and dark modes on standalone documentation sites. - Add 00-theme-toggle.js for toggle logic with localStorage persistence - Add theme.css with toggle button styling and dark syntax highlighting - Add FOUC prevention script in head-scripts.hbs - Add toggle button to toolbar.hbs (hidden when embedded in iframe) - Toggle adds/removes 'dark' class on <html> to work with boostlook.css
|
An automated preview of the documentation is available at https://588.site-docs.prtest2.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-02-03 21:10:59 UTC |
… to streamline the CSS file and improve maintainability.
8952cb3 to
f4cc930
Compare
Collaborator
Author
|
@rbbeeston How we feeling about the placement of the toggle? |
- Create theme-toggle.hbs partial for reusability - Add title-row wrapper in nav-menu.hbs to position theme toggle next to component title - Add flexbox styles for .title-row in nav.css - Remove theme toggle from toolbar.hbs
e5a56c1 to
eec5696
Compare
Collaborator
Author
|
The toggle is now in the left sidebar, on both mobile and desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a theme toggle button to the toolbar that allows users to switch between light and dark modes on standalone documentation sites.
fixes: #280