# Dark Theme not working in Browser within Cursor (Chrome)

**URL:** <https://forum.cursor.com/t/dark-theme-not-working-in-browser-within-cursor-chrome/149961>\
**Category:** Bug Reports\
**Tags:** themes, browser\
**Created:** [January 26, 2026, 3:56pm UTC](https://forum.cursor.com/t/dark-theme-not-working-in-browser-within-cursor-chrome/149961 "2026-01-26T15:56:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alan\_Kong](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Alan\_Kong](https://forum.cursor.com/u/Alan_Kong)\
**Post date:** [January 26, 2026, 3:56pm UTC](https://forum.cursor.com/t/dark-theme-not-working-in-browser-within-cursor-chrome/149961/1 "2026-01-26T15:56:12Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Dark Theme in the Cursor IDE Browser (Chrome) doesnt seem to be working correctly.  
It has default to Light Theme, even though all my settings are in Dark Theme

### Steps to Reproduce

Open a link within cursor from the terminal

### Expected Behavior

It should be Dark Theme

### Operating System

MacOS

### Version Information

Version: 2.4.21 (Universal)  
VSCode Version: 1.105.1  
Commit: dc8361355d709f306d5159635a677a571b277bc0  
Date: 2026-01-22T16:57:59.675Z  
Build Type: Stable  
Release Track: Default  
Electron: 39.2.7  
Chromium: 142.0.7444.235  
Node.js: 22.21.1  
V8: 14.2.231.21-electron.0  
OS: Darwin arm64 25.2.0

### Does this stop you from using Cursor

No - Cursor works, but with this issue

 ![Screenshot 2026-01-26 at 11.50.40 PM](https://us1.discourse-cdn.com/cursor1/original/3X/7/6/76d071f489979d69674769de897aefaff811cc46.png)

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [January 27, 2026, 5:49am UTC](https://forum.cursor.com/t/dark-theme-not-working-in-browser-within-cursor-chrome/149961/3 "2026-01-27T05:49:50Z")

</div>

Hey, thanks for the report.

This is a known issue with how the browser passes theme preference to websites. Can you try a couple things to help diagnose it?

1. Open DevTools in your browser → Console → run:

2. Try opening another site with clear dark mode support (for example, [github.com](http://github.com)). Is it also showing the light theme there?

It’s possible your site just doesn’t support `prefers-color-scheme: dark`.

The team is aware of this browser theme bug. Sometimes the theme preference is passed incorrectly, or it doesn’t work at all.

Related threads:

- [Dark Reader plugin bleeding into my Cursor browser](https://forum.cursor.com/t/dark-reader-plugin-bleeding-into-my-cursor-browser/146457)
- [Cursor is forcing dark them on the cursor bowers](https://forum.cursor.com/t/cursor-is-forcing-dark-them-on-the-cursor-bowers/146894)

---

<div class="post-metadata">

**Author:** ![Alan\_Kong](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Alan\_Kong](https://forum.cursor.com/u/Alan_Kong)\
**Post date:** [January 27, 2026, 6:21am UTC](https://forum.cursor.com/t/dark-theme-not-working-in-browser-within-cursor-chrome/149961/4 "2026-01-27T06:21:49Z")

</div>

Visited google website - initially it was defaulted to light theme, once i switch is on the browser, it becomes dark theme going forward.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/2/1/211f53d1bbfb5e7863fc8c60f079ba5b25fc4023.png)

This is the localhost url that i am accessing.  
By right I would expected it to follow my chrome browser setting which is dark theme but i cant seems to toggle it back to dark mode theme for some reason.  
it seems that the browser is already in dark theme but the background is white with white text so something is wrong over here.

Left is cursor, right is chrome browser

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/a/1/a1209582b734a6e3cb37c651d01f73f02689f6b3.png)

Github is showing up correctly in dark theme

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/5/f/5fe87562742f376405b954eb45977daf7badf866.png)

I also took a look at this setting in cursor to detect color scheme in my system which is dark mode on the mac - window: Auto Detect Color Scheme.

---

<div class="post-metadata">

**Author:** ![Alan\_Kong](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Alan\_Kong](https://forum.cursor.com/u/Alan_Kong)\
**Post date:** [January 27, 2026, 6:37am UTC](https://forum.cursor.com/t/dark-theme-not-working-in-browser-within-cursor-chrome/149961/5 "2026-01-27T06:37:08Z")

</div>

A quick observation is that i open the devtools and switch between light and dark theme it did not change anything.

However, If i change the it inside the CSS inspector, I am able to toggle light and dark but somehow the dark theme background remains white while the text color changes to white from black.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/1/b/1b456fb852d0721e77db6614ee620cbcd8d2a3d6.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/7/8/78e0e912c9205552f71ede48f1d3c667b71a868c.png)

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [March 1, 2026, 9:35am UTC](https://forum.cursor.com/t/dark-theme-not-working-in-browser-within-cursor-chrome/149961/7 "2026-03-01T09:35:51Z")

</div>

Opened on March 1, 2026, 9:35am UTC


