0.0.8 • Published 2 years ago

tailwind-debug-mode v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Tailwind CSS ~ Debug Mode

A plugin that provides a debug component that makes it visually easier to view the document structure.

Preview

npm.io

Example

View an example of the debug mode in action: https://jeroengerits.github.io/tailwind-debug-mode/

Basic usage

<!-- Enable debug mode : -->
<body class="debug">
  <!-- ... -->
</body>

Currently, the plugin only supports the debug component on a body element.

Installation

Install the plugin

# Using npm
npm install tailwind-debug-mode

# Using Yarn
yarn add tailwind-debug-mode

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  plugins: [
    require('tailwind-debug-mode'),
    // ...
  ],
}

Configuration

Optionally - define your custom color scheme

// tailwind.config.js
module.exports = {
  plugins: [
    require('tailwind-debug-mode')({
      wireColor: '#000000cc', // the color of the wires
      svgColor: '#000000cc', // the color of the svg
      textColor: '#33333399', // the color of the text on hover
      inputColor: '#33333322', // the background color of input elements
    }),
    // ...
  ],
}