@thi.ng/color-palettes 1.5.38 → 1.5.40

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/package.json +10 -10
  3. package/theme.d.ts +5 -5
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 212 standalone projects, maintained as part
10
+ > This is one of 213 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
  >
@@ -454,4 +454,4 @@ If this project contributes to an academic publication, please cite it as:
454
454
 
455
455
  ## License
456
456
 
457
- © 2021 - 2025 Karsten Schmidt // Apache License 2.0
457
+ © 2021 - 2026 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.5.38",
3
+ "version": "1.5.40",
4
4
  "description": "Collection of 200+ image based color themes & composable theme query filters",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,16 +41,16 @@
41
41
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@thi.ng/api": "^8.12.11",
45
- "@thi.ng/base-n": "^2.7.57",
46
- "@thi.ng/checks": "^3.8.1",
47
- "@thi.ng/color": "^5.8.7",
48
- "@thi.ng/errors": "^2.6.0",
49
- "@thi.ng/hex": "^2.4.4"
44
+ "@thi.ng/api": "^8.12.13",
45
+ "@thi.ng/base-n": "^2.7.59",
46
+ "@thi.ng/checks": "^3.8.3",
47
+ "@thi.ng/color": "^5.8.9",
48
+ "@thi.ng/errors": "^2.6.2",
49
+ "@thi.ng/hex": "^2.4.6"
50
50
  },
51
51
  "devDependencies": {
52
- "esbuild": "^0.27.0",
53
- "typedoc": "^0.28.14",
52
+ "esbuild": "^0.27.2",
53
+ "typedoc": "^0.28.16",
54
54
  "typescript": "^5.9.3"
55
55
  },
56
56
  "keywords": [
@@ -92,5 +92,5 @@
92
92
  "parent": "@thi.ng/color",
93
93
  "year": 2021
94
94
  },
95
- "gitHead": "e7a21b9d2a188fa04d4c893d8531c40fbc0f4c06\n"
95
+ "gitHead": "828ec2e9ffde7307231b03cff46598c0915b1857\n"
96
96
  }
package/theme.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CSSTheme, IntTheme, LCHTheme, RGBTheme, Theme, ThemePredicate } from "./api.js";
1
+ import type { 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 { CSSTheme, IntTheme, LCHTheme, RGBTheme, Theme, ThemePredicate } fr
14
14
  * @param theme
15
15
  * @param reverse
16
16
  */
17
- export declare const asCSS: (theme: number | Theme, reverse?: boolean) => CSSTheme;
17
+ export declare const asCSS: (theme: number | Theme, reverse?: boolean) => string[];
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
@@ -27,7 +27,7 @@ export declare const asCSS: (theme: number | Theme, reverse?: boolean) => CSSThe
27
27
  * @param theme
28
28
  * @param reverse
29
29
  */
30
- export declare const asInt: (theme: number | Theme, reverse?: boolean) => IntTheme;
30
+ export declare const asInt: (theme: number | Theme, reverse?: boolean) => number[];
31
31
  /**
32
32
  * Returns given `theme` (array of colors or theme preset ID) as thi.ng/color
33
33
  * LCH color vectors. If `reverse` is true (default: false), the theme colors
@@ -52,14 +52,14 @@ 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<CSSTheme>;
55
+ export declare const cssThemes: (...preds: ThemePredicate[] | number[]) => IterableIterator<string[]>;
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.
59
59
  *
60
60
  * @param preds
61
61
  */
62
- export declare const intThemes: (...preds: ThemePredicate[] | number[]) => IterableIterator<IntTheme>;
62
+ export declare const intThemes: (...preds: ThemePredicate[] | number[]) => IterableIterator<number[]>;
63
63
  /**
64
64
  * Yields iterator of LCH themes (via {@link asLCH}). Yields all
65
65
  * themes unless specific theme IDs or filter predicates are provided.