@privjs/gradients
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

Seeded Gradient Generator

Javascript utility to generate beautiful gradient backgrounds. Built by the team behind privjs.com

Screenshot 2023-01-03 at 5 44 04 PM

Demo

https://www.prasannamestha.com/blog/science-of-beautiful-color-gradients

Installation

$ npm i @privjs/gradients

Usage

import gradient from '@privjs/gradients'

const background = gradient('randomstring')

<div style={{ backgroundImage: background, width: '10rem', aspectRatio: '1' }}></div>

Support

Contact me on Twitter or write an email to prasanna@privjs.com.

Do check out PrivJs Safe: https://safe.privjs.com

Package Sidebar

Install

npm i @privjs/gradients

Weekly Downloads

70

Version

1.0.11

License

MIT

Unpacked Size

4.69 MB

Total Files

17

Last publish

Collaborators

  • prasannamestha