@thi.ng/color-palettes 0.5.2 → 0.7.0
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 +64 -69
- package/README.md +108 -63
- package/dev/namegen.js +505 -0
- package/index.d.ts +18 -0
- package/index.js +144 -0
- package/package.json +73 -68
package/CHANGELOG.md
CHANGED
|
@@ -1,103 +1,98 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## [0.5.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/color-palettes@0.5.1...@thi.ng/color-palettes@0.5.2) (2021-10-28)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @thi.ng/color-palettes
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.5.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/color-palettes@0.5.0...@thi.ng/color-palettes@0.5.1) (2021-10-28)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @thi.ng/color-palettes
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# [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)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Features
|
|
26
|
-
|
|
27
|
-
* **color-palettes:** add 30+ new palettes ([a33ea48](https://github.com/thi-ng/umbrella/commit/a33ea48822e6e6fd4da5da40f719b2f19d1adfaa))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## [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)
|
|
34
|
-
|
|
35
|
-
**Note:** Version bump only for package @thi.ng/color-palettes
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [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)
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @thi.ng/color-palettes
|
|
44
|
-
|
|
3
|
+
- **Last updated**: 2021-12-02T00:12:39Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
45
5
|
|
|
6
|
+
All notable changes to this project will be documented in this file.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
46
8
|
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
47
11
|
|
|
12
|
+
## [0.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.7.0) (2021-12-02)
|
|
48
13
|
|
|
49
|
-
|
|
14
|
+
#### 🚀 Features
|
|
50
15
|
|
|
51
|
-
|
|
16
|
+
- add new palettes, update readme ([0fd1b25](https://github.com/thi-ng/umbrella/commit/0fd1b25))
|
|
52
17
|
|
|
18
|
+
#### 🩹 Bug fixes
|
|
53
19
|
|
|
20
|
+
- add missing colors ([112ba7e](https://github.com/thi-ng/umbrella/commit/112ba7e))
|
|
54
21
|
|
|
22
|
+
## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.6.0) (2021-11-17)
|
|
55
23
|
|
|
24
|
+
#### 🚀 Features
|
|
56
25
|
|
|
57
|
-
|
|
26
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
27
|
+
Improving the overall build ergonomics
|
|
28
|
+
- introduced a tools workspaces
|
|
29
|
+
- imported it in all needed packages/examples
|
|
30
|
+
- inclusive project root
|
|
31
|
+
- add new themes, update swatch gen ([69f269a](https://github.com/thi-ng/umbrella/commit/69f269a))
|
|
32
|
+
- update readme, add table w/ recent additions
|
|
58
33
|
|
|
34
|
+
#### ♻️ Refactoring
|
|
59
35
|
|
|
60
|
-
|
|
36
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
37
|
+
this commit reverts (partly) changes made in:
|
|
38
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
39
|
+
overall purpose is better testament ergonomics:
|
|
40
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
41
|
+
having a binary to handle this for us.
|
|
61
42
|
|
|
62
|
-
|
|
43
|
+
## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.5.0) (2021-10-25)
|
|
63
44
|
|
|
45
|
+
#### 🚀 Features
|
|
64
46
|
|
|
65
|
-
|
|
47
|
+
- add 30+ new palettes ([a33ea48](https://github.com/thi-ng/umbrella/commit/a33ea48))
|
|
66
48
|
|
|
67
|
-
|
|
49
|
+
### [0.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.4.1) (2021-10-13)
|
|
68
50
|
|
|
69
|
-
|
|
70
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
71
|
-
- i.e. launch NodeJS via:
|
|
72
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
73
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
74
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
51
|
+
#### ♻️ Refactoring
|
|
75
52
|
|
|
76
|
-
|
|
77
|
-
- normalize/restructure/reorg all package.json files
|
|
78
|
-
- cleanup all build scripts, remove obsolete
|
|
79
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
53
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
80
54
|
|
|
55
|
+
## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.4.0) (2021-10-12)
|
|
81
56
|
|
|
57
|
+
#### 🛑 Breaking changes
|
|
82
58
|
|
|
59
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
60
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
61
|
+
- only ESM modules will be published from now on
|
|
62
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
63
|
+
- i.e. launch NodeJS via:
|
|
64
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
65
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
66
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
67
|
+
Also:
|
|
68
|
+
- normalize/restructure/reorg all package.json files
|
|
69
|
+
- cleanup all build scripts, remove obsolete
|
|
70
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
83
71
|
|
|
72
|
+
#### ♻️ Refactoring
|
|
84
73
|
|
|
74
|
+
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
75
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
76
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
85
77
|
|
|
86
|
-
|
|
78
|
+
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.3.0) (2021-08-24)
|
|
87
79
|
|
|
88
|
-
|
|
80
|
+
#### 🚀 Features
|
|
89
81
|
|
|
90
|
-
-
|
|
91
|
-
-
|
|
82
|
+
- add new palettes, update readme ([14f2952](https://github.com/thi-ng/umbrella/commit/14f2952))
|
|
83
|
+
- update/simplify swatch gen ([3187949](https://github.com/thi-ng/umbrella/commit/3187949))
|
|
92
84
|
|
|
93
|
-
|
|
85
|
+
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.2.0) (2021-08-22)
|
|
94
86
|
|
|
95
|
-
|
|
87
|
+
#### 🚀 Features
|
|
96
88
|
|
|
97
|
-
-
|
|
89
|
+
- add more palettes, update gen ([ba4057c](https://github.com/thi-ng/umbrella/commit/ba4057c))
|
|
90
|
+
- add more themes from various collections
|
|
91
|
+
- sort all themes by their KSUID
|
|
92
|
+
- minor refactor swatch gen
|
|
98
93
|
|
|
99
|
-
|
|
94
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/color-palettes@0.1.0) (2021-08-21)
|
|
100
95
|
|
|
101
|
-
|
|
96
|
+
#### 🚀 Features
|
|
102
97
|
|
|
103
|
-
-
|
|
98
|
+
- add as new pkg, add assets & swatch gen ([9d1bb17](https://github.com/thi-ng/umbrella/commit/9d1bb17))
|
package/README.md
CHANGED
|
@@ -10,82 +10,50 @@ 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
|
|
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
|
|
36
|
-
|
|
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
|
|
54
|
-
|
|
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.
|
|
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).
|
|
69
30
|
|
|
70
|
-
|
|
31
|
+
## Recent additions
|
|
71
32
|
|
|
72
|
-
|
|
|
73
|
-
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
33
|
+
| Preset | Swatches |
|
|
34
|
+
|:--------------------|:-----------------------------------------------------------------------------------------------------------|
|
|
35
|
+
| `00uPNyZwgGQhZDUaQ` |  |
|
|
36
|
+
| `00uPN5nCkNSzg7ri4` |  |
|
|
37
|
+
| `00uPLAKIHr3vJ0xUB` |  |
|
|
38
|
+
| `00uP6PKyOf1h08rEq` |  |
|
|
39
|
+
| `00uOuzh5czMDF0xUE` |  |
|
|
40
|
+
| `00uOqryM4SOXgd7S0` |  |
|
|
41
|
+
| `00uOogzjozpSchnrp` |  |
|
|
42
|
+
| `00uKBokFLvI0Epxqx` |  |
|
|
43
|
+
| `00tAvqx4Pm26XfKhx` |  |
|
|
44
|
+
| `00tAuOG3R9ivBX2gO` |  |
|
|
45
|
+
| `00tAsz6uflx4ciwdA` |  |
|
|
46
|
+
| `00tAq6qSD1erL65L8` |  |
|
|
47
|
+
| `00tAnftt5xsJlMhDZ` |  |
|
|
48
|
+
| `00tAmMznURg0qH4jp` |  |
|
|
49
|
+
| `00t03UwzLJ4HO8u5o` |  |
|
|
50
|
+
| `00sz9mhhmiZmgR9r6` |  |
|
|
51
|
+
| `00sz7CFkl88HCRtUW` |  |
|
|
52
|
+
| `00sz5Uxo4ByGDH6tQ` |  |
|
|
53
|
+
|
|
54
|
+
## All themes
|
|
55
|
+
|
|
56
|
+
Below all color palettes are shown **sorted by median LCH chromacity**:
|
|
89
57
|
|
|
90
58
|
(Please note that for some reason (likely color profile related) Google Chrome
|
|
91
59
|
shows the more saturated colors much more muted than they actually are/should
|
|
@@ -95,11 +63,17 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
95
63
|
|
|
96
64
|
| Preset | Swatches |
|
|
97
65
|
|:---------------------|:------------------------------------------------------------------------------------------------------------|
|
|
66
|
+
| `00uPN5nCkNSzg7ri4` |  |
|
|
98
67
|
| `00Q9Yxm7DrZXqTkyS` |  |
|
|
99
68
|
| `00QMA8h2BH69zyEk0` |  |
|
|
69
|
+
| `00uKBokFLvI0Epxqx` |  |
|
|
100
70
|
| `00QLn7G59JhKtuUs0` |  |
|
|
71
|
+
| `00tAuOG3R9ivBX2gO` |  |
|
|
101
72
|
| `00QLNIQXmbJgghRXg` |  |
|
|
73
|
+
| `00uPLAKIHr3vJ0xUB` |  |
|
|
102
74
|
| `00QLNHv6JW1bL031O` |  |
|
|
75
|
+
| `00uP6PKyOf1h08rEq` |  |
|
|
76
|
+
| `00uPNyZwgGQhZDUaQ` |  |
|
|
103
77
|
| `00qIR1FROo31bNduE` |  |
|
|
104
78
|
| `00iGNImQqINC9iQ1D` |  |
|
|
105
79
|
| `00QLj3fsFErIl5W0b` |  |
|
|
@@ -123,6 +97,7 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
123
97
|
| `00RYyJDsTKzsBBgCO` |  |
|
|
124
98
|
| `00QLqYQ3HE1oy3ByI` |  |
|
|
125
99
|
| `00UWNvEkTsOF0aQHh` |  |
|
|
100
|
+
| `00uOqryM4SOXgd7S0` |  |
|
|
126
101
|
| `00qIPBCHil9FW2idX` |  |
|
|
127
102
|
| `00QMSSCjsJpojbpYz` |  |
|
|
128
103
|
| `00qAPJlU7mDXqCkiN` |  |
|
|
@@ -131,6 +106,7 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
131
106
|
| `00qAPJgQvoDkRkQTN` |  |
|
|
132
107
|
| `00iGNInM4y8vS5Aon` |  |
|
|
133
108
|
| `00PhGSfzpeU5Bkh47a` |  |
|
|
109
|
+
| `00sz7CFkl88HCRtUW` |  |
|
|
134
110
|
| `00RlTJrw94KFOF3zL` |  |
|
|
135
111
|
| `00RGly9mkWt6i3suLa` |  |
|
|
136
112
|
| `00bYahKZ8LbVgx54y` |  |
|
|
@@ -141,6 +117,7 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
141
117
|
| `00OqoPfvP6y1EmXZQ` |  |
|
|
142
118
|
| `00PhEgF9AlI5PTrLB` |  |
|
|
143
119
|
| `00QMSSK2AEOwErS5Ma` |  |
|
|
120
|
+
| `00uOuzh5czMDF0xUE` |  |
|
|
144
121
|
| `00i0iHNQPUpX6Jzsb` |  |
|
|
145
122
|
| `00RTRDIRDbnErAXHV` |  |
|
|
146
123
|
| `00RTRDNL7MjHkDys4` |  |
|
|
@@ -155,8 +132,11 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
155
132
|
| `00QMEZhEMNGnZZxL4` |  |
|
|
156
133
|
| `00QLfPusSpy3uFOpb` |  |
|
|
157
134
|
| `00QMA8iIbk7Biajay` |  |
|
|
135
|
+
| `00uOogzjozpSchnrp` |  |
|
|
136
|
+
| `00t03UwzLJ4HO8u5o` |  |
|
|
158
137
|
| `00bYah8QOLZNgszuV` |  |
|
|
159
138
|
| `00qIIS5LLApenMByv` |  |
|
|
139
|
+
| `00tAvqx4Pm26XfKhx` |  |
|
|
160
140
|
| `00i0iHXq6xPzf1pt0` |  |
|
|
161
141
|
| `00qIG1KwWOlIJkB81` |  |
|
|
162
142
|
| `00RYyJ25i8zFwOJGh` |  |
|
|
@@ -165,7 +145,9 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
165
145
|
| `00bYcixZkofJhLJ8w` |  |
|
|
166
146
|
| `00RTRDOtbFF8KFNH9` |  |
|
|
167
147
|
| `00QMA8tedClukB7IL` |  |
|
|
148
|
+
| `00tAq6qSD1erL65L8` |  |
|
|
168
149
|
| `00QMSSEJXJOUdMoSj` |  |
|
|
150
|
+
| `00sz9mhhmiZmgR9r6` |  |
|
|
169
151
|
| `00RYyJ4jHYfMF6yfy` |  |
|
|
170
152
|
| `00qHzDGNbubSeZXrS` |  |
|
|
171
153
|
| `00QMSSK2AEOwErS5M` |  |
|
|
@@ -173,6 +155,7 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
173
155
|
| `00QMEZSYbyUNt0041` |  |
|
|
174
156
|
| `00bYcivY8Jqx8nsiR` |  |
|
|
175
157
|
| `00OkEXVdMQmQ1oQTp` |  |
|
|
158
|
+
| `00sz5Uxo4ByGDH6tQ` |  |
|
|
176
159
|
| `00i0iHUSVMHOENQof` |  |
|
|
177
160
|
| `00RlTJxJZ16ivgKBw` |  |
|
|
178
161
|
| `00RGlyFVinQl5cj21` |  |
|
|
@@ -201,7 +184,9 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
201
184
|
| `00QMEZzTrk06iVgaK` |  |
|
|
202
185
|
| `00QLNIKFhjs5rJCjr` |  |
|
|
203
186
|
| `00QLj3PylHkh8qY2R` |  |
|
|
187
|
+
| `00tAsz6uflx4ciwdA` |  |
|
|
204
188
|
| `00bYcj0VC9wmmKNm5` |  |
|
|
189
|
+
| `00tAmMznURg0qH4jp` |  |
|
|
205
190
|
| `00bYiYyzA6ODPIC8V` |  |
|
|
206
191
|
| `00QMxewR6IS5vyatN` |  |
|
|
207
192
|
| `00qAZjyY6S1ycz77W` |  |
|
|
@@ -215,6 +200,7 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
215
200
|
| `00qHekwxmgUGlfAWi` |  |
|
|
216
201
|
| `00RTRDIzyUse2qJ9N` |  |
|
|
217
202
|
| `00QLn7oETUQZKKr34` |  |
|
|
203
|
+
| `00tAnftt5xsJlMhDZ` |  |
|
|
218
204
|
| `00QMSSCjsJpojbpYza` |  |
|
|
219
205
|
| `00qAPJgiiIyY8shVo` |  |
|
|
220
206
|
| `00QLslJAGNA8YREKh` |  |
|
|
@@ -238,6 +224,65 @@ be. Any pointers to workarounds/solutions are appreciated...):
|
|
|
238
224
|
| `00qAZk070SYGij58C` |  |
|
|
239
225
|
| `00QLfPkuNx1jE7sMm` |  |
|
|
240
226
|
|
|
227
|
+
### Status
|
|
228
|
+
|
|
229
|
+
**STABLE** - used in production
|
|
230
|
+
|
|
231
|
+
[Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Bcolor-palettes%5D+in%3Atitle)
|
|
232
|
+
|
|
233
|
+
## Installation
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
yarn add @thi.ng/color-palettes
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
ES module import:
|
|
240
|
+
|
|
241
|
+
```html
|
|
242
|
+
<script type="module" src="https://cdn.skypack.dev/@thi.ng/color-palettes"></script>
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
[Skypack documentation](https://docs.skypack.dev/)
|
|
246
|
+
|
|
247
|
+
For Node.js REPL:
|
|
248
|
+
|
|
249
|
+
```text
|
|
250
|
+
# with flag only for < v16
|
|
251
|
+
node --experimental-repl-await
|
|
252
|
+
|
|
253
|
+
> const colorPalettes = await import("@thi.ng/color-palettes");
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
Package sizes (gzipped, pre-treeshake): ESM: 6.06 KB
|
|
257
|
+
|
|
258
|
+
## Dependencies
|
|
259
|
+
|
|
260
|
+
None
|
|
261
|
+
|
|
262
|
+
## Usage examples
|
|
263
|
+
|
|
264
|
+
Several demos in this repo's
|
|
265
|
+
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
|
|
266
|
+
directory are using this package.
|
|
267
|
+
|
|
268
|
+
A selection:
|
|
269
|
+
|
|
270
|
+
| Screenshot | Description | Live demo | Source |
|
|
271
|
+
|:---------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------|:----------------------------------------------------|:---------------------------------------------------------------------------------|
|
|
272
|
+
| <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) |
|
|
273
|
+
|
|
274
|
+
## Available palettes
|
|
275
|
+
|
|
276
|
+
### Usage
|
|
277
|
+
|
|
278
|
+
```ts
|
|
279
|
+
import { THEMES } from "@thi.ng/color-palettes";
|
|
280
|
+
|
|
281
|
+
const theme = THEMES["00bYahDYU6E7wDJwL"];
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
Also see the [swatch generator](https://github.com/thi-ng/umbrella/blob/develop/packages/color-palettes/tools/index.ts) as usage example...
|
|
285
|
+
|
|
241
286
|
## Authors
|
|
242
287
|
|
|
243
288
|
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,23 @@ 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[];
|
|
144
|
+
"00uKBokFLvI0Epxqx": string[];
|
|
145
|
+
"00uOogzjozpSchnrp": string[];
|
|
146
|
+
"00uOqryM4SOXgd7S0": string[];
|
|
147
|
+
"00uOuzh5czMDF0xUE": string[];
|
|
148
|
+
"00uP6PKyOf1h08rEq": string[];
|
|
149
|
+
"00uPLAKIHr3vJ0xUB": string[];
|
|
150
|
+
"00uPN5nCkNSzg7ri4": string[];
|
|
151
|
+
"00uPNyZwgGQhZDUaQ": string[];
|
|
134
152
|
};
|
|
135
153
|
//# sourceMappingURL=index.d.ts.map
|
package/index.js
CHANGED
|
@@ -1056,4 +1056,148 @@ 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
|
+
],
|
|
1139
|
+
"00uKBokFLvI0Epxqx": [
|
|
1140
|
+
"#1f2844",
|
|
1141
|
+
"#556881",
|
|
1142
|
+
"#7f411d",
|
|
1143
|
+
"#f66811",
|
|
1144
|
+
"#e9a371",
|
|
1145
|
+
"#fbf4e1",
|
|
1146
|
+
],
|
|
1147
|
+
"00uOogzjozpSchnrp": [
|
|
1148
|
+
"#00334b",
|
|
1149
|
+
"#6699bb",
|
|
1150
|
+
"#7a0011",
|
|
1151
|
+
"#c21122",
|
|
1152
|
+
"#e5bf99",
|
|
1153
|
+
"#fef2d8",
|
|
1154
|
+
],
|
|
1155
|
+
"00uOqryM4SOXgd7S0": [
|
|
1156
|
+
"#001580",
|
|
1157
|
+
"#00779a",
|
|
1158
|
+
"#00afbf",
|
|
1159
|
+
"#f07167",
|
|
1160
|
+
"#fed9b7",
|
|
1161
|
+
"#fdfcdc",
|
|
1162
|
+
],
|
|
1163
|
+
"00uOuzh5czMDF0xUE": [
|
|
1164
|
+
"#552c5c",
|
|
1165
|
+
"#945b9d",
|
|
1166
|
+
"#de7f81",
|
|
1167
|
+
"#f2ac69",
|
|
1168
|
+
"#e7c1a3",
|
|
1169
|
+
"#ffede1",
|
|
1170
|
+
],
|
|
1171
|
+
"00uP6PKyOf1h08rEq": [
|
|
1172
|
+
"#990a21",
|
|
1173
|
+
"#e71d3c",
|
|
1174
|
+
"#ff9519",
|
|
1175
|
+
"#fafff7",
|
|
1176
|
+
"#2ec4ad",
|
|
1177
|
+
"#01182b",
|
|
1178
|
+
],
|
|
1179
|
+
"00uPLAKIHr3vJ0xUB": [
|
|
1180
|
+
"#03223e",
|
|
1181
|
+
"#0f4272",
|
|
1182
|
+
"#fdf0cc",
|
|
1183
|
+
"#f9d860",
|
|
1184
|
+
"#f49a4d",
|
|
1185
|
+
"#f24c2c",
|
|
1186
|
+
],
|
|
1187
|
+
"00uPN5nCkNSzg7ri4": [
|
|
1188
|
+
"#5f00ff",
|
|
1189
|
+
"#9f37ff",
|
|
1190
|
+
"#0a99cc",
|
|
1191
|
+
"#17e8ff",
|
|
1192
|
+
"#c0c1cf",
|
|
1193
|
+
"#f0f2f8",
|
|
1194
|
+
],
|
|
1195
|
+
"00uPNyZwgGQhZDUaQ": [
|
|
1196
|
+
"#401447",
|
|
1197
|
+
"#077085",
|
|
1198
|
+
"#1fe1bb",
|
|
1199
|
+
"#adfc3a",
|
|
1200
|
+
"#c9ffbc",
|
|
1201
|
+
"#f2ffec",
|
|
1202
|
+
],
|
|
1059
1203
|
};
|
package/package.json
CHANGED
|
@@ -1,70 +1,75 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "@thi.ng/color-palettes",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Collection of 150 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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"thi.ng"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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": "32cf1a96854f9bb97aca65ffa05ca862ea377059\n"
|
|
75
|
+
}
|