#315·apihub

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

Author: callmegautamCreated Nov 19, 2025Updated Jan 18, 2026
Labelsbug

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