Skip to content

Commit

Permalink
use culori instead of chroma-js
Browse files Browse the repository at this point in the history
  • Loading branch information
meodai committed Oct 13, 2024
1 parent 039935a commit 2d229cb
Show file tree
Hide file tree
Showing 15 changed files with 4,192 additions and 10,184 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
folder: dist # The folder the action should deploy.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@ Color-Description is a class that turns a technical color representation into a
## Installation

`npm install color-description`

## Usage

```js
import ColorDescription from 'color-description/dist/index.esm';
import ColorDescription from "color-description/dist/index.esm";

console.log(ColorDescription)
console.log(ColorDescription);

const cd = new ColorDescription('#ffffff');
const cd = new ColorDescription("#ffffff");

console.log(cd.getDescriptiveList())
console.log(cd.getDescriptiveList());
/**
* pale, light, faded, delicate, glistening, bleached, neutral colorless, bright, briliant and high
**/

cd.color = 'red';
cd.color = "red";

console.log(cd.getDescriptiveList())
console.log(cd.getDescriptiveList());
/**
* saturated, strong, lush, ablaze, beaming, bold, brilliant, flamboyant, vibrant, vivid, loud, very saturated, warm, mellow, red and reddish
**/
Expand All @@ -39,7 +40,7 @@ https://github.com/words/color-description/blob/21ffa6b522f1751b471907aac4173acd
- [colorpsychology.org](https://www.colorpsychology.org/)
- [Color Poster](https://graf1x.com/color-psychology-emotion-meaning-poster/)
- [Wikipedia](https://en.wikipedia.org/wiki/Color_psychology#:~:text=Color%20psychology%20is%20the%20study,as%20the%20taste%20of%20food.&text=Colors%20can%20also%20enhance%20the,are%20generally%20used%20as%20stimulants.)

### Named Primary, Secondary and Tertiary Colors

- [Named color wheel](https://en.wikipedia.org/wiki/Hue#24_hues_of_HSL/HSV)
Expand Down
61 changes: 4 additions & 57 deletions dist/index.esm.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2d229cb

Please sign in to comment.