Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit b8fe5fc

Browse files
committed
fix(styles): fix styles
1 parent c3efad3 commit b8fe5fc

14 files changed

Lines changed: 341 additions & 30 deletions

README.md

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
![Logo](https://github.com/mallowigi/material-dev-tools/blob/3b1650b8f229210098b07f523846bc05167fbd77/icon128.png?raw=true)
2+
3+
# Material DevTools Collection
4+
5+
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
6+
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!
7+
8+
## Features
9+
10+
### Available Themes
11+
12+
- Material Oceanic
13+
- Material Darker
14+
- Material Lighter
15+
- Material Palenight
16+
- Material Deep Ocean
17+
- Material Forest
18+
- Material Sky Blue
19+
- Material Sandy Beach
20+
- Material Volcano
21+
- Material Space
22+
- Monokai Pro
23+
- Dracula
24+
- GitHub
25+
- GitHub Dark
26+
- Arc Dark
27+
- Atom One Dark
28+
- Atom One Light
29+
- Night Owl
30+
- Light Owl
31+
- Solarized Dark
32+
- Solarized Light
33+
- Moonlight
34+
- SynthWave '84
35+
36+
### Other Features
37+
38+
- Custom Font Family
39+
- Custom Font Size
40+
- Accent Color
41+
- Accent Scrollbars
42+
43+
## Installation
44+
45+
1. Open Developer Tools
46+
2. Open the Settings > Experiments > "Allow extensions to load custom stylesheets"
47+
3. Close and reopen the DevTools
48+
49+
## Local development
50+
51+
1. Clone the project
52+
53+
```bash
54+
git clone https://github.com/mallowigi/material-dev-tools
55+
```
56+
57+
2. Install dependencies
58+
59+
```bash
60+
npm install
61+
```
62+
63+
3. Start the server
64+
65+
```bash
66+
npm run dev
67+
```
68+
69+
4. Open the Chrome Extensions Management Page.
70+
71+
5. Select _Load unpacked extension_
72+
73+
6. Select the `build/chrome-mv3/dev` directory.
74+
75+
7. Verify that the extension is loaded and that the icon show up in the Toolbar.
76+
77+
8. Run the styles compiler
78+
79+
```bash
80+
npm run styles
81+
```
82+
83+
## Themes Management
84+
85+
If you want to add new themes or modify the existing themes:
86+
87+
1. Open the `public/themes.yml` file
88+
89+
2. Modify themes
90+
91+
3. Run `gulp themes`
92+
93+
```bash
94+
npm run themes
95+
```
96+
97+
4. Reopen the settings to reload the colors
98+
99+
5. Reopen the devtools
100+
101+
## Important files
102+
103+
- `/new/default.scss` -> SCSS variables reading the CSS variables generated by Svelte
104+
- `/new/light.scss`, `/new/dark.scss` -> the dark and light equivalents
105+
- `/src/utils/styleBuilder.ts` -> file that generates the `:root` CSS variables from the `themes.json`
106+
- `/src/devtools.svelte` -> generates the `:root` inside the Devtools panel
107+
- `public/themes.yml` -> Themes Manifest, will generate `themes.json` used by the extension
108+
109+
## FAQ
110+
111+
#### I have installed the extension but nothing happened.
112+
113+
Make sure you've enabled the Chromium Experiment `Allow extensions to load custom stylesheets`, and reload the DevTools.
114+
115+
#### I selected the X theme but it looks ugly!
116+
117+
Please make sure you've selected the `DARK` or `LIGHT` theme in the DevTools settings, according to the selected theme.
118+
119+
## Authors
120+
121+
- [Elior Boukhobza](https://www.github.com/mallowigi)
122+
- [Mike King](https://github.com/micjamking)
123+
124+
## Acknowledgements
125+
126+
- [Prismo Framework](https://docs.plasmo.com/framework)
127+
- [Original concept](https://github.com/micjamking)
128+
129+
## License
130+
131+
[MIT](https://choosealicense.com/licenses/mit/)
132+
133+
## Badges
134+
135+
Add badges from somewhere like: [shields.io](https://shields.io/)
136+
137+
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
138+
[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/)
139+
[![AGPL License](https://img.shields.io/badge/license-AGPL-blue.svg)](http://www.gnu.org/licenses/agpl-3.0)
140+

new/app/themed/accessibility/_axBreadcrumbs.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.ax-breadcrumbs .ax-node::before {
2-
background-color: $foreground;
2+
color: $foreground;
33

44
&:hover {
5-
background-color: $accent1;
5+
color: $accent1;
66
}
77
}
88

new/app/themed/colorpicker/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727

2828
.contrast-details-value [is='ui-icon'] {
29-
background-color: $foreground;
29+
color: $foreground;
3030
}
3131

3232
[is='ui-icon'].smallicon-no {

new/app/themed/console/_consoleView.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636
.expand-group-icon {
37-
background-color: $foreground;
37+
color: $foreground;
3838
}
3939

4040
.console-message-wrapper:last-of-type {

new/app/themed/elements/_computedStyleWidgetTree.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.goto-source-icon {
2-
background-color: $foreground;
2+
color: $foreground;
33
}
44

55
.goto-source-icon:hover {

new/app/themed/elements/_elementsTreeOutline.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
}
8181

8282
.elements-disclosure li.parent::before {
83-
background-color: $foreground;
83+
color: $foreground;
8484
}
8585

8686
.elements-disclosure li.hovered:not(.selected) .selection {
@@ -155,7 +155,7 @@
155155
}
156156

157157
.gutter-menu-icon {
158-
background-color: $foreground;
158+
color: $foreground;
159159
}
160160

161161
li.hovered:not(.always-parent) + ol.children:not(.shadow-root) {

new/app/themed/keybinds/_keybindsSettingsTab.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ header {
4646
.keybinds-set-select label p {
4747
color: $fg;
4848
}
49+
50+
.keybinds-list-item:not(.keybinds-category-header):hover,
51+
.keybinds-list-item:not(.keybinds-editing):focus-within {
52+
background-color: $tree;
53+
}

new/app/themed/security/_lockIcon.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
.lock-icon,
22
.security-property {
3-
background-color: $second;
3+
color: $second;
44
}
55

66
.lock-icon-secure {
7-
background-color: $string-color;
7+
color: $string-color;
88
}
99

1010
.lock-icon-unknown,
1111
.lock-icon-neutral {
12-
background-color: $foreground;
12+
color: $foreground;
1313
}
1414

1515
.lock-icon-insecure {
16-
background-color: $error-color;
16+
color: $error-color;
1717
}
1818

1919
.security-property-secure {
20-
background-color: $string-color;
20+
color: $string-color;
2121
}
2222

2323
.security-property-neutral {
24-
background-color: $error-color;
24+
color: $error-color;
2525
}
2626

2727
.security-property-insecure {
28-
background-color: $error-color;
28+
color: $error-color;
2929
}
3030

3131
.security-property-info {
32-
background-color: $foreground;
32+
color: $foreground;
3333
}
3434

3535
.security-property-unknown {
36-
background-color: $foreground;
36+
color: $foreground;
3737
}
3838

3939
.url-scheme-secure {

new/app/themed/ui/_checkbox.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,14 @@ input[type='checkbox']:not(.dt-checkbox-themed):not(.enabled-button) {
9494

9595
.dt-checkbox-text,
9696
.devices-list-title {
97-
overflow: visible;
97+
overflow: unset;
98+
}
9899

99-
&::before {
100-
margin-top: -2px;
101-
}
100+
.filter-checkbox-filter > [is='dt-checkbox'] {
101+
overflow: unset;
102+
}
103+
104+
input[type='checkbox'] {
105+
accent-color: $accent1;
106+
color: $bg;
102107
}

new/app/themed/ui/_chromeselect.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
border-radius: 4px;
44
color: $fg;
55
background: $contrast;
6+
background-image: none !important;
67
box-shadow: none;
78

89
&:focus {
@@ -14,3 +15,19 @@
1415
color: $selFg;
1516
}
1617
}
18+
19+
.workspace-settings-tab .settings-info-message {
20+
background: $second;
21+
}
22+
23+
.harmony-input:not([type]),
24+
.harmony-input[type='number'],
25+
.harmony-input[type='text'] {
26+
border-color: $hl;
27+
28+
&:focus,
29+
&:active {
30+
border: 2px solid $accent1 !important;
31+
outline: 2px solid $accent1 !important;
32+
}
33+
}

0 commit comments

Comments
 (0)