AbstractStaticbuildGeneeric palette building algorithm.
The source color, which will be set as 500.
The ligh target color, usually white.
The dark target color, usually black.
The weights to apply.
Optionalopts: Partial<PaletteBuildOpts<C>>The options.
The palette.
StaticclassicClassic mathematical palette. Pure interpolation towards white and black without hue shifting.
The source target.
StaticdynamicDynamic "Artistic" Palette (HSL based). Mimics natural light and painting:
The source color.
Optionalopts: Partial<PaletteDynamicOptions>The options.
StaticmixStandard Mix Palette. Simple interpolation towards white/black (or custom targets).
The source color.
Optionalopts: Partial<PaletteMixOptions<C>>The options.
StaticperceptualModern Perceptual Palette (OKLCH). Keeps the chroma (saturation) constant/vibrant even in light/dark shades. Uses slightly off-white/off-black targets to avoid clamping issues.
The source color.
Optionalopts: Partial<PalettePerceptualOptions>The options.
StaticsoftSoft / Pastel Palette (HWB based). Works by mixing Whiteness and Blackness directly. Ideal for UI backgrounds and softer themes.
The source color.
Optionalopts: Partial<PaletteSoftOptions>The options.
Utility to generate full color palettes (50-950) from a single source color. Supports different mixing strategies (Perceptual, Dynamic/Artistic, Soft/Pastel).