Skip to content

Robot-Inventor/hct-color-palette

Repository files navigation

Smart Chroma

cover image

Smart Chroma generates a color palette based on human vision.

If you create a color palette using a generic color space, the saturation and lightness of the appearance will appear to vary simply by changing the hue. This is because the saturation and lightness of the color space do not take human vision into account. This tool allows you to instantly and easily generate a color palette that takes human vision into account.

This tool is inspired by Color Space and uses the HCT color space internally. Source code available on GitHub.

Installation

Figma Plugin

Just install it from the Figma Community.

Standalone Version

First, run the following command.

npm install
npm run build

Second, set up a local server and open site/dist/index.html.

Development

Build

npm run build

Lint

npm run lint

Format

npm run format

or

npm run format:check

References