function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
import { flattenScale } from '@codecademy/variance';
import { rgba } from 'polished';
/**
 * Core Colors
 */

var black = '#000000';
var white = '#ffffff';
var navy = '#10162F';
var effects = {
  shadow: {
    black: {
      slight: rgba(black, 0.15),
      heavy: rgba(black, 0.75)
    },
    white: {
      slight: rgba(white, 0.15),
      heavy: rgba(white, 0.95)
    }
  }
};
export var coreSwatches = {
  beige: {
    '100': '#FFF0E5'
  },
  blue: {
    '0': '#F5FCFF',
    '100': '#D3F2FF',
    '300': '#66C4FF',
    '400': '#3388FF',
    '500': '#1557FF',
    '800': '#1D2340'
  },
  navy: {
    '100': rgba(navy, 0.04),
    '200': rgba(navy, 0.12),
    '300': rgba(navy, 0.28),
    '400': rgba(navy, 0.45),
    '500': rgba(navy, 0.63),
    '600': rgba(navy, 0.75),
    '700': rgba(navy, 0.86),
    '800': navy,
    '900': '#0A0D1C'
  },
  green: {
    '0': '#F5FFE3',
    '100': '#EAFDC6',
    '400': '#AEE938',
    '700': '#008A27'
  },
  yellow: {
    '0': '#FFFAE5',
    '400': '#CCA900',
    '500': '#FFD300'
  },
  pink: {
    '0': '#FFF5FF',
    '400': '#F966FF'
  },
  red: {
    '0': '#E85D7F',
    '100': '#DC5879',
    '500': '#E91C11',
    '600': '#BE1809'
  },
  orange: {
    '500': '#FF8C00'
  },
  hyper: {
    '400': '#5533FF',
    '500': '#3A10E5'
  },
  gray: {
    '100': '#F5F5F5',
    '200': '#EEEEEE',
    '300': '#E0E0E0',
    '600': '#9E9E9E',
    '800': '#616161',
    '900': '#424242'
  },
  white: {
    '100': rgba(white, 0.04),
    '200': rgba(white, 0.09),
    '300': rgba(white, 0.2),
    '400': rgba(white, 0.33),
    '500': rgba(white, 0.5),
    '600': rgba(white, 0.65),
    '700': rgba(white, 0.8)
  }
};
export var trueColors = {
  beige: coreSwatches.beige[100],
  blue: coreSwatches.blue[500],
  green: coreSwatches.green[700],
  hyper: coreSwatches.hyper[500],
  lightBlue: coreSwatches.blue[300],
  lightGreen: coreSwatches.green[400],
  navy: coreSwatches.navy[800],
  orange: coreSwatches.orange[500],
  paleBlue: coreSwatches.blue[0],
  paleGreen: coreSwatches.green[0],
  palePink: coreSwatches.pink[0],
  paleYellow: coreSwatches.yellow[0],
  pink: coreSwatches.pink[400],
  paleRed: coreSwatches.red[100],
  red: coreSwatches.red[500],
  yellow: coreSwatches.yellow[500],
  black: black,
  white: white
};
export var corePalette = _objectSpread(_objectSpread(_objectSpread({}, flattenScale(coreSwatches)), flattenScale(effects)), trueColors);

/**
 * Platform Colors
 */

export var platformSwatches = {
  beige: {
    '0': '#FFFBF8'
  },
  gold: {
    '800': '#8A7300'
  },
  orange: {
    '800': '#D14900'
  },
  pink: {
    '800': '#CA00D1'
  },
  teal: {
    '500': '#027E97'
  },
  purple: {
    '300': '#B3CCFF'
  }
};
var truePlatformColors = {
  lightBeige: platformSwatches.beige[0],
  gold: platformSwatches.gold[800],
  teal: platformSwatches.teal[500],
  purple: platformSwatches.purple[300]
};
export var platformPalette = _objectSpread(_objectSpread({}, flattenScale(platformSwatches)), truePlatformColors);