Overrides application theme
Describe the bug
In my application, I use class set to dark/light on the html element to set the theme.
You are using @vueuse/core's useDark(), which by default sets the class attribute on the html element to light/dark (with dark as the default) for the theme:
https://github.com/vitejs/devtools/blob/6100cfa56283c368c7d3a69cbb942ecceb1236ee/packages/ui/src/composables/dark.ts#L3-L6
Because of this, it is overriding the theme of my application. Even though in my application, the theme is set to light, after the devtools load, it overrides that and sets it to dark.
It also seems that the only way to change the theme is to open up dev tools, and modify the value in local storage.
I'm not providing a reproduction, because this is trivial to verify. (I have provided the exact 4 lines of code where this occurs)
Reproduction
N/A
System Info
System:
OS: Linux 7.1 Arch Linux
CPU: (8) x64 AMD Ryzen 7 4700U with Radeon Graphics
Memory: 14.47 GB / 62.17 GB
Container: Yes
Shell: 5.3.15 - /bin/bash
Binaries:
Node: 26.4.0 - /home/solonovamax/.nvm/versions/node/v26.4.0/bin/node
Yarn: 4.17.1 - /home/solonovamax/.nvm/versions/node/v26.4.0/bin/yarn
bun: 1.3.14 - /usr/bin/bun
Deno: 2.9.3 - /usr/bin/deno
Browsers:
Chromium: 150.0.7871.124
Used Package Manager
yarn
Validations
- [x] Follow our Code of Conduct
- [x] Read the Contributing Guide.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [x] The provided reproduction is a minimal reproducible of the bug.