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

Manually merged
Evanroby merged 0 commits from Evanroby/docs-dark-theme into V3/develop 2026-11-21 15:29:22 +01:00
Evanroby commented 2026-04-05 00:26:33 +02:00 (Migrated from github.com)

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

Rewrite:

I had decided to "rewrite" this PR a few months ago by maintainer's choice. I have made a few readthedocs pages with different themes for red, which I will link them here. I appreciate anyone's thought on it:

https://red-discordbot--6729.org.readthedocs.build/en/6729/ - PR's implementation theme
https://evanroby-redbot.readthedocs.io/en/pydata/ - PyData theme
https://evanroby-redbot.readthedocs.io/en/furo/ - Furo theme
https://evanroby-redbot.readthedocs.io/en/book/ - Book theme

Each one of them are branches on my fork. If we decide on another theme, I will close this PR and open with another branch.

### 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? <!-- Choose one (remove the line that doesn't apply): --> Yes <!-- If the question doesn't apply (for example, it's not a code change), choose Yes. Please respond to this question truthfully. We do not delay nor reject PRs based on the answer to this question but it allows to better review this PR. --> # Rewrite: I had decided to "rewrite" this PR a few months ago by maintainer's choice. I have made a few `readthedocs` pages with different themes for red, which I will link them here. I appreciate anyone's thought on it: https://red-discordbot--6729.org.readthedocs.build/en/6729/ - PR's implementation theme https://evanroby-redbot.readthedocs.io/en/pydata/ - PyData theme https://evanroby-redbot.readthedocs.io/en/furo/ - Furo theme https://evanroby-redbot.readthedocs.io/en/book/ - Book theme Each one of them are branches on my fork. If we decide on another theme, I will close this PR and open with another branch.
EternalllZM commented 2026-04-05 03:25:59 +02:00 (Migrated from github.com)

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

  2. The "Important"/"Tip" highlights are a little too bright and thus contrasts badly against embedded code.
    image

  3. "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

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. <img width="714" height="115" alt="image" src="https://github.com/user-attachments/assets/6c320987-aec4-4238-ad0c-97e6f5ba4c21" /> 2. The "Important"/"Tip" highlights are a little too bright and thus contrasts badly against embedded code. <img width="688" height="221" alt="image" src="https://github.com/user-attachments/assets/2622ace2-8bc7-4dc9-8d79-758e2b7602a6" /> 3. "Warning" does not draw enough attention to potentially dangerous actions taking place. <img width="716" height="154" alt="image" src="https://github.com/user-attachments/assets/d2a6e17e-e133-4c3f-9b63-684594c3f924" /> ### My opinions Commented out code can use a soft blue <img width="740" height="119" alt="image" src="https://github.com/user-attachments/assets/996f4485-bc09-4e2b-b4e0-1aca28b46888" /> Important/Tip highlight could look like this <img width="705" height="228" alt="image" src="https://github.com/user-attachments/assets/b9ad549f-d370-48b9-93c9-53c0e2851899" />
Evanroby commented 2026-04-05 09:41:08 +02:00 (Migrated from github.com)

All requested changes have been implemented !

All requested changes have been implemented !
Mrcoolgamer11 manually merged commit 9cbd45ee23 into V3/develop 2026-11-21 15:29:22 +01:00
Sign in to join this conversation.
No reviewers
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!6729
No description provided.