@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.
- package/dist/palette/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/palette/index.d.ts
CHANGED
|
@@ -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 };
|