// @flow
import { getPaletteColor } from '../../mixins/branding';
import type { PatchworkTheme } from '../../themes';
import type { ThemeProps } from '../../types';

export const getOutlineColor = ({ theme }: ThemeProps) =>
  getPaletteColor('greyscale-light')({ theme });

export const getDisabledFillColor = ({ theme }: ThemeProps) =>
  getPaletteColor('greyscale-medium')({ theme });

export const getFontColor = (theme: PatchworkTheme) =>
  getPaletteColor('white')({ theme });

export const getFillColor = (theme: PatchworkTheme, disabled?: boolean) =>
  disabled
    ? getDisabledFillColor({ theme })
    : getPaletteColor('brand-primary-base')({ theme });

export const getBorderColor = (theme: PatchworkTheme, disabled?: boolean) =>
  disabled
    ? getDisabledFillColor({ theme })
    : getPaletteColor('brand-primary-base')({ theme });
