@14ch/color-palette-generator
Version:
A comprehensive color palette generation library with support for color scales, combinations, and transparency
10 lines (9 loc) • 877 B
TypeScript
export { generateColorPalette, resolveVariable } from "./palette";
export { generateCombination } from "./combination";
export { generateRandomPrimaryColor } from "./randomColor";
export { getLightness, adjustToLightness } from "./lightness";
export { adjustColorToSameTone, generateHuePalette, HUE_NAMES } from "./hue";
export { hexToRGB, rgbToHex, hexToHSL, hslToRGB, rgbToHSL } from "./colorUtils";
export { applyColorPaletteToDom } from "./applyToDom";
export { DEFAULT_COLOR_CONFIG, DEFAULT_BASE_COLOR_CONFIG, SCALE_LEVELS, STANDARD_LIGHTNESS_SCALE, DEFAULT_LIGHTNESS_METHOD, DEFAULT_HUE_SHIFT_MODE, MIN_LEVEL, MAX_LEVEL, MIN_LIGHTNESS, MAX_LIGHTNESS, } from "./constants";
export type { Palette, ColorConfig, RGB, HSL, LightnessMethod, HueShiftMode, CombinationType, BaseColorStrategy, Combination, CombinationConfig, RandomColorConfig, GeneratedColor, } from "./types";