"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getFontColor = exports.getFillColor = exports.getBorderColor = void 0;

var _branding = require("../../../mixins/branding");

var resolveColor = function resolveColor(color) {
  return color === 'primary' ? 'brand-primary-base' : 'brand-secondary-base';
};

var getBorderColor = function getBorderColor(theme, inverted, color) {
  return (0, _branding.getPaletteColor)(inverted ? resolveColor(color) : 'greyscale-light')({
    theme: theme
  });
};

exports.getBorderColor = getBorderColor;

var getFillColor = function getFillColor(theme, inverted, color) {
  return (0, _branding.getPaletteColor)(inverted ? resolveColor(color) : 'white')({
    theme: theme
  });
};

exports.getFillColor = getFillColor;

var getFontColor = function getFontColor(theme, inverted, color) {
  return (0, _branding.getPaletteColor)(inverted ? 'white' : resolveColor(color))({
    theme: theme
  });
};

exports.getFontColor = getFontColor;