'use strict';

exports.__esModule = true;

var _utils = require('grommet/utils');

var _base = require('./base');

var _base2 = _interopRequireDefault(_base);

var _colorsFromArray = require('./colorsFromArray');

var _colorsFromArray2 = _interopRequireDefault(_colorsFromArray);

var _colorsFromObject = require('./colorsFromObject');

var _colorsFromObject2 = _interopRequireDefault(_colorsFromObject);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var brandColor = '#0072c6';
var accentColors = ['#fa6800', '#128023', '#0050ef', '#d80073'];
var neutralColors = ['#a4c400', '#00aba9', '#BF5A15', '#8F6C53', '#9A1616'];
var statusColors = {
  critical: '#ce352c',
  error: '#a20025',
  warning: '#e3c800',
  ok: '#60a917',
  unknown: '#eeeeee',
  disabled: '#999999'
};

var shadowColor = 'rgba(0, 86, 150, 0.50)';
var textColor = {
  dark: '#ffffff',
  light: '#333333'
};

var colors = {
  'brand': brandColor,
  'text': textColor,
  'control': {
    dark: '#ffffff',
    light: '#333333'
  }
};

(0, _colorsFromArray2.default)(colors, accentColors, 'accent');
(0, _colorsFromArray2.default)(colors, neutralColors, 'neutral');
(0, _colorsFromObject2.default)(colors, statusColors, 'status');

exports.default = (0, _utils.deepFreeze)((0, _utils.deepMerge)(_base2.default, {
  global: {
    colors: colors,
    drop: {
      background: '#005696',
      border: {
        width: '0px',
        radius: '0px'
      }
    },
    hover: {
      background: '#0079d3',
      text: '#ffffff'
    },
    focus: {
      border: {
        color: brandColor
      }
    },
    elevation: {
      none: 'none',
      xsmall: '0px 1px 2px ' + shadowColor,
      small: '0px 2px 4px ' + shadowColor,
      medium: '0px 3px 8px ' + shadowColor,
      large: '0px 6px 12px ' + shadowColor,
      xlarge: '0px 8px 16px ' + shadowColor
    },
    font: {
      family: "'Open Sans', sans-serif",
      face: '\n        /* latin */\n        @font-face {\n          font-family: \'Open Sans\';\n          font-style: normal;\n          font-weight: 300;\n          src: local(\'Open Sans Light\'), local(\'OpenSans-Light\'), url(https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format(\'woff2\');\n          unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n        }\n        /* latin */\n        @font-face {\n          font-family: \'Open Sans\';\n          font-style: normal;\n          font-weight: 400;\n          src: local(\'Open Sans Regular\'), local(\'OpenSans-Regular\'), url(https://fonts.gstatic.com/s/opensans/v15/mem8YaGs126MiZpBA-UFVZ0bf8pkAg.woff2) format(\'woff2\');\n          unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n        }\n        /* latin */\n        @font-face {\n          font-family: \'Open Sans\';\n          font-style: normal;\n          font-weight: 600;\n          src: local(\'Open Sans SemiBold\'), local(\'OpenSans-SemiBold\'), url(https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format(\'woff2\');\n          unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n        }\n        /* latin */\n        @font-face {\n          font-family: \'Open Sans\';\n          font-style: normal;\n          font-weight: 700;\n          src: local(\'Open Sans Bold\'), local(\'OpenSans-Bold\'), url(https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UN7rgOUuhpKKSTjw.woff2) format(\'woff2\');\n          unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n        }\n        /* latin */\n        @font-face {\n          font-family: \'Open Sans\';\n          font-style: normal;\n          font-weight: 800;\n          src: local(\'Open Sans ExtraBold\'), local(\'OpenSans-ExtraBold\'), url(https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UN8rsOUuhpKKSTjw.woff2) format(\'woff2\');\n          unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n        }\n      ',
      size: '16px'
    },
    input: {
      border: {
        radius: '0px'
      }
    }
  },
  button: {
    border: {
      radius: '0px'
    }
  },
  icon: {
    colors: colors
  },
  anchor: {
    color: {
      light: '#0078D4',
      dark: '#ffffff'
    }
  },
  checkBox: {
    border: {
      color: {
        light: 'rgba(0, 188, 212, 0.5)',
        dark: 'rgba(255, 255, 255, 0.5)'
      }
    },
    check: {
      radius: '0px'
    },
    color: brandColor,
    toggle: {
      color: {
        dark: '#bdbdbd',
        light: brandColor
      },
      radius: '0px'
    }
  },
  layer: {
    backgroundColor: '#eef3fc',
    border: {
      radius: '0px'
    }
  },
  radioButton: {
    border: {
      color: {
        light: 'rgba(0, 188, 212, 0.5)',
        dark: 'rgba(255, 255, 255, 0.5)'
      }
    }
  },
  heading: {
    font: false
  }
}));