1.2.31 • Published 10 months ago

superpal v1.2.31

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Superpal

Create vivid UI palettes automatically from a single input color.

npm i superpal
import superPal from "superpal";
// or: const superPal = require("superpal").default;

superPal('#60a5fa')
// Returns a color object with 12 hues and a gray hue scale

Try it out: https://npm.runkit.com/superpal

About

This is still very much work in progress and most likely has bugs and issues. The goal is to create palettes that would be similar in style and equally good in quality as hand tuned scales of, say, Tailwind, Chakra, Open Color, IBM Carbon, Next UI or Radix Colors.

Inspired by and borrowing the API, color scale names and a couple of color scale related helper functions from Palx.

What makes Superpal different from, say, Palx:

  • Uses Okhsl (and HSLuv) color spaces for, hopefully, more vivid color interpolation
  • Hue rotation/shifting to create more appealing scales

Areas that could be further improved:

  • Contrast ratio calculation
  • Further improve yellow/green scales
  • Direct compatibility with tools such as Tailwind
  • Add semantic meta-data and sematic tokens on top of the base scales automatically

Related Projects, Links and Inspiration

Tools that in inspired this:

Color conversion libraries used by Superpal:

Articles:

More color tools that are worth checking out:

License

MIT License

1.2.27

11 months ago

1.2.28

11 months ago

1.2.29

11 months ago

1.2.30

11 months ago

1.2.31

10 months ago

1.2.18

1 year ago

1.2.19

1 year ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.20

1 year ago

1.2.23

1 year ago

1.2.24

1 year ago

1.2.21

1 year ago

1.2.22

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

1.2.9

2 years ago

1.2.12

1 year ago

1.2.13

1 year ago

1.2.10

2 years ago

1.2.11

2 years ago

1.2.16

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.1.9

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago