Skip to content

[Docs]: Add support for dark theme.#6729

Open
Evanroby wants to merge 4 commits intoCog-Creators:V3/developfrom
Evanroby:docs-dark-theme
Open

[Docs]: Add support for dark theme.#6729
Evanroby wants to merge 4 commits intoCog-Creators:V3/developfrom
Evanroby:docs-dark-theme

Conversation

@Evanroby
Copy link
Copy Markdown
Contributor

@Evanroby Evanroby commented Apr 4, 2026

Description of the changes

Adds dark mode support for the docs using prefers-color-scheme: dark. Styles most things such as layout, sidebar, code blocks (Monokai), tables, admonitions, etc.

Have the changes in this PR been tested?

Yes

@github-actions github-actions bot added the Category: Meta This is related to the repository maintenance. label Apr 4, 2026
@EternalllZM
Copy link
Copy Markdown
Contributor

EternalllZM commented Apr 5, 2026

Looks great, what a pleasure to read. There are a few things however I could see being an accessibility/visibility issue.

  1. The commented out lines of code are a little too dark.
image
  1. The "Important"/"Tip" highlights are a little too bright and thus contrasts badly against embedded code.
image
  1. "Warning" does not draw enough attention to potentially dangerous actions taking place.
image

My opinions

Commented out code can use a soft blue
image

Important/Tip highlight could look like this
image

@Evanroby
Copy link
Copy Markdown
Contributor Author

Evanroby commented Apr 5, 2026

All requested changes have been implemented !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Meta This is related to the repository maintenance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants