devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Independent color mode for devtools

Open MuhammadM1998 opened this issue 2 years ago â€ĸ 2 comments

🐛 The bug

Not really a big issue, maybe a nitpick or nice to have.

Dark mode is generally preferred to work with, but sometimes we're working on a project that has light mode only as a requirement. Changing dev tools to dark mode via the toggle also changes the main app. Using a separate cookie for devtools might be nice and straightforward I think. I can take a try If this seems reasonable.

đŸ› ī¸ To reproduce

https://stackblitz.com/edit/nuxt-ui-ndmdji?file=app.vue,nuxt.config.ts

🌈 Expected behavior

Notice I'm forcing light mode by setting colorMode.preference to light. Toggling the theme button in the app changes the app's and devtools theme. Toggling the theme button in the devtools and refresh changes the app's and devtools thene. (Theme toggle button in the app is just for demonstration, realistically there won't be a toggle if we're enforcing 1 mode)

â„šī¸ Additional context

No response

MuhammadM1998 avatar Dec 13 '23 18:12 MuhammadM1998

Make sense to have an option for this I think. PR welcome :)

antfu avatar Jan 11 '24 16:01 antfu

Cool! I'm on it

MuhammadM1998 avatar Jan 12 '24 19:01 MuhammadM1998

resolved by #679

arashsheyda avatar Jun 21 '24 16:06 arashsheyda