material-dev-tools
material-dev-tools copied to clipboard
Material Theme UI for Chrome DevTools
Material DevTools Collection
This is a porting of the famous Material Theme (https://www.material-theme.com) for Chrome DevTools. It completely redesigns the Chrome DevTools panels to the Material Theme Colors. And just like its inspiration, it also provides options to switch to other themes as well in the blink of an eye!
Features
Available Themes
- Material Oceanic
- Material Darker
- Material Lighter
- Material Palenight
- Material Deep Ocean
- Material Forest
- Material Sky Blue
- Material Sandy Beach
- Material Volcano
- Material Space
- Monokai Pro
- Dracula
- GitHub
- GitHub Dark
- Arc Dark
- Atom One Dark
- Atom One Light
- Night Owl
- Light Owl
- Solarized Dark
- Solarized Light
- Moonlight
- SynthWave '84
Other Features
- Custom Font Family
- Custom Font Size
- Accent Color
- Accent Scrollbars
Installation
- Open Developer Tools
- Open the Settings > Experiments > "Allow extensions to load custom stylesheets"
- Close and reopen the DevTools
Local development
- Clone the project
git clone https://github.com/mallowigi/material-dev-tools
- Install dependencies
npm install
- Start the server
npm run dev
-
Open the Chrome Extensions Management Page.
-
Select Load unpacked extension
-
Select the
build/chrome-mv3/dev
directory. -
Verify that the extension is loaded and that the icon show up in the Toolbar.
-
Run the styles compiler
npm run styles
Themes Management
If you want to add new themes or modify the existing themes:
-
Open the
public/themes.yml
file -
Modify themes
-
Run
gulp themes
npm run themes
-
Reopen the settings to reload the colors
-
Reopen the devtools
Important files
-
/new/default.scss
-> SCSS variables reading the CSS variables generated by Svelte -
/new/light.scss
,/new/dark.scss
-> the dark and light equivalents -
/src/utils/styleBuilder.ts
-> file that generates the:root
CSS variables from thethemes.json
-
/src/devtools.svelte
-> generates the:root
inside the Devtools panel -
public/themes.yml
-> Themes Manifest, will generatethemes.json
used by the extension
Releasing
- Run
plasmo:zip
to create the zip file
npm run plasmo:zip
-
Bump the version in package.json
-
Upload the
.plasmo/xxx.zip
file to the Chrome Web Store
FAQ
I have installed the extension but nothing happened.
Make sure you've enabled the Chromium Experiment Allow extensions to load custom stylesheets
, and reload the DevTools.
I selected the X theme but it looks ugly!
Please make sure you've selected the DARK
or LIGHT
theme in the DevTools settings, according to the selected theme.