UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

17 lines (16 loc) 463 B
export type ColorDecision = { cssVarName: `--${string}`; decisionObjectPath: readonly string[]; option: { color: `#${string}` | { light: `#${string}`; dark: `#${string}`; }; optionObjectPath: readonly string[]; cssVarName: `--${string}`; }; }; export declare function resolveColorHexCodeToDecision(params: { /** Expects: #xxxxxx or #xxx */ hexColorCode: string; }): ColorDecision[];