export const getCssColorVariable = ( color: string | undefined, defaultValue = 'currentColor', ): string => (color?.startsWith('--') ? `var(${color})` : color || defaultValue);