2.0.2 • Published 4 months ago

brandeur-plugin-debug v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

brandeur-plugin-debug

Adds deubg styles to elements for simple layout debugging. Uses styles-debugger under the hood.

Installation

# npm
npm i --save brandeur-plugin-debug
# yarn
yarn add brandeur-plugin-debug
# pnpm
pnpm add brandeur-plugin-debug

Usage

import debug from 'brandeur-plugin-debug'

const plugin = debug()

Configuration

Parameter TypeDefault Description
autoActive boolean true Whether debug styles are active globally
config ConfigCustom styles-debugger configuration

When autoActive is disabled, one can opt-in by passing debug: true in a style object.

import debug from 'brandeur-plugin-debug'

const plugin = debug(false, {
  debugWith: 'background',
})

License

Brandeur is licensed under the MIT License. Documentation is licensed under Creative Commons License. Created with ♥ by @robinweser.

2.0.2

4 months ago

2.0.1

9 months ago

2.0.0

10 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

1 year ago