An open API service indexing awesome lists of open source software.

https://github.com/jongacnik/gr8-dev

ⓖⓡ⑧ Development grid
https://github.com/jongacnik/gr8-dev

css developer-tools

Last synced: 2 months ago
JSON representation

ⓖⓡ⑧ Development grid

Awesome Lists containing this project

README

          

# ⓖⓡ⑧ DEV

Development grid for [gr8](https://github.com/jongacnik/gr8)

```
npm i gr8-dev
```

## Example

```js
var gr8 = require('gr8')
var dev = require('gr8-dev')
var rst = require('recsst')

var css = gr8()

rst.attach()
dev.attach()
css.attach()
```

View grid html

```html









































```

In the browser you can now press `w` to toggle the grid or `d` to toggle dev styles.

## API

### `gr8dev.attach(options)`

Appends grid to dom and attaches event listeners for toggling the grid and dev styles.

| option | default | controls |
| --- | --- | --- |
| wrapClass | `'px1'` | grid wrap class, handy for page gutter |
| wrapAttrs | `{}` | additional wrap attributes, handy for responsive |
| colClass | `'p1'` | column wrap class, handy for column gutter |
| colAttrs | `{}` | additional column attributes, handy for responsive |
| visible | `false` | initial grid visibility |

### `gr8dev.detatch()`

Removes grid from dom and removes event listeners.