JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1309
  • Score
    100M100P100Q104013F
  • License MIT

Automatic UI Color Palette Generator

Package Exports

  • palx

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (palx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Palx

Automatic UI Color Palette Generator

https://palx.jxnblk.com

npm i palx

Provide a single color value and Palx returns a full-spectrum color palette, well suited for UI design and data visualizations that work harmoniously with brand colors.

const palx = require('palx')

palx('#07c')
// Returns a color object with
// 12 hues and a gray spread across
// 10 luminance steps

About

Inspired by Open Color, Palx takes a single input color, then spreads the hue across the color spectrum in 12 steps, and spreads each hue across 10 luminance steps. Palx also desaturates the main color to create shades of gray and a black that are based off the original color.

MIT License