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

Here is a list of commands you can use during development.

npm run build
npm run dev # Watch all files
npm run serve # Watch only the site files and start a local server
npm run lint
npm run format
npm run format:check

References