ruled

Grid/Graph paper like CSS background gradient generator

  • ruled

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ruled
1.0.18 years ago8 years agoMinified + gzip package size for ruled in KB

Readme

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