Skip to content

Commit 2d229cb

Browse files
committed
use culori instead of chroma-js
1 parent 039935a commit 2d229cb

File tree

15 files changed

+4192
-10184
lines changed

15 files changed

+4192
-10184
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
uses: JamesIves/[email protected]
1919
with:
2020
branch: gh-pages # The branch the action should deploy to.
21-
folder: dist # The folder the action should deploy.
21+
folder: dist # The folder the action should deploy.

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,24 @@ Color-Description is a class that turns a technical color representation into a
55
## Installation
66

77
`npm install color-description`
8+
89
## Usage
910

1011
```js
11-
import ColorDescription from 'color-description/dist/index.esm';
12+
import ColorDescription from "color-description/dist/index.esm";
1213

13-
console.log(ColorDescription)
14+
console.log(ColorDescription);
1415

15-
const cd = new ColorDescription('#ffffff');
16+
const cd = new ColorDescription("#ffffff");
1617

17-
console.log(cd.getDescriptiveList())
18+
console.log(cd.getDescriptiveList());
1819
/**
1920
* pale, light, faded, delicate, glistening, bleached, neutral colorless, bright, briliant and high
2021
**/
2122

22-
cd.color = 'red';
23+
cd.color = "red";
2324

24-
console.log(cd.getDescriptiveList())
25+
console.log(cd.getDescriptiveList());
2526
/**
2627
* saturated, strong, lush, ablaze, beaming, bold, brilliant, flamboyant, vibrant, vivid, loud, very saturated, warm, mellow, red and reddish
2728
**/
@@ -39,7 +40,7 @@ https://github.com/words/color-description/blob/21ffa6b522f1751b471907aac4173acd
3940
- [colorpsychology.org](https://www.colorpsychology.org/)
4041
- [Color Poster](https://graf1x.com/color-psychology-emotion-meaning-poster/)
4142
- [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.)
42-
43+
4344
### Named Primary, Secondary and Tertiary Colors
4445

4546
- [Named color wheel](https://en.wikipedia.org/wiki/Hue#24_hues_of_HSL/HSV)

dist/index.esm.js

Lines changed: 4 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)