@thi.ng/color-palettes 0.5.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,87 +1,88 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [0.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color-palettes@0.4.3...@thi.ng/color-palettes@0.5.0) (2021-10-25)
7
-
8
-
9
- ### Features
10
-
11
- * **color-palettes:** add 30+ new palettes ([a33ea48](https://github.com/thi-ng/umbrella/commit/a33ea48822e6e6fd4da5da40f719b2f19d1adfaa))
12
-
13
-
14
-
15
-
16
-
17
- ## [0.4.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/color-palettes@0.4.2...@thi.ng/color-palettes@0.4.3) (2021-10-15)
18
-
19
- **Note:** Version bump only for package @thi.ng/color-palettes
20
-
21
-
22
-
23
-
24
-
25
- ## [0.4.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/color-palettes@0.4.1...@thi.ng/color-palettes@0.4.2) (2021-10-15)
26
-
27
- **Note:** Version bump only for package @thi.ng/color-palettes
28
-
29
-
30
-
31
-
32
-
33
- ## [0.4.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/color-palettes@0.4.0...@thi.ng/color-palettes@0.4.1) (2021-10-13)
34
-
35
- **Note:** Version bump only for package @thi.ng/color-palettes
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
36
5
 
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
37
8
 
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
38
11
 
12
+ ## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.6.0) (2021-11-17)
39
13
 
14
+ #### 🚀 Features
40
15
 
41
- # [0.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color-palettes@0.3.0...@thi.ng/color-palettes@0.4.0) (2021-10-12)
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
21
+ - add new themes, update swatch gen ([69f269a](https://github.com/thi-ng/umbrella/commit/69f269a))
22
+ - update readme, add table w/ recent additions
42
23
 
24
+ #### ♻️ Refactoring
43
25
 
44
- ### Build System
26
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
27
+ this commit reverts (partly) changes made in:
28
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
29
+ overall purpose is better testament ergonomics:
30
+ instead of having to pass NODE_OPTIONS with every invocation
31
+ having a binary to handle this for us.
45
32
 
46
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
33
+ ## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.5.0) (2021-10-25)
47
34
 
35
+ #### 🚀 Features
48
36
 
49
- ### BREAKING CHANGES
37
+ - add 30+ new palettes ([a33ea48](https://github.com/thi-ng/umbrella/commit/a33ea48))
50
38
 
51
- * discontinue CommonJS & UMD versions
39
+ ### [0.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.4.1) (2021-10-13)
52
40
 
53
- - only ESM modules will be published from now on
54
- - CJS obsolete due to ESM support in recent versions of node:
55
- - i.e. launch NodeJS via:
56
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
57
- - in the node REPL use `await import(...)` instead of `require()`
58
- - UMD obsolete due to widespread browser support for ESM
41
+ #### ♻️ Refactoring
59
42
 
60
- Also:
61
- - normalize/restructure/reorg all package.json files
62
- - cleanup all build scripts, remove obsolete
63
- - switch from mocha to @thi.ng/testament for all tests
43
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
64
44
 
45
+ ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.4.0) (2021-10-12)
65
46
 
47
+ #### 🛑 Breaking changes
66
48
 
49
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
50
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
51
+ - only ESM modules will be published from now on
52
+ - CJS obsolete due to ESM support in recent versions of node:
53
+ - i.e. launch NodeJS via:
54
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
55
+ - in the node REPL use `await import(...)` instead of `require()`
56
+ - UMD obsolete due to widespread browser support for ESM
57
+ Also:
58
+ - normalize/restructure/reorg all package.json files
59
+ - cleanup all build scripts, remove obsolete
60
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
67
61
 
62
+ #### ♻️ Refactoring
68
63
 
64
+ - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
65
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
66
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
69
67
 
70
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color-palettes@0.2.0...@thi.ng/color-palettes@0.3.0) (2021-08-24)
68
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.3.0) (2021-08-24)
71
69
 
72
- ### Features
70
+ #### 🚀 Features
73
71
 
74
- - **color-palettes:** add new palettes, update readme ([14f2952](https://github.com/thi-ng/umbrella/commit/14f29523554b82540bba020d52d6fffde8347348))
75
- - **color-palettes:** update/simplify swatch gen ([3187949](https://github.com/thi-ng/umbrella/commit/31879491ed4b59e4d91c818939f9c9beee980779))
72
+ - add new palettes, update readme ([14f2952](https://github.com/thi-ng/umbrella/commit/14f2952))
73
+ - update/simplify swatch gen ([3187949](https://github.com/thi-ng/umbrella/commit/3187949))
76
74
 
77
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color-palettes@0.1.0...@thi.ng/color-palettes@0.2.0) (2021-08-22)
75
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.2.0) (2021-08-22)
78
76
 
79
- ### Features
77
+ #### 🚀 Features
80
78
 
81
- - **color-palettes:** add more palettes, update gen ([ba4057c](https://github.com/thi-ng/umbrella/commit/ba4057c4f1bfe4d093674c953080ae84fd92a531))
79
+ - add more palettes, update gen ([ba4057c](https://github.com/thi-ng/umbrella/commit/ba4057c))
80
+ - add more themes from various collections
81
+ - sort all themes by their KSUID
82
+ - minor refactor swatch gen
82
83
 
83
- # 0.1.0 (2021-08-21)
84
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.1.0) (2021-08-21)
84
85
 
85
- ### Features
86
+ #### 🚀 Features
86
87
 
87
- - **color-palettes:** add as new pkg, add assets & swatch gen ([9d1bb17](https://github.com/thi-ng/umbrella/commit/9d1bb17b4373a0cbe43705a41a4cbce353999c7e))
88
+ - add as new pkg, add assets & swatch gen ([9d1bb17](https://github.com/thi-ng/umbrella/commit/9d1bb17))
package/README.md CHANGED
@@ -10,82 +10,42 @@ This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
11
11
 
12
12
  - [About](#about)
13
+ - [Recent additions](#recent-additions)
14
+ - [All themes](#all-themes)
15
+ - [Strong](#strong)
16
+ - [Medium](#medium)
17
+ - [Soft](#soft)
13
18
  - [Status](#status)
14
19
  - [Installation](#installation)
15
20
  - [Dependencies](#dependencies)
16
21
  - [Usage examples](#usage-examples)
17
22
  - [Available palettes](#available-palettes)
18
23
  - [Usage](#usage)
19
- - [Strong](#strong)
20
- - [Medium](#medium)
21
- - [Soft](#soft)
22
24
  - [Authors](#authors)
23
25
  - [License](#license)
24
26
 
25
27
  ## About
26
28
 
27
- Collection of 132 image based color palettes. This is a support package for [@thi.ng/color](https://github.com/thi-ng/umbrella/tree/develop/packages/color).
28
-
29
- ### Status
30
-
31
- **STABLE** - used in production
32
-
33
- [Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Bcolor-palettes%5D+in%3Atitle)
34
-
35
- ## Installation
29
+ Collection of 142 image based color palettes. This is a support package for [@thi.ng/color](https://github.com/thi-ng/umbrella/tree/develop/packages/color).
36
30
 
37
- ```bash
38
- yarn add @thi.ng/color-palettes
39
- ```
40
-
41
- ES module import:
42
-
43
- ```html
44
- <script type="module" src="https://cdn.skypack.dev/@thi.ng/color-palettes"></script>
45
- ```
46
-
47
- [Skypack documentation](https://docs.skypack.dev/)
48
-
49
- For Node.js REPL:
50
-
51
- ```text
52
- # with flag only for < v16
53
- node --experimental-repl-await
31
+ ## Recent additions
54
32
 
55
- > const colorPalettes = await import("@thi.ng/color-palettes");
56
- ```
57
-
58
- Package sizes (gzipped, pre-treeshake): ESM: 5.31 KB
59
-
60
- ## Dependencies
61
-
62
- None
63
-
64
- ## Usage examples
65
-
66
- Several demos in this repo's
67
- [/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
68
- directory are using this package.
69
-
70
- A selection:
71
-
72
- | Screenshot | Description | Live demo | Source |
73
- |:---------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------|:----------------------------------------------------|:---------------------------------------------------------------------------------|
74
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/pixel-indexed.jpg" width="240"/> | Image dithering and remapping using indexed palettes | [Demo](https://demo.thi.ng/umbrella/pixel-indexed/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/pixel-indexed) |
75
-
76
- ## Available palettes
77
-
78
- ### Usage
79
-
80
- ```ts
81
- import { THEMES } from "@thi.ng/color-palettes";
82
-
83
- const theme = THEMES["00bYahDYU6E7wDJwL"];
84
- ```
33
+ | Preset | Swatches |
34
+ |:--------------------|:-----------------------------------------------------------------------------------------------------------|
35
+ | `00sz5Uxo4ByGDH6tQ` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00sz5Uxo4ByGDH6tQ.svg) |
36
+ | `00sz7CFkl88HCRtUW` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00sz7CFkl88HCRtUW.svg) |
37
+ | `00sz9mhhmiZmgR9r6` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00sz9mhhmiZmgR9r6.svg) |
38
+ | `00t03UwzLJ4HO8u5o` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00t03UwzLJ4HO8u5o.svg) |
39
+ | `00tAmMznURg0qH4jp` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAmMznURg0qH4jp.svg) |
40
+ | `00tAnftt5xsJlMhDZ` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAnftt5xsJlMhDZ.svg) |
41
+ | `00tAq6qSD1erL65L8` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAq6qSD1erL65L8.svg) |
42
+ | `00tAsz6uflx4ciwdA` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAsz6uflx4ciwdA.svg) |
43
+ | `00tAuOG3R9ivBX2gO` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAuOG3R9ivBX2gO.svg) |
44
+ | `00tAvqx4Pm26XfKhx` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAvqx4Pm26XfKhx.svg) |
85
45
 
86
- Also see the [swatch generator](https://github.com/thi-ng/umbrella/blob/develop/packages/color-palettes/tools/index.ts) as usage example...
46
+ ## All themes
87
47
 
88
- Below the color themes are shown **sorted by median LCH chromacity**:
48
+ Below all color palettes are shown **sorted by median LCH chromacity**:
89
49
 
90
50
  (Please note that for some reason (likely color profile related) Google Chrome
91
51
  shows the more saturated colors much more muted than they actually are/should
@@ -98,6 +58,7 @@ be. Any pointers to workarounds/solutions are appreciated...):
98
58
  | `00Q9Yxm7DrZXqTkyS` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00Q9Yxm7DrZXqTkyS.svg) |
99
59
  | `00QMA8h2BH69zyEk0` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMA8h2BH69zyEk0.svg) |
100
60
  | `00QLn7G59JhKtuUs0` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QLn7G59JhKtuUs0.svg) |
61
+ | `00tAuOG3R9ivBX2gO` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAuOG3R9ivBX2gO.svg) |
101
62
  | `00QLNIQXmbJgghRXg` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QLNIQXmbJgghRXg.svg) |
102
63
  | `00QLNHv6JW1bL031O` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QLNHv6JW1bL031O.svg) |
103
64
  | `00qIR1FROo31bNduE` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00qIR1FROo31bNduE.svg) |
@@ -131,6 +92,7 @@ be. Any pointers to workarounds/solutions are appreciated...):
131
92
  | `00qAPJgQvoDkRkQTN` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00qAPJgQvoDkRkQTN.svg) |
132
93
  | `00iGNInM4y8vS5Aon` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00iGNInM4y8vS5Aon.svg) |
133
94
  | `00PhGSfzpeU5Bkh47a` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00PhGSfzpeU5Bkh47a.svg) |
95
+ | `00sz7CFkl88HCRtUW` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00sz7CFkl88HCRtUW.svg) |
134
96
  | `00RlTJrw94KFOF3zL` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00RlTJrw94KFOF3zL.svg) |
135
97
  | `00RGly9mkWt6i3suLa` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00RGly9mkWt6i3suLa.svg) |
136
98
  | `00bYahKZ8LbVgx54y` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00bYahKZ8LbVgx54y.svg) |
@@ -155,8 +117,10 @@ be. Any pointers to workarounds/solutions are appreciated...):
155
117
  | `00QMEZhEMNGnZZxL4` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMEZhEMNGnZZxL4.svg) |
156
118
  | `00QLfPusSpy3uFOpb` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QLfPusSpy3uFOpb.svg) |
157
119
  | `00QMA8iIbk7Biajay` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMA8iIbk7Biajay.svg) |
120
+ | `00t03UwzLJ4HO8u5o` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00t03UwzLJ4HO8u5o.svg) |
158
121
  | `00bYah8QOLZNgszuV` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00bYah8QOLZNgszuV.svg) |
159
122
  | `00qIIS5LLApenMByv` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00qIIS5LLApenMByv.svg) |
123
+ | `00tAvqx4Pm26XfKhx` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAvqx4Pm26XfKhx.svg) |
160
124
  | `00i0iHXq6xPzf1pt0` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00i0iHXq6xPzf1pt0.svg) |
161
125
  | `00qIG1KwWOlIJkB81` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00qIG1KwWOlIJkB81.svg) |
162
126
  | `00RYyJ25i8zFwOJGh` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00RYyJ25i8zFwOJGh.svg) |
@@ -165,7 +129,9 @@ be. Any pointers to workarounds/solutions are appreciated...):
165
129
  | `00bYcixZkofJhLJ8w` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00bYcixZkofJhLJ8w.svg) |
166
130
  | `00RTRDOtbFF8KFNH9` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00RTRDOtbFF8KFNH9.svg) |
167
131
  | `00QMA8tedClukB7IL` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMA8tedClukB7IL.svg) |
132
+ | `00tAq6qSD1erL65L8` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAq6qSD1erL65L8.svg) |
168
133
  | `00QMSSEJXJOUdMoSj` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMSSEJXJOUdMoSj.svg) |
134
+ | `00sz9mhhmiZmgR9r6` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00sz9mhhmiZmgR9r6.svg) |
169
135
  | `00RYyJ4jHYfMF6yfy` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00RYyJ4jHYfMF6yfy.svg) |
170
136
  | `00qHzDGNbubSeZXrS` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00qHzDGNbubSeZXrS.svg) |
171
137
  | `00QMSSK2AEOwErS5M` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMSSK2AEOwErS5M.svg) |
@@ -173,6 +139,7 @@ be. Any pointers to workarounds/solutions are appreciated...):
173
139
  | `00QMEZSYbyUNt0041` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMEZSYbyUNt0041.svg) |
174
140
  | `00bYcivY8Jqx8nsiR` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00bYcivY8Jqx8nsiR.svg) |
175
141
  | `00OkEXVdMQmQ1oQTp` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00OkEXVdMQmQ1oQTp.svg) |
142
+ | `00sz5Uxo4ByGDH6tQ` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00sz5Uxo4ByGDH6tQ.svg) |
176
143
  | `00i0iHUSVMHOENQof` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00i0iHUSVMHOENQof.svg) |
177
144
  | `00RlTJxJZ16ivgKBw` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00RlTJxJZ16ivgKBw.svg) |
178
145
  | `00RGlyFVinQl5cj21` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00RGlyFVinQl5cj21.svg) |
@@ -201,7 +168,9 @@ be. Any pointers to workarounds/solutions are appreciated...):
201
168
  | `00QMEZzTrk06iVgaK` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMEZzTrk06iVgaK.svg) |
202
169
  | `00QLNIKFhjs5rJCjr` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QLNIKFhjs5rJCjr.svg) |
203
170
  | `00QLj3PylHkh8qY2R` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QLj3PylHkh8qY2R.svg) |
171
+ | `00tAsz6uflx4ciwdA` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAsz6uflx4ciwdA.svg) |
204
172
  | `00bYcj0VC9wmmKNm5` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00bYcj0VC9wmmKNm5.svg) |
173
+ | `00tAmMznURg0qH4jp` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAmMznURg0qH4jp.svg) |
205
174
  | `00bYiYyzA6ODPIC8V` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00bYiYyzA6ODPIC8V.svg) |
206
175
  | `00QMxewR6IS5vyatN` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMxewR6IS5vyatN.svg) |
207
176
  | `00qAZjyY6S1ycz77W` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00qAZjyY6S1ycz77W.svg) |
@@ -215,6 +184,7 @@ be. Any pointers to workarounds/solutions are appreciated...):
215
184
  | `00qHekwxmgUGlfAWi` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00qHekwxmgUGlfAWi.svg) |
216
185
  | `00RTRDIzyUse2qJ9N` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00RTRDIzyUse2qJ9N.svg) |
217
186
  | `00QLn7oETUQZKKr34` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QLn7oETUQZKKr34.svg) |
187
+ | `00tAnftt5xsJlMhDZ` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00tAnftt5xsJlMhDZ.svg) |
218
188
  | `00QMSSCjsJpojbpYza` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QMSSCjsJpojbpYza.svg) |
219
189
  | `00qAPJgiiIyY8shVo` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00qAPJgiiIyY8shVo.svg) |
220
190
  | `00QLslJAGNA8YREKh` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QLslJAGNA8YREKh.svg) |
@@ -238,6 +208,65 @@ be. Any pointers to workarounds/solutions are appreciated...):
238
208
  | `00qAZk070SYGij58C` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00qAZk070SYGij58C.svg) |
239
209
  | `00QLfPkuNx1jE7sMm` | ![](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/color-palettes/00QLfPkuNx1jE7sMm.svg) |
240
210
 
211
+ ### Status
212
+
213
+ **STABLE** - used in production
214
+
215
+ [Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Bcolor-palettes%5D+in%3Atitle)
216
+
217
+ ## Installation
218
+
219
+ ```bash
220
+ yarn add @thi.ng/color-palettes
221
+ ```
222
+
223
+ ES module import:
224
+
225
+ ```html
226
+ <script type="module" src="https://cdn.skypack.dev/@thi.ng/color-palettes"></script>
227
+ ```
228
+
229
+ [Skypack documentation](https://docs.skypack.dev/)
230
+
231
+ For Node.js REPL:
232
+
233
+ ```text
234
+ # with flag only for < v16
235
+ node --experimental-repl-await
236
+
237
+ > const colorPalettes = await import("@thi.ng/color-palettes");
238
+ ```
239
+
240
+ Package sizes (gzipped, pre-treeshake): ESM: 5.75 KB
241
+
242
+ ## Dependencies
243
+
244
+ None
245
+
246
+ ## Usage examples
247
+
248
+ Several demos in this repo's
249
+ [/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
250
+ directory are using this package.
251
+
252
+ A selection:
253
+
254
+ | Screenshot | Description | Live demo | Source |
255
+ |:---------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------|:----------------------------------------------------|:---------------------------------------------------------------------------------|
256
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/pixel-indexed.jpg" width="240"/> | Image dithering and remapping using indexed palettes | [Demo](https://demo.thi.ng/umbrella/pixel-indexed/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/pixel-indexed) |
257
+
258
+ ## Available palettes
259
+
260
+ ### Usage
261
+
262
+ ```ts
263
+ import { THEMES } from "@thi.ng/color-palettes";
264
+
265
+ const theme = THEMES["00bYahDYU6E7wDJwL"];
266
+ ```
267
+
268
+ Also see the [swatch generator](https://github.com/thi-ng/umbrella/blob/develop/packages/color-palettes/tools/index.ts) as usage example...
269
+
241
270
  ## Authors
242
271
 
243
272
  Karsten Schmidt
package/dev/namegen.js ADDED
@@ -0,0 +1,505 @@
1
+ function shuffled(list) {
2
+ var newlist = [];
3
+ for (var i = 0; i < list.length; i++) {
4
+ newlist.push(list[i]);
5
+ }
6
+ for (var i = list.length - 1; i > 0; i--) {
7
+ var tmp = newlist[i];
8
+ var j = randrange(i);
9
+ newlist[i] = newlist[j];
10
+ newlist[j] = tmp;
11
+ }
12
+ return newlist;
13
+ }
14
+
15
+ function choose(list, exponent) {
16
+ exponent = exponent || 1;
17
+ return list[Math.floor(Math.pow(Math.random(), exponent) * list.length)];
18
+ }
19
+
20
+ function randrange(lo, hi) {
21
+ if (hi == undefined) {
22
+ hi = lo;
23
+ lo = 0;
24
+ }
25
+ return Math.floor(Math.random() * (hi - lo)) + lo;
26
+ }
27
+
28
+ function join(list, sep) {
29
+ if (list.length == 0) return "";
30
+ sep = sep || "";
31
+ var s = list[0];
32
+ for (var i = 1; i < list.length; i++) {
33
+ s += sep;
34
+ s += list[i];
35
+ }
36
+ return s;
37
+ }
38
+
39
+ function capitalize(word) {
40
+ return word[0].toUpperCase() + word.slice(1);
41
+ }
42
+
43
+ function spell(lang, syll) {
44
+ if (lang.noortho) return syll;
45
+ var s = "";
46
+ for (var i = 0; i < syll.length; i++) {
47
+ var c = syll[i];
48
+ s += lang.cortho[c] || lang.vortho[c] || defaultOrtho[c] || c;
49
+ }
50
+ return s;
51
+ }
52
+
53
+ function makeSyllable(lang) {
54
+ while (true) {
55
+ var syll = "";
56
+ for (var i = 0; i < lang.structure.length; i++) {
57
+ var ptype = lang.structure[i];
58
+ if (lang.structure[i + 1] == "?") {
59
+ i++;
60
+ if (Math.random() < 0.5) {
61
+ continue;
62
+ }
63
+ }
64
+ syll += choose(lang.phonemes[ptype], lang.exponent);
65
+ }
66
+ var bad = false;
67
+ for (var i = 0; i < lang.restricts.length; i++) {
68
+ if (lang.restricts[i].test(syll)) {
69
+ bad = true;
70
+ break;
71
+ }
72
+ }
73
+ if (bad) continue;
74
+ return spell(lang, syll);
75
+ }
76
+ }
77
+
78
+ function getMorpheme(lang, key) {
79
+ if (lang.nomorph) {
80
+ return makeSyllable(lang);
81
+ }
82
+ key = key || "";
83
+ var list = lang.morphemes[key] || [];
84
+ var extras = 10;
85
+ if (key) extras = 1;
86
+ while (true) {
87
+ var n = randrange(list.length + extras);
88
+ if (list[n]) return list[n];
89
+ var morph = makeSyllable(lang);
90
+ var bad = false;
91
+ for (var k in lang.morphemes) {
92
+ if (lang.morphemes[k].includes(morph)) {
93
+ bad = true;
94
+ break;
95
+ }
96
+ }
97
+ if (bad) continue;
98
+ list.push(morph);
99
+ lang.morphemes[key] = list;
100
+ return morph;
101
+ }
102
+ }
103
+
104
+ function makeWord(lang, key) {
105
+ var nsylls = randrange(lang.minsyll, lang.maxsyll + 1);
106
+ var w = "";
107
+ var keys = [];
108
+ keys[randrange(nsylls)] = key;
109
+ for (var i = 0; i < nsylls; i++) {
110
+ w += getMorpheme(lang, keys[i]);
111
+ }
112
+ return w;
113
+ }
114
+
115
+ function getWord(lang, key) {
116
+ key = key || "";
117
+ var ws = lang.words[key] || [];
118
+ var extras = 3;
119
+ if (key) extras = 2;
120
+ while (true) {
121
+ var n = randrange(ws.length + extras);
122
+ var w = ws[n];
123
+ if (w) {
124
+ return w;
125
+ }
126
+ w = makeWord(lang, key);
127
+ var bad = false;
128
+ for (var k in lang.words) {
129
+ if (lang.words[k].includes(w)) {
130
+ bad = true;
131
+ break;
132
+ }
133
+ }
134
+ if (bad) continue;
135
+ ws.push(w);
136
+ lang.words[key] = ws;
137
+ return w;
138
+ }
139
+ }
140
+ function makeName(lang, key) {
141
+ key = key || "";
142
+ lang.genitive = lang.genitive || getMorpheme(lang, "of");
143
+ lang.definite = lang.definite || getMorpheme(lang, "the");
144
+ while (true) {
145
+ var name = null;
146
+ if (Math.random() < 0.5) {
147
+ name = capitalize(getWord(lang, key));
148
+ } else {
149
+ var w1 = capitalize(getWord(lang, Math.random() < 0.6 ? key : ""));
150
+ var w2 = capitalize(getWord(lang, Math.random() < 0.6 ? key : ""));
151
+ if (w1 == w2) continue;
152
+ if (Math.random() > 0.5) {
153
+ name = join([w1, w2], lang.joiner);
154
+ } else {
155
+ name = join([w1, lang.genitive, w2], lang.joiner);
156
+ }
157
+ }
158
+ if (Math.random() < 0.1) {
159
+ name = join([lang.definite, name], lang.joiner);
160
+ }
161
+
162
+ if (name.length < lang.minchar || name.length > lang.maxchar) continue;
163
+ var used = false;
164
+ for (var i = 0; i < lang.names.length; i++) {
165
+ var name2 = lang.names[i];
166
+ if (name.indexOf(name2) != -1 || name2.indexOf(name) != -1) {
167
+ used = true;
168
+ break;
169
+ }
170
+ }
171
+ if (used) continue;
172
+ lang.names.push(name);
173
+ return name;
174
+ }
175
+ }
176
+
177
+ function makeBasicLanguage() {
178
+ return {
179
+ phonemes: {
180
+ C: "ptkmnls",
181
+ V: "aeiou",
182
+ S: "s",
183
+ F: "mn",
184
+ L: "rl",
185
+ },
186
+ structure: "CVC",
187
+ exponent: 2,
188
+ restricts: [],
189
+ cortho: {},
190
+ vortho: {},
191
+ noortho: true,
192
+ nomorph: true,
193
+ nowordpool: true,
194
+ minsyll: 1,
195
+ maxsyll: 1,
196
+ morphemes: {},
197
+ words: {},
198
+ names: [],
199
+ joiner: " ",
200
+ maxchar: 12,
201
+ minchar: 5,
202
+ };
203
+ }
204
+
205
+ function makeOrthoLanguage() {
206
+ var lang = makeBasicLanguage();
207
+ lang.noortho = false;
208
+ return lang;
209
+ }
210
+
211
+ function makeRandomLanguage() {
212
+ var lang = makeBasicLanguage();
213
+ lang.noortho = false;
214
+ lang.nomorph = false;
215
+ lang.nowordpool = false;
216
+ lang.phonemes.C = shuffled(choose(consets, 2).C);
217
+ lang.phonemes.V = shuffled(choose(vowsets, 2).V);
218
+ lang.phonemes.L = shuffled(choose(lsets, 2).L);
219
+ lang.phonemes.S = shuffled(choose(ssets, 2).S);
220
+ lang.phonemes.F = shuffled(choose(fsets, 2).F);
221
+ lang.structure = choose(syllstructs);
222
+ lang.restricts = ressets[2].res;
223
+ lang.cortho = choose(corthsets, 2).orth;
224
+ lang.vortho = choose(vorthsets, 2).orth;
225
+ lang.minsyll = randrange(1, 3);
226
+ if (lang.structure.length < 3) lang.minsyll++;
227
+ lang.maxsyll = randrange(lang.minsyll + 1, 7);
228
+ lang.joiner = choose(" -");
229
+ return lang;
230
+ }
231
+ var defaultOrtho = {
232
+ ʃ: "sh",
233
+ ʒ: "zh",
234
+ ʧ: "ch",
235
+ ʤ: "j",
236
+ ŋ: "ng",
237
+ j: "y",
238
+ x: "kh",
239
+ ɣ: "gh",
240
+ ʔ: "‘",
241
+ A: "á",
242
+ E: "é",
243
+ I: "í",
244
+ O: "ó",
245
+ U: "ú",
246
+ };
247
+
248
+ var corthsets = [
249
+ {
250
+ name: "Default",
251
+ orth: {},
252
+ },
253
+ {
254
+ name: "Slavic",
255
+ orth: {
256
+ ʃ: "š",
257
+ ʒ: "ž",
258
+ ʧ: "č",
259
+ ʤ: "ǧ",
260
+ j: "j",
261
+ },
262
+ },
263
+ {
264
+ name: "German",
265
+ orth: {
266
+ ʃ: "sch",
267
+ ʒ: "zh",
268
+ ʧ: "tsch",
269
+ ʤ: "dz",
270
+ j: "j",
271
+ x: "ch",
272
+ },
273
+ },
274
+ {
275
+ name: "French",
276
+ orth: {
277
+ ʃ: "ch",
278
+ ʒ: "j",
279
+ ʧ: "tch",
280
+ ʤ: "dj",
281
+ x: "kh",
282
+ },
283
+ },
284
+ {
285
+ name: "Chinese (pinyin)",
286
+ orth: {
287
+ ʃ: "x",
288
+ ʧ: "q",
289
+ ʤ: "j",
290
+ },
291
+ },
292
+ ];
293
+
294
+ var vorthsets = [
295
+ {
296
+ name: "Ácutes",
297
+ orth: {},
298
+ },
299
+ {
300
+ name: "Ümlauts",
301
+ orth: {
302
+ A: "ä",
303
+ E: "ë",
304
+ I: "ï",
305
+ O: "ö",
306
+ U: "ü",
307
+ },
308
+ },
309
+ {
310
+ name: "Welsh",
311
+ orth: {
312
+ A: "â",
313
+ E: "ê",
314
+ I: "y",
315
+ O: "ô",
316
+ U: "w",
317
+ },
318
+ },
319
+ {
320
+ name: "Diphthongs",
321
+ orth: {
322
+ A: "au",
323
+ E: "ei",
324
+ I: "ie",
325
+ O: "ou",
326
+ U: "oo",
327
+ },
328
+ },
329
+ {
330
+ name: "Doubles",
331
+ orth: {
332
+ A: "aa",
333
+ E: "ee",
334
+ I: "ii",
335
+ O: "oo",
336
+ U: "uu",
337
+ },
338
+ },
339
+ ];
340
+
341
+ var consets = [
342
+ {
343
+ name: "Minimal",
344
+ C: "ptkmnls",
345
+ },
346
+ {
347
+ name: "English-ish",
348
+ C: "ptkbdgmnlrsʃzʒʧ",
349
+ },
350
+ {
351
+ name: "Pirahã (very simple)",
352
+ C: "ptkmnh",
353
+ },
354
+ {
355
+ name: "Hawaiian-ish",
356
+ C: "hklmnpwʔ",
357
+ },
358
+ {
359
+ name: "Greenlandic-ish",
360
+ C: "ptkqvsgrmnŋlj",
361
+ },
362
+ {
363
+ name: "Arabic-ish",
364
+ C: "tksʃdbqɣxmnlrwj",
365
+ },
366
+ {
367
+ name: "Arabic-lite",
368
+ C: "tkdgmnsʃ",
369
+ },
370
+ {
371
+ name: "English-lite",
372
+ C: "ptkbdgmnszʒʧhjw",
373
+ },
374
+ ];
375
+
376
+ var ssets = [
377
+ {
378
+ name: "Just s",
379
+ S: "s",
380
+ },
381
+ {
382
+ name: "s ʃ",
383
+ S: "sʃ",
384
+ },
385
+ {
386
+ name: "s ʃ f",
387
+ S: "sʃf",
388
+ },
389
+ ];
390
+
391
+ var lsets = [
392
+ {
393
+ name: "r l",
394
+ L: "rl",
395
+ },
396
+ {
397
+ name: "Just r",
398
+ L: "r",
399
+ },
400
+ {
401
+ name: "Just l",
402
+ L: "l",
403
+ },
404
+ {
405
+ name: "w j",
406
+ L: "wj",
407
+ },
408
+ {
409
+ name: "r l w j",
410
+ L: "rlwj",
411
+ },
412
+ ];
413
+
414
+ var fsets = [
415
+ {
416
+ name: "m n",
417
+ F: "mn",
418
+ },
419
+ {
420
+ name: "s k",
421
+ F: "sk",
422
+ },
423
+ {
424
+ name: "m n ŋ",
425
+ F: "mnŋ",
426
+ },
427
+ {
428
+ name: "s ʃ z ʒ",
429
+ F: "sʃzʒ",
430
+ },
431
+ ];
432
+
433
+ var vowsets = [
434
+ {
435
+ name: "Standard 5-vowel",
436
+ V: "aeiou",
437
+ },
438
+ {
439
+ name: "3-vowel a i u",
440
+ V: "aiu",
441
+ },
442
+ {
443
+ name: "Extra A E I",
444
+ V: "aeiouAEI",
445
+ },
446
+ {
447
+ name: "Extra U",
448
+ V: "aeiouU",
449
+ },
450
+ {
451
+ name: "5-vowel a i u A I",
452
+ V: "aiuAI",
453
+ },
454
+ {
455
+ name: "3-vowel e o u",
456
+ V: "eou",
457
+ },
458
+ {
459
+ name: "Extra A O U",
460
+ V: "aeiouAOU",
461
+ },
462
+ ];
463
+
464
+ var syllstructs = [
465
+ "CVC",
466
+ "CVV?C",
467
+ "CVVC?",
468
+ "CVC?",
469
+ "CV",
470
+ "VC",
471
+ "CVF",
472
+ "C?VC",
473
+ "CVF?",
474
+ "CL?VC",
475
+ "CL?VF",
476
+ "S?CVC",
477
+ "S?CVF",
478
+ "S?CVC?",
479
+ "C?VF",
480
+ "C?VC?",
481
+ "C?VF?",
482
+ "C?L?VC",
483
+ "VC",
484
+ "CVL?C?",
485
+ "C?VL?C",
486
+ "C?VLC?",
487
+ ];
488
+
489
+ var ressets = [
490
+ {
491
+ name: "None",
492
+ res: [],
493
+ },
494
+ {
495
+ name: "Double sounds",
496
+ res: [/(.)\1/],
497
+ },
498
+ {
499
+ name: "Doubles and hard clusters",
500
+ res: [/[sʃf][sʃ]/, /(.)\1/, /[rl][rl]/],
501
+ },
502
+ ];
503
+
504
+ exports.makeRandomLanguage = makeRandomLanguage;
505
+ exports.makeName = makeName;
package/index.d.ts CHANGED
@@ -131,5 +131,15 @@ export declare const THEMES: {
131
131
  "00qILiVShgC82zOHm": string[];
132
132
  "00qIPBCHil9FW2idX": string[];
133
133
  "00qIR1FROo31bNduE": string[];
134
+ "00sz5Uxo4ByGDH6tQ": string[];
135
+ "00sz7CFkl88HCRtUW": string[];
136
+ "00sz9mhhmiZmgR9r6": string[];
137
+ "00t03UwzLJ4HO8u5o": string[];
138
+ "00tAmMznURg0qH4jp": string[];
139
+ "00tAnftt5xsJlMhDZ": string[];
140
+ "00tAq6qSD1erL65L8": string[];
141
+ "00tAsz6uflx4ciwdA": string[];
142
+ "00tAuOG3R9ivBX2gO": string[];
143
+ "00tAvqx4Pm26XfKhx": string[];
134
144
  };
135
145
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1056,4 +1056,84 @@ export const THEMES = {
1056
1056
  "#e4d8d2",
1057
1057
  "#f2f4eb",
1058
1058
  ],
1059
+ "00sz5Uxo4ByGDH6tQ": [
1060
+ "#091b0f",
1061
+ "#1d4219",
1062
+ "#4a5c1e",
1063
+ "#6cb7cf",
1064
+ "#a6dae0",
1065
+ "#e8bc7f",
1066
+ ],
1067
+ "00sz7CFkl88HCRtUW": [
1068
+ "#2f0b0e",
1069
+ "#5e282a",
1070
+ "#ad3a3f",
1071
+ "#e55a54",
1072
+ "#f9c3d5",
1073
+ "#f89b6a",
1074
+ ],
1075
+ "00sz9mhhmiZmgR9r6": [
1076
+ "#f29269",
1077
+ "#e8c1ac",
1078
+ "#856412",
1079
+ "#3e2e0c",
1080
+ "#436779",
1081
+ "#acc9e6",
1082
+ ],
1083
+ "00t03UwzLJ4HO8u5o": [
1084
+ "#674ca2",
1085
+ "#8bbbd9",
1086
+ "#736a62",
1087
+ "#e3d9d0",
1088
+ "#d9bb84",
1089
+ "#f25041",
1090
+ ],
1091
+ "00tAmMznURg0qH4jp": [
1092
+ "#0e0b0c",
1093
+ "#697289",
1094
+ "#634e4b",
1095
+ "#772809",
1096
+ "#d75314",
1097
+ "#e7dfd6",
1098
+ ],
1099
+ "00tAnftt5xsJlMhDZ": [
1100
+ "#083034",
1101
+ "#2d4d4d",
1102
+ "#9d988e",
1103
+ "#cfd0ce",
1104
+ "#fbc47f",
1105
+ "#d98f4d",
1106
+ ],
1107
+ "00tAq6qSD1erL65L8": [
1108
+ "#161212",
1109
+ "#03515f",
1110
+ "#884027",
1111
+ "#d87945",
1112
+ "#ad9d92",
1113
+ "#d1d2d2",
1114
+ ],
1115
+ "00tAsz6uflx4ciwdA": [
1116
+ "#1f2332",
1117
+ "#47363b",
1118
+ "#716476",
1119
+ "#9d8f92",
1120
+ "#f06b14",
1121
+ "#feb627",
1122
+ ],
1123
+ "00tAuOG3R9ivBX2gO": [
1124
+ "#7a0c04",
1125
+ "#bb2605",
1126
+ "#eb600c",
1127
+ "#faaa27",
1128
+ "#1b1e1a",
1129
+ "#414a47",
1130
+ ],
1131
+ "00tAvqx4Pm26XfKhx": [
1132
+ "#34240b",
1133
+ "#7c7e77",
1134
+ "#cf8f17",
1135
+ "#b2daed",
1136
+ "#2ca6d6",
1137
+ "#0c4f6a",
1138
+ ],
1059
1139
  };
package/package.json CHANGED
@@ -1,70 +1,75 @@
1
1
  {
2
- "name": "@thi.ng/color-palettes",
3
- "version": "0.5.0",
4
- "description": "Collection of 132 image based color palettes",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
2
+ "name": "@thi.ng/color-palettes",
3
+ "version": "0.6.2",
4
+ "description": "Collection of 142 image based color palettes",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/color-palettes#readme",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
12
18
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/color-palettes#readme",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- }
23
- ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
25
- "license": "Apache-2.0",
26
- "scripts": {
27
- "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf *.js *.d.ts *.map doc",
29
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test",
35
- "tool:swatches": "../../scripts/node-esm tools/index.ts"
36
- },
37
- "devDependencies": {
38
- "@thi.ng/testament": "^0.1.4"
39
- },
40
- "keywords": [
41
- "css",
42
- "color",
43
- "dominant",
44
- "image",
45
- "palette",
46
- "rgb",
47
- "theme",
48
- "typescript"
49
- ],
50
- "publishConfig": {
51
- "access": "public"
52
- },
53
- "engines": {
54
- "node": ">=12.7"
55
- },
56
- "files": [
57
- "*.js",
58
- "*.d.ts"
59
- ],
60
- "exports": {
61
- ".": {
62
- "import": "./index.js"
63
- }
64
- },
65
- "thi.ng": {
66
- "parent": "@thi.ng/color",
67
- "year": 2021
68
- },
69
- "gitHead": "9ff00a103f76cc4917ef3f244132e218f2300a05"
70
- }
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ }
23
+ ],
24
+ "author": "Karsten Schmidt <k+npm@thi.ng>",
25
+ "license": "Apache-2.0",
26
+ "scripts": {
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
+ "doc:readme": "yarn doc:stats && tools:readme",
32
+ "doc:stats": "tools:module-stats",
33
+ "pub": "yarn npm publish --access public",
34
+ "test": "testament test",
35
+ "tool:swatches": "tools:node-esm tools/index.ts"
36
+ },
37
+ "devDependencies": {
38
+ "@microsoft/api-extractor": "^7.18.19",
39
+ "@thi.ng/testament": "^0.2.2",
40
+ "rimraf": "^3.0.2",
41
+ "tools": "^0.0.1",
42
+ "typedoc": "^0.22.9",
43
+ "typescript": "^4.5.2"
44
+ },
45
+ "keywords": [
46
+ "css",
47
+ "color",
48
+ "dominant",
49
+ "image",
50
+ "palette",
51
+ "rgb",
52
+ "theme",
53
+ "typescript"
54
+ ],
55
+ "publishConfig": {
56
+ "access": "public"
57
+ },
58
+ "engines": {
59
+ "node": ">=12.7"
60
+ },
61
+ "files": [
62
+ "*.js",
63
+ "*.d.ts"
64
+ ],
65
+ "exports": {
66
+ ".": {
67
+ "import": "./index.js"
68
+ }
69
+ },
70
+ "thi.ng": {
71
+ "parent": "@thi.ng/color",
72
+ "year": 2021
73
+ },
74
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
75
+ }