Add custom styling options for docs (custom.css)#3207
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a custom CSS stylesheet to Jupyter Book/Sphinx docs and wires it into the Sphinx build configuration to enable theme-specific styling (sidebar/header/footer/button tweaks).
Changes:
- Added
docs/_static/custom.cssdefining light/dark theme CSS variables and component styling. - Updated
_config.ymlto include the static path and loadcustom.cssduring HTML builds.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/_static/custom.css | Introduces custom theme variables and styling overrides for the docs UI. |
| _config.yml | Configures Sphinx to copy static assets and load the new CSS file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
deruyter92
approved these changes
Feb 19, 2026
Collaborator
deruyter92
left a comment
There was a problem hiding this comment.
Love this! Great suggestion
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.
Purpose
Preview
Again, color theme is not final. This is an example of what can be done.
TODO
Details
This pull request introduces custom styling to the Sphinx documentation by adding a new CSS file and updating the Sphinx configuration to include it. The main goal is to enhance the documentation's appearance with a custom sidebar, header, and footer design for both light and dark themes.
Sphinx documentation theming:
custom.cssfile indocs/_static/that defines custom colors and styles for sidebar, header, footer, and buttons, supporting both light and dark themes._config.ymlto includedocs/_staticas a static path and load the newcustom.cssfile for HTML output.