Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gradient-palette

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gradient-palette

A simple gradient palette generator in RGB scale.

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Gradient Palette

Generate gradient palettes with zero dependencies

npm version

Installation

yarn

yarn add gradient-palette

npm

npm install garadient-palette --save

Usage

importing package

import GradientPalette from "gradient-palette";

Generating a palette

GradientPalette.generate(startHex, endHex, numSteps)

GradientPalette.generate("#D7DE63", "#226C45", 8);

// returns ["#d7de63", "#bdce5f", "#a3bd5a", "#89ad56", "#709d52", "#568d4e", "#3c7c49", "#226c45"]

sample_palette

Keywords

FAQs

Package last updated on 09 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc