ruled

Build Status

Grid/Graph paper like CSS background gradient generator

  1. npm i ruled
  1. import ruled from 'ruled'
  2. const styles = {
  3. backgroundImage: ruled(),
  4. backgroundSize: '8px 8px'
  5. }

Options

The ruled function accepts one options object argument.

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

MIT License