/** Palette step keys produced by `generateColorScale`. */ export type PaletteStep = (typeof PALETTE_STEPS)[number] | 'input'; /** Token category that supports palette generation. */ export type PaletteCategory = 'brand' | 'accent' | 'base'; /** Map of palette step → resolved hex color. */ export type PaletteScale = Record; /** Map of token dot-path → resolved hex color (e.g. `color.brand.500` → `#548cdc`). */ export type PaletteTokenMap = Record; export declare const PALETTE_STEPS: readonly ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900", "950"]; /** * Generate an 11-step contrast-based color scale from a single hex color. * * Uses `@adobe/leonardo-contrast-colors` internally. The generation algorithm * is wrapped behind this function so the underlying library is swappable * without changing the public API. * * @param hex - A valid hex color string (`#RGB` or `#RRGGBB`). * @param category - The token namespace (`'brand'` or `'accent'`). * @returns A `PaletteTokenMap` keyed by token dot-paths * (e.g. `"color.brand.50"` through `"color.brand.950"` plus `"color.brand.input"`). */ export declare function generateColorScale(hex: string, category: PaletteCategory): PaletteTokenMap; /** * Derive the base palette color key from a brand color. * * The base scale shares the brand's hue and lightness but is nearly neutral: * the brand color is converted to HSL and its saturation is lowered to * {@link BASE_SATURATION} (5%). The resulting hex is the color key fed to * {@link generateColorScale} for the `base` category. * * @param brandHex - A valid hex color string (`#RGB` or `#RRGGBB`). * @returns The normalised hex color key for the base scale. */ export declare function deriveBaseColorKey(brandHex: string): string; //# sourceMappingURL=palette.d.ts.map