css-debug

0.0.2-beta • Public • Published

CSS-DEBUG

A tool for debugging CSS and HTML boxes.

Base image

How to use it?

Donwload the project with:

> 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), example:

<div class="debug-deepskyblue"></div>

use debug

You can use hover debug with: (debug-color--hover) debug-red--hover:

<div class="debug-deepskyblue debug-red--hover"></div>

Hover

You can remove the background with no-bg:

<div class="debug-deepskyblue debug-no-bg"></div>

No background

You can remove the outline whith debug-outline-none:

<div class="debug-deepskyblue debug-outline-none"></div>

No outline

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

<div class="debug-deepskyblue" style="--outline-size: 5px"></div>

Change size

Package Sidebar

Install

npm i css-debug

Weekly Downloads

0

Version

0.0.2-beta

License

MIT

Unpacked Size

64.8 kB

Total Files

15

Last publish

Collaborators

  • gammafp