Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect Google Chrome Developer tools using dark theme?

I started to develop tools in the extend of Chrome Extension in the Developer Tools (F12). Extending DevTools

But since Chrome added dark theme into Developer Tools, How can I detect whether if dark theme applies?

like image 446
Jamie Phan Avatar asked Oct 21 '25 12:10

Jamie Phan


1 Answers

Chrome 54 and newer:

chrome.devtools.panels.themeName
like image 158
wOxxOm Avatar answered Oct 23 '25 00:10

wOxxOm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!