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
- Host: GitHub
- URL: https://github.com/jongacnik/gr8-dev
- Owner: jongacnik
- Created: 2016-09-28T05:55:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-05T04:12:12.000Z (over 9 years ago)
- Last Synced: 2025-10-24T12:49:27.713Z (8 months ago)
- Topics: css, developer-tools
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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.