Skip to content

BUG: Code snippets don’t follow the selected theme (stay dark even in light mode) #315

Description

@callmegautam

Describe the bug

There’s a theme inconsistency in the docs UI.

Issue:
Switching the site theme between light and dark updates the overall UI correctly, but code snippets always remain in dark mode.
This makes the code blocks visually out of place when the site is in light theme.

To Reproduce

  1. Open any documentation page.
  2. Toggle the theme (light ↔ dark).
  3. Notice that the main UI updates, but all code blocks stay dark.

Expected behavior

Code snippets should update their styling based on the selected theme, just like the rest of the UI.

Screenshots

Image

OS

Window

OS Version

11

Client

Chrome

Additional context or Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions