The fix to continue support for custom devtools themes landed in m62. The new method injects the custom stylesheet into every shadow root that gets rendered. This caused devtools to be super sluggish especially with the shadow piercing combinators. I haven't finished refactoring the styles, but I decided to release it early to address some of the performance and style issues.
Please file issues for anything that seems broken/unstyled.
I'm trying to prune as much css as possible to improve performance. Haven't figured out a good way of verifying if a selector was removed/deprecated by the Chrome Team other than searching the code base. And that's a slow and painful process.
If you want to pitch in with the cleanup, feel free to create pull requests.
The css combinators used to override the devtools CSS is deprecated and support will be removed from Chrome in m63 (~ December 2017). The Chrome Team will continue to support custom themes by changing the implementation.
The implementation change requires a rewrite of this theme. During this time, only stable channel will be supported.
An assortment of Chrome Devtools themes that use the Zero Base Template.
Zero Base Themes is built on LESS. Grunt is used to listen for changes to LESS files and generates CSS. This means Node is required.
-
Clone this repo:
git clone https://github.com/mauricecruz/zero-base-themes.git
. -
Install dependencies:
npm install
. -
To use an existing theme:
grunt
. (If you're going to work on your own theme:grunt watch
to listen for changes). -
Chrome > Preferences... > Extensions > DevTools Theme: Zero Dark Matrix = Enabled
-
chrome://flags (make sure
Enable Developer Tools experiments
is enabled). -
In Chrome Dev Tools > Settings (cog icon or
Shift+?
) > Experiments > Allow custom UI themes. -
Close and reopen the dev tools.
All template files are located in the /less
directory. Files beginning with an _
indicate template partials. Any addition/removal of template partials should be reflected in the build file.
Copy /themes/_theme-template.less
and modify color values accordingly. Rename the file and save in the /themes
directory. Specify the theme of your choice in config.less
.
Chrome now has an option to let you select different themes via Settings > Appearance > Theme: Light/Dark.
Blog post and screencast showing how to get up and running and create your own theme as well http://s10wen.com/blog/2014/03/12/chrome-dev-tools-theming-with-zero-base-themes/