Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

random-gradient

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

random-gradient

Generate beautiful random gradients

    0.0.2latest
    GitHub

Version published
Maintainers
1
Weekly downloads
718
increased by19.67%

Weekly downloads

Changelog

Source

v0.0.2

Improvements 🎉

  • Add radial gradient type (https://github.com/bukinoshita/random-gradient/issues/1)
  • Add vertical gradient type (https://github.com/bukinoshita/random-gradient/issues/2)
  • Add horizontal gradient type (https://github.com/bukinoshita/random-gradient/issues/3)
  • Improve diagonal gradient, looks cool! (https://github.com/bukinoshita/random-gradient/issues/4)

Readme

Source

random-gradient Build Status

Generate beautiful random gradients


Install

$ npm install --save random-gradient

Usage

// with React import gradient from 'random-gradient' export default ({ name }) => { const bgGradient = { background: gradient(name) } return ( <div style={bgGradient}> <h2>{name}</h2> </div> ) }

API

randomGradient(uid, type)

uid

Type: string
Required

type

Type: string
Default: diagonal
Options: diagonal, vertical, horizontal, radial

License

MIT © Bu Kinoshita

FAQs

Last updated on 08 Jun 2017

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc