You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively: download debucsser.js in /module folder and link it in your HTML.
17
+
18
+
_**A chrome extension is under development**_
19
+
20
+
## Why
21
+
22
+
Debucsser is a simple CSS debugging tool made to be unobtrusive in your workflow.
23
+
24
+
I often find myself applying an "outline" to a lot of elements on the page to see their dimensions.
25
+
26
+
With Debucsser I simply hold **`CTRL`** and move my mouse around to see the dimensions in px and apply an outline class to every element I hover.
27
+
28
+
If you hold **`CTRL`** + **`SHIFT`** you apply the outline class to all the elements on the page by adding a global class.
29
+
30
+
You can configure some parameters.
31
+
32
+
I find handy the possibility to specify a custom class I want to apply to different elements without the need to comment and uncomment the my css files.
33
+
34
+
## Usage
35
+
36
+
```javascript
37
+
// only if you installed via NPM
38
+
importDebucsserfrom'debucsser';
39
+
40
+
// pass all the custom properties you want
41
+
constconfig= {
42
+
color:'palevioletred', // color of the outline
43
+
width:'4px', // width of the outline
44
+
grayscaleOnDebugAll:true, // apply grayscale filter to every element
45
+
customClass:'exampleClass', // a class existent in your stylesheet
46
+
}
47
+
48
+
// init the debugger
49
+
constdebug=newDebucsser(config).init();
50
+
```
51
+
52
+
When you have done this, simply hold **`CTRL`** or **`CTRL`** + **`SHIFT`** and move the mouse around on the page.
0 commit comments