Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access devtools theme CSS from an extension panel? #292

Open
JustinGrote opened this issue Nov 11, 2024 · 3 comments
Open

How to access devtools theme CSS from an extension panel? #292

JustinGrote opened this issue Nov 11, 2024 · 3 comments
Labels
feature New feature or request feedback Feedback about an existing DevTools feature

Comments

@JustinGrote
Copy link

JustinGrote commented Nov 11, 2024

I have an extension that has a devtools panel. I want to match the colors in my panel to what is currently being used in the devtools theme. Is this fetchable somehow from the devtools panel context?

@JustinGrote JustinGrote added the feedback Feedback about an existing DevTools feature label Nov 11, 2024
@leahmsft
Copy link

Hi @JustinGrote, we recently deprecated the Visual Studio Code themes, so we only support the default Light+ and Dark+ themes now. You can use 'prefers-color-scheme' to detect which one is being used and respond on their panels accordingly.
prefers-color-scheme - CSS: Cascading Style Sheets | MDN

@JustinGrote
Copy link
Author

OK but is there no way to access the existing styling and colors for the light and dark themes? Do I have to hardcode the values based on what it is today? What if it changes?

@leahmsft
Copy link

Unfortunately, there's no programmatic access existing today. I'll file this as a feature request on the engineering team's backlog for consideration. Thank you for your feedback!

@leahmsft leahmsft added the feature New feature or request label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request feedback Feedback about an existing DevTools feature
Projects
None yet
Development

No branches or pull requests

2 participants