@soybeanjs/colord 0.4.0 → 0.4.1

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.
@@ -23,6 +23,7 @@ interface PaletteColorItem {
23
23
  * the color format is `oklch` string
24
24
  */
25
25
  type TailwindPalette = { [K in TailwindPaletteKey]: { [L in PaletteColorLevel]: PaletteColorItem } };
26
+ type SimplePaletteKey = 'inherit' | 'current' | 'transparent' | 'black' | 'white';
26
27
  type OutputColorMap = {
27
28
  hex: string;
28
29
  rgb: RgbColor;
@@ -69,4 +70,4 @@ declare function generatePalette<F extends OutputFormat = 'oklch'>(input: AnyCol
69
70
  */
70
71
  declare function generateNearestPalette<F extends OutputFormat>(input: AnyColor, format?: F): NearestPalette<F>;
71
72
  //#endregion
72
- export { type PaletteColorLevel, type TailwindPaletteKey, type TailwindPaletteLevelColorKey, generateNearestPalette, generatePalette, tailwindPalette };
73
+ export { type PaletteColorLevel, type SimplePaletteKey, type TailwindPaletteKey, type TailwindPaletteLevelColorKey, generateNearestPalette, generatePalette, tailwindPalette };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soybeanjs/colord",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "description": "A tiny yet powerful tool for high-performance color manipulations and conversions",
6
6
  "author": {
7
7
  "name": "Soybean",