UNPKG

2.4 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.geekblue = exports.cyan = exports.blue = void 0;
7Object.defineProperty(exports, "generate", {
8 enumerable: true,
9 get: function get() {
10 return _generate.default;
11 }
12});
13exports.yellow = exports.volcano = exports.red = exports.purple = exports.presetPrimaryColors = exports.presetPalettes = exports.presetDarkPalettes = exports.orange = exports.magenta = exports.lime = exports.grey = exports.green = exports.gray = exports.gold = void 0;
14
15var _generate = _interopRequireDefault(require("./generate"));
16
17function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
19var presetPrimaryColors = {
20 red: '#F5222D',
21 volcano: '#FA541C',
22 orange: '#FA8C16',
23 gold: '#FAAD14',
24 yellow: '#FADB14',
25 lime: '#A0D911',
26 green: '#52C41A',
27 cyan: '#13C2C2',
28 blue: '#1677FF',
29 geekblue: '#2F54EB',
30 purple: '#722ED1',
31 magenta: '#EB2F96',
32 grey: '#666666'
33};
34exports.presetPrimaryColors = presetPrimaryColors;
35var presetPalettes = {};
36exports.presetPalettes = presetPalettes;
37var presetDarkPalettes = {};
38exports.presetDarkPalettes = presetDarkPalettes;
39Object.keys(presetPrimaryColors).forEach(function (key) {
40 presetPalettes[key] = (0, _generate.default)(presetPrimaryColors[key]);
41 presetPalettes[key].primary = presetPalettes[key][5]; // dark presetPalettes
42
43 presetDarkPalettes[key] = (0, _generate.default)(presetPrimaryColors[key], {
44 theme: 'dark',
45 backgroundColor: '#141414'
46 });
47 presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
48});
49var red = presetPalettes.red;
50exports.red = red;
51var volcano = presetPalettes.volcano;
52exports.volcano = volcano;
53var gold = presetPalettes.gold;
54exports.gold = gold;
55var orange = presetPalettes.orange;
56exports.orange = orange;
57var yellow = presetPalettes.yellow;
58exports.yellow = yellow;
59var lime = presetPalettes.lime;
60exports.lime = lime;
61var green = presetPalettes.green;
62exports.green = green;
63var cyan = presetPalettes.cyan;
64exports.cyan = cyan;
65var blue = presetPalettes.blue;
66exports.blue = blue;
67var geekblue = presetPalettes.geekblue;
68exports.geekblue = geekblue;
69var purple = presetPalettes.purple;
70exports.purple = purple;
71var magenta = presetPalettes.magenta;
72exports.magenta = magenta;
73var grey = presetPalettes.grey;
74exports.grey = grey;
75var gray = presetPalettes.grey;
76exports.gray = gray;
\No newline at end of file