Skip to content

masakudamatsu/triangulum-color-picker

Repository files navigation

Triangulum Color Picker

A front-end web app to pick tints and shades of a hue by luminance and by chroma, to make our color choice more logical and more intuitive

UI preview

Screenshots of Triangulum Color Picker for desktop, tablet, and mobile screens

URL

https://triangulum.netlify.app

Features

See Medium articles that accompany Triangulum Color Picker:

JS libraries used

Web APIs used

Contributing

This app is in an experimental stage. Pull requests are welcome.

Setting up local environment

Requirements: Node.js (with NPM which comes with it) and Git LFS

To install:

$ git clone https://github.com/masakudamatsu/triangulum-color-picker.git
$ cd triangulum-color-picker
$ npm install

To start a development server:

$ npm run dev

which runs the next dev command (see Next.js Docs).

Testing

The following testing tools are used:

To run all the unit tests with Testing Library and Jest (with code coverage reports):

$ npm run test:coverage

To run only the unit tests relevant to changes since the last commit (with Jest watch mode):

$ npm t

To run e2e tests with Cypress Test Runner:

$ npm run test:e2e

To run cypress-image-snapshot tests headlessly in the Electron browser (after launching the development server):

$ npm run snapshot

When you make a commit, ESLint, Prettier, and Jest will be run only on the files to be committed. If there is any error, the commit will be aborted.

Writing commit messages

After staging files to be committed, run

npm run commit

which launches a dialog to write a commit message in the fashion of Angular's Commit Message Guidelines.

Contact

Triangulum Color Picker is developed by Masa Kudamatsu. You can find me on Twitter (@masa_kudamatsu). Alternatively, email me at masakudamatsu[at]gmail.com

License

License: MIT

About

A front-end web app to pick a tint/tone/shade of hues more logically and more intuitively than the standard color pickers

Topics

Resources

License

Stars

Watchers

Forks