lib/helpers/getThemeConfig.js
function applyContrastColors(config) {
  const { colors } = config;

  return {
    ...config,
    colors: {
      ...colors,
      primaryContrast: getContrastColor(colors.primary, colors),
      accentContrast: getContrastColor(colors.accent, colors),
      focus: getFocusColor(colors),
    },
  };
}
function applyContrastColors(config) {
  const { colors } = config;

  return {
    ...config,
    colors: {
      ...colors,
      primaryContrast: getContrastColor(colors.primary, colors),
      accentContrast: getContrastColor(colors.accent, colors),
      focus: getFocusColor(colors),
    },
  };
}
function applyContrastColors ( config ) { const { colors } = config ; return { ... config , colors : { ... colors , primaryContrast : getContrastColor ( colors . primary , colors ) , accentContrast : getContrastColor ( colors . accent , colors ) , focus : getFocusColor ( colors ) , } , } ; }
Applies the contrast and focus colors to the colors configuration.
@param {Object} config The complete theme configuration.
@return {Object}
Applies the contrast and focus colors to the colors configuration .