ruled
Grid/Graph paper like CSS background gradient generator
Last updated 10 years ago by jxnblk .
MIT · Original npm · Tarball · package.json
$ cnpm install ruled 
SYNC missed versions from official npm registry.

ruled

Build Status

Grid/Graph paper like CSS background gradient generator

npm i ruled
import ruled from 'ruled'

const styles = {
  backgroundImage: ruled(),
  backgroundSize: '8px 8px'
}

Options

The ruled function accepts one options object argument.

const bg = ruled({
  size: 8, // width & height of each grid square
  strokeWidth: 1, // stroke width of each rule line
  horizontal: true, // Include horizontal rules
  vertical: true, // Include vertical rules
  color: 'rgba(0, 255, 255, .25)' // Color of rule line
})

MIT License

Current Tags

  • 1.0.1                                ...           latest (10 years ago)

2 Versions

  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |