"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.v = exports.text = exports.secondaryText = exports.secondaryLight = exports.secondaryDark = exports.secondaryBackground = exports.secondary = exports.primaryText = exports.primaryLight = exports.primaryDark = exports.primary = exports.missing = exports.incorrectSecondary = exports.incorrect = exports.disabled = exports.defaults = exports.correctSecondary = exports.correct = exports.background = void 0;

var _green = _interopRequireDefault(require("@material-ui/core/colors/green"));

var _orange = _interopRequireDefault(require("@material-ui/core/colors/orange"));

var _pink = _interopRequireDefault(require("@material-ui/core/colors/pink"));

var _indigo = _interopRequireDefault(require("@material-ui/core/colors/indigo"));

var _red = _interopRequireDefault(require("@material-ui/core/colors/red"));

var defaults = {
  TEXT: 'black',
  DISABLED: 'grey',
  CORRECT: _green["default"][500],
  CORRECT_SECONDARY: _green["default"][50],
  INCORRECT: _orange["default"][500],
  INCORRECT_SECONDARY: _red["default"][50],
  MISSING: _red["default"][700],
  PRIMARY: _indigo["default"][500],
  PRIMARY_LIGHT: _indigo["default"][200],
  PRIMARY_DARK: _indigo["default"][800],
  SECONDARY: _pink["default"].A400,
  SECONDARY_LIGHT: _pink["default"][200],
  SECONDARY_DARK: _pink["default"][900],
  BACKGROUND: 'rgba(255,255,255,0)',
  SECONDARY_BACKGROUND: 'rgba(241,241,241,1)'
};
exports.defaults = defaults;
Object.freeze(defaults);

var v = function v(prefix) {
  return function () {
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    var fallback = args.pop();
    return args.reduceRight(function (acc, v) {
      return "var(--".concat(prefix, "-").concat(v, ", ").concat(acc, ")");
    }, fallback);
  };
};

exports.v = v;
var pv = v('pie');

var text = function text() {
  return pv('text', defaults.TEXT);
};

exports.text = text;

var disabled = function disabled() {
  return pv('disabled', defaults.DISABLED);
};

exports.disabled = disabled;

var correct = function correct() {
  return pv('correct', defaults.CORRECT);
};

exports.correct = correct;

var correctSecondary = function correctSecondary() {
  return pv('correct-secondary', defaults.CORRECT_SECONDARY);
};

exports.correctSecondary = correctSecondary;

var incorrect = function incorrect() {
  return pv('incorrect', defaults.INCORRECT);
};

exports.incorrect = incorrect;

var incorrectSecondary = function incorrectSecondary() {
  return pv('incorrect-secondary', defaults.INCORRECT_SECONDARY);
};

exports.incorrectSecondary = incorrectSecondary;

var missing = function missing() {
  return pv('missing', defaults.MISSING);
};

exports.missing = missing;

var primary = function primary() {
  return pv('primary', defaults.PRIMARY);
};

exports.primary = primary;

var primaryLight = function primaryLight() {
  return pv('primary-light', defaults.PRIMARY_LIGHT);
};

exports.primaryLight = primaryLight;

var primaryDark = function primaryDark() {
  return pv('primary-dark', defaults.PRIMARY_DARK);
};

exports.primaryDark = primaryDark;

var primaryText = function primaryText() {
  return pv('primary-text', 'text', defaults.TEXT);
};

exports.primaryText = primaryText;

var secondary = function secondary() {
  return pv('secondary', defaults.SECONDARY);
};

exports.secondary = secondary;

var secondaryLight = function secondaryLight() {
  return pv('secondary-light', defaults.SECONDARY_LIGHT);
};

exports.secondaryLight = secondaryLight;

var secondaryDark = function secondaryDark() {
  return pv('secondary-dark', defaults.SECONDARY_DARK);
};

exports.secondaryDark = secondaryDark;

var secondaryText = function secondaryText() {
  return pv('secondary-text', 'text', defaults.TEXT);
};

exports.secondaryText = secondaryText;

var background = function background() {
  return pv('background', defaults.BACKGROUND);
};

exports.background = background;

var secondaryBackground = function secondaryBackground() {
  return pv('secondary-background', defaults.SECONDARY_BACKGROUND);
};

exports.secondaryBackground = secondaryBackground;
//# sourceMappingURL=color.js.map