mix.d.ts 850 B

123456789101112131415161718192021222324252627
  1. import { AnyColor } from "../types";
  2. import { Plugin } from "../extend";
  3. declare module "../colord" {
  4. interface Colord {
  5. /**
  6. * Produces a mixture of two colors through CIE LAB color space and returns a new Colord instance.
  7. */
  8. mix(color2: AnyColor | Colord, ratio?: number): Colord;
  9. /**
  10. * Generates a tints palette based on original color.
  11. */
  12. tints(count?: number): Colord[];
  13. /**
  14. * Generates a shades palette based on original color.
  15. */
  16. shades(count?: number): Colord[];
  17. /**
  18. * Generates a tones palette based on original color.
  19. */
  20. tones(count?: number): Colord[];
  21. }
  22. }
  23. /**
  24. * A plugin adding a color mixing utilities.
  25. */
  26. declare const mixPlugin: Plugin;
  27. export default mixPlugin;