// @flow
import type { ThemeProps } from '../../../types';
import type { TextProps } from './text.proptypes';
import { getPaletteColor } from '../../../mixins/branding';

export const getForegroundColor = ({
  theme,
  colorName,
}: TextProps & ThemeProps) =>
  getPaletteColor(colorName || 'greyscale-black')({ theme });
