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 - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

package.json
{
"name": "colorkind",
"version": "0.3.0",
"version": "0.3.1",
"description": "colorblind-friendly color palettes",

@@ -8,6 +8,2 @@ "author": "Chris Bolin",

"main": "dist/index.js",
"exports": {
".": "./dist/index.js",
"./": "./dist/"
},
"scripts": {

@@ -14,0 +10,0 @@ "build": "node scripts/build.js",

@@ -10,55 +10,6 @@ # colorkind

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.
Colorkind exports a default pallette of 7 colors (Paul Tol's 'bright' pallette).
```js
const pallette = require("colorkind"); // ["#4477AA", "#EE6677", ... ] default 7-color pallette
// import by number of colors
const pallette = require("colorkind/2"); // [ "#004488", "#DDAA33" ] 2-color pallette
const pallette = require("colorkind/12"); // [ "#332288", "#117733", ... ] 12-color pallette
// import by pallette name
const pallette = require("colorkind/tol-light"); // [ "#77AADD", "#EE8866", ... ] Paul Tol's 'light' pallette
```
## Available pallettes
| Import path | Colors | Description |
| ----------------------------------- | ------ | ----------------------------------- |
| `colorkind` | 7 | Paul Tol's 'bright' theme |
| `colorkind/2` | 2 | Paul Tol's 'high contrast' theme |
| `colorkind/3` | 3 | Paul Tol's 'high contrast' theme |
| `colorkind/4` | 4 | Paul Tol's 'bright' theme |
| `colorkind/5` | 5 | Paul Tol's 'bright' theme |
| `colorkind/6` | 6 | Paul Tol's 'bright' theme |
| `colorkind/7` | 7 | Paul Tol's 'bright' theme |
| `colorkind/8` | 8 | Paul Tol's 'light' theme |
| `colorkind/9` | 9 | Paul Tol's 'light' theme |
| `colorkind/10` | 10 | Paul Tol's 'muted' theme |
| `colorkind/11` | 11 | Paul Tol's legacy qualitative theme |
| `colorkind/12` | 12 | Paul Tol's legacy qualitative theme |
| `colorkind/tol-high-contrast` | 3 | Paul Tol's 'high contrast' theme |
| `colorkind/tol-bright` | 7 | Paul Tol's 'bright' theme |
| `colorkind/tol-light` | 9 | Paul Tol's 'light' theme |
| `colorkind/tol-muted` | 10 | Paul Tol's 'muted' theme |
| `colorkind/tol-legacy` | 12 | Paul Tol's legacy qualitative theme |
| `colorkind/tol-discrete-rainbow/2` | 2 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/3` | 3 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/4` | 4 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/5` | 5 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/6` | 6 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/7` | 7 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/8` | 8 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/9` | 9 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/10` | 10 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/11` | 11 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/12` | 12 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/13` | 13 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/14` | 14 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/15` | 15 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/16` | 16 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/17` | 17 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/18` | 18 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/19` | 19 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/20` | 20 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/21` | 21 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/22` | 22 | Paul Tol's 'discrete rainbow' theme |
| `colorkind/tol-discrete-rainbow/23` | 23 | Paul Tol's 'discrete rainbow' theme |
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