import { deriveBaseColorKey } from '../palette'; import type { InputStrategy } from './contracts'; export type InputTransform = NonNullable< Extract['fallback'] >['transform']; const INPUT_TRANSFORMS: Readonly string>> = { 'derive-base-color': deriveBaseColorKey, }; export function applyOverrideInputTransform(transform: InputTransform, value: string): string { return INPUT_TRANSFORMS[transform](value); }