css-debug
Version:
A tool for debugging CSS and HTML boxes
48 lines (38 loc) • 2.04 kB
Markdown
# CSS-DEBUG
A tool for debugging CSS and HTML boxes.

### How to use it?
Donwload the project with:
```bash
> npm i --save-dev css-debug
```
Inside the project you have two folders SASS and CSS use the one that feels most comfortable to you, the main file is **sass/debug.scss** (in sass) or **css/debug.css** (in css).
css-debug have one class called debug-*, you can add color by replacing the asterisk with the X11 color you want ([CLICK HERE TO KNOW ABOUT COLORS X11](https://en.wikipedia.org/wiki/X11_color_names)), example:
```html
<div class="debug-deepskyblue"></div>
```

You can use hover debug with: (debug-color--hover) **debug-red--hover**:
```html
<div class="debug-deepskyblue debug-red--hover"></div>
```

You can remove the background with **no-bg**:
```html
<div class="debug-deepskyblue debug-no-bg"></div>
```

You can remove the outline whith **debug-outline-none**:
```html
<div class="debug-deepskyblue debug-outline-none"></div>
```

You have the possibility to change the properties with css variables:
- --outline-size -> change the outline-size
- --alpha -> change the background-color alpha
- --color -> change the background-color (If you use this, the rgba alpha will be disabled, and you need pass it by css color)
Example with --outline-size
```html
<div class="debug-deepskyblue" style="--outline-size: 5px"></div>
```
