@thi.ng/color-palettes 1.4.23 → 1.4.25
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 +1 -1
- package/README.md +2 -2
- package/package.json +15 -11
- package/theme.d.ts +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 200 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -421,4 +421,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
421
421
|
|
|
422
422
|
## License
|
|
423
423
|
|
|
424
|
-
© 2021 -
|
|
424
|
+
© 2021 - 2025 Karsten Schmidt // Apache License 2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/color-palettes",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.25",
|
|
4
4
|
"description": "Collection of 200+ image based color themes & composable theme query filters",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
{
|
|
20
20
|
"type": "patreon",
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
22
26
|
}
|
|
23
27
|
],
|
|
24
28
|
"author": "Karsten Schmidt (https://thi.ng)",
|
|
@@ -38,17 +42,17 @@
|
|
|
38
42
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
39
43
|
},
|
|
40
44
|
"dependencies": {
|
|
41
|
-
"@thi.ng/api": "^8.11.
|
|
42
|
-
"@thi.ng/base-n": "^2.7.
|
|
43
|
-
"@thi.ng/checks": "^3.6.
|
|
44
|
-
"@thi.ng/color": "^5.7.
|
|
45
|
-
"@thi.ng/errors": "^2.5.
|
|
46
|
-
"@thi.ng/hex": "^2.3.
|
|
45
|
+
"@thi.ng/api": "^8.11.16",
|
|
46
|
+
"@thi.ng/base-n": "^2.7.28",
|
|
47
|
+
"@thi.ng/checks": "^3.6.18",
|
|
48
|
+
"@thi.ng/color": "^5.7.16",
|
|
49
|
+
"@thi.ng/errors": "^2.5.22",
|
|
50
|
+
"@thi.ng/hex": "^2.3.60"
|
|
47
51
|
},
|
|
48
52
|
"devDependencies": {
|
|
49
|
-
"@microsoft/api-extractor": "^7.48.
|
|
50
|
-
"esbuild": "^0.24.
|
|
51
|
-
"typedoc": "^0.27.
|
|
53
|
+
"@microsoft/api-extractor": "^7.48.1",
|
|
54
|
+
"esbuild": "^0.24.2",
|
|
55
|
+
"typedoc": "^0.27.6",
|
|
52
56
|
"typescript": "^5.7.2"
|
|
53
57
|
},
|
|
54
58
|
"keywords": [
|
|
@@ -90,5 +94,5 @@
|
|
|
90
94
|
"parent": "@thi.ng/color",
|
|
91
95
|
"year": 2021
|
|
92
96
|
},
|
|
93
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "56c1d57a96565bbcc8c06c73779a619bba0db368\n"
|
|
94
98
|
}
|
package/theme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LCHTheme, RGBTheme, Theme, ThemePredicate } from "./api.js";
|
|
1
|
+
import type { CSSTheme, LCHTheme, RGBTheme, Theme, ThemePredicate } from "./api.js";
|
|
2
2
|
/**
|
|
3
3
|
* Returns given `theme` (array of colors or theme preset ID) as CSS color
|
|
4
4
|
* strings. If `reverse` is true (default: false), the theme colors will be
|
|
@@ -14,7 +14,7 @@ import type { LCHTheme, RGBTheme, Theme, ThemePredicate } from "./api.js";
|
|
|
14
14
|
* @param theme
|
|
15
15
|
* @param reverse
|
|
16
16
|
*/
|
|
17
|
-
export declare const asCSS: (theme: number | Theme, reverse?: boolean) =>
|
|
17
|
+
export declare const asCSS: (theme: number | Theme, reverse?: boolean) => CSSTheme;
|
|
18
18
|
/**
|
|
19
19
|
* Returns given `theme` (array of colors or theme preset ID) as packed ARGB
|
|
20
20
|
* integers. If `reverse` is true (default: false), the theme colors will be
|
|
@@ -52,7 +52,7 @@ export declare const asRGB: (theme: number | Theme, reverse?: boolean) => RGBThe
|
|
|
52
52
|
*
|
|
53
53
|
* @param preds
|
|
54
54
|
*/
|
|
55
|
-
export declare const cssThemes: (...preds: ThemePredicate[] | number[]) => IterableIterator<
|
|
55
|
+
export declare const cssThemes: (...preds: ThemePredicate[] | number[]) => IterableIterator<CSSTheme>;
|
|
56
56
|
/**
|
|
57
57
|
* Yields iterator of packed ARGB integer themes (via {@link asInt}). Yields all
|
|
58
58
|
* themes unless specific theme IDs or filter predicates are provided.
|