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

colorkind

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorkind

colorblind-friendly color palettes

  • 0.4.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

colorkind

Simple, colorblind-friendly color palettes for data visualization.

npm size npm version

Usage

Colorkind exports a default pallette of 7 colors (Paul Tol's 'bright' pallette). You can also choose the number of colors you need, between 2 and 12, or by pallette name. Colorkind is designed to be very light, just exporting the colors themselves; hence, each pallette is a separate import.

const pallette = require("colorkind"); // ["#4477AA", "#EE6677", ... ] default 7-color pallette
// import by number of colors
const pallette = require("colorkind/dist/2"); // [ "#004488", "#DDAA33" ] 2-color pallette
const pallette = require("colorkind/dist/12"); // [ "#332288", "#117733", ... ] 12-color pallette
// import by pallette name
const pallette = require("colorkind/dist/tol-light"); // [ "#77AADD", "#EE8866", ... ] Paul Tol's 'light' pallette

Available pallettes

Import pathColorsDescription
colorkind7Paul Tol's 'bright' theme
colorkind/dist/22Paul Tol's 'high contrast' theme
colorkind/dist/33Paul Tol's 'high contrast' theme
colorkind/dist/44Paul Tol's 'bright' theme
colorkind/dist/55Paul Tol's 'bright' theme
colorkind/dist/66Paul Tol's 'bright' theme
colorkind/dist/77Paul Tol's 'bright' theme
colorkind/dist/88Paul Tol's 'light' theme
colorkind/dist/99Paul Tol's 'light' theme
colorkind/dist/1010Paul Tol's 'muted' theme
colorkind/dist/1111Paul Tol's legacy qualitative theme
colorkind/dist/1212Paul Tol's legacy qualitative theme
colorkind/dist/tol-high-contrast3Paul Tol's 'high contrast' theme
colorkind/dist/tol-bright7Paul Tol's 'bright' theme
colorkind/dist/tol-light9Paul Tol's 'light' theme
colorkind/dist/tol-muted10Paul Tol's 'muted' theme
colorkind/dist/tol-legacy12Paul Tol's legacy qualitative theme
colorkind/dist/tol-discrete-rainbow/22Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/33Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/44Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/55Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/66Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/77Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/88Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/99Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1010Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1111Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1212Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1313Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1414Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1515Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1616Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1717Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1818Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/1919Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/2020Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/2121Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/2222Paul Tol's 'discrete rainbow' theme
colorkind/dist/tol-discrete-rainbow/2323Paul Tol's 'discrete rainbow' theme

FAQs

Package last updated on 18 May 2020

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