1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.header = exports.lineHeight = exports.monospace = exports.font = exports.radius = exports.weights = exports.fontSizes = exports.space = exports.breakpoints = void 0;
|
4 | var styled_system_1 = require("styled-system");
|
5 | var primary = '#00AEEF';
|
6 | var secondary = '#2A506F';
|
7 | var tertiary = '#527699';
|
8 | var quartenary = '#DDE1f0';
|
9 | var danger = '#FF423D';
|
10 | var warning = '#FCA321';
|
11 | var success = '#1AC135';
|
12 | var info = '#1496E1';
|
13 | var colors = {
|
14 | primary: {
|
15 | main: primary,
|
16 | semilight: '#aedff9',
|
17 | light: '#08bcff',
|
18 | dark: '#009dd7',
|
19 | },
|
20 | secondary: {
|
21 | main: secondary,
|
22 | semilight: '#abb9c5',
|
23 | light: '#2e587a',
|
24 | dark: '#23445e',
|
25 | },
|
26 | tertiary: {
|
27 | main: tertiary,
|
28 | light: '#5b82a7',
|
29 | semilight: '#bbc8d6',
|
30 | dark: '#456482',
|
31 | },
|
32 | quartenary: {
|
33 | main: quartenary,
|
34 | light: '#f8f9fd',
|
35 | dark: '#b7bed3',
|
36 | },
|
37 | danger: {
|
38 | main: danger,
|
39 | semilight: '#ffa1a1',
|
40 | light: '#feebeb',
|
41 | dark: '#eb0800',
|
42 | },
|
43 | warning: {
|
44 | main: warning,
|
45 | semilight: '#fdd190',
|
46 | light: '#fef3e5',
|
47 | dark: '#ad6800',
|
48 | },
|
49 | success: {
|
50 | main: success,
|
51 | semilight: '#8ce09a',
|
52 | light: '#e8f8ea',
|
53 | dark: '#138b27',
|
54 | },
|
55 | info: {
|
56 | main: info,
|
57 | semilight: '#90cbee',
|
58 | light: '#e8f5fc',
|
59 | dark: '#107dbc',
|
60 | },
|
61 | text: {
|
62 | main: '#2A506F',
|
63 | light: '#527699',
|
64 | dark: '#23445e',
|
65 | },
|
66 | statusIdle: {
|
67 | main: '#89c683',
|
68 | },
|
69 | statusConfiguring: {
|
70 | main: '#ffb25e',
|
71 | },
|
72 | statusUpdating: {
|
73 | main: '#75C5F5',
|
74 | },
|
75 | statusPostProvisioning: {
|
76 | main: '#aa96d5',
|
77 | },
|
78 | statusOffline: {
|
79 | main: '#fd7c7c',
|
80 | },
|
81 | statusInactive: {
|
82 | main: '#d3d6db',
|
83 | },
|
84 | gray: {
|
85 | main: '#c6c8c9',
|
86 | light: '#f4f4f4',
|
87 | dark: '#9f9f9f',
|
88 | },
|
89 | };
|
90 | var defaultControlHeight = 38;
|
91 | var emphasizedControlHeight = 48;
|
92 | exports.breakpoints = [576, 768, 992, 1200];
|
93 | exports.space = [
|
94 | 0,
|
95 | 4,
|
96 | 8,
|
97 | 16,
|
98 | defaultControlHeight,
|
99 | emphasizedControlHeight,
|
100 | 128,
|
101 | ];
|
102 | exports.fontSizes = [10, 12, 14, 16, 18, 24, 34, 58, 72];
|
103 | exports.weights = [400, 600];
|
104 | exports.radius = 3;
|
105 | exports.font = "'Source Sans Pro', Arial, sans-serif";
|
106 | exports.monospace = "'Ubuntu Mono', 'Courier New', monospace";
|
107 | exports.lineHeight = 1.5;
|
108 | exports.header = {
|
109 | height: '0',
|
110 | };
|
111 | var theme = {
|
112 | breakpoints: exports.breakpoints,
|
113 | space: exports.space,
|
114 | fontSizes: exports.fontSizes,
|
115 | weights: exports.weights,
|
116 | font: exports.font,
|
117 | monospace: exports.monospace,
|
118 | lineHeight: exports.lineHeight,
|
119 | colors: colors,
|
120 | radius: exports.radius,
|
121 | header: exports.header,
|
122 | global: {
|
123 | font: {
|
124 | family: exports.font,
|
125 | size: styled_system_1.px(exports.fontSizes[2]),
|
126 | height: exports.lineHeight,
|
127 | },
|
128 | control: {
|
129 | disabled: {
|
130 | opacity: 0.4,
|
131 | },
|
132 | border: {
|
133 | radius: '4px',
|
134 | color: colors.quartenary.main,
|
135 | },
|
136 | },
|
137 | colors: {
|
138 | focus: 'none',
|
139 | placeholder: colors.secondary.semilight,
|
140 | },
|
141 | selected: {
|
142 | background: colors.primary.main,
|
143 | },
|
144 | hover: {
|
145 | background: {
|
146 | color: colors.quartenary.main,
|
147 | opacity: 1,
|
148 | },
|
149 | color: {
|
150 | dark: 'inherit',
|
151 | light: 'inherit',
|
152 | },
|
153 | },
|
154 | active: {
|
155 | background: {
|
156 | color: colors.quartenary.main,
|
157 | opacity: 1,
|
158 | },
|
159 | color: {
|
160 | dark: 'inherit',
|
161 | light: 'inherit',
|
162 | },
|
163 | },
|
164 | drop: {
|
165 | border: {
|
166 | radius: '4px',
|
167 | },
|
168 | zIndex: 45,
|
169 | extend: "\n\t\t\t\tcolor: " + colors.secondary.main + "; border: 1px solid " + colors.quartenary.main + ";\n\t\t\t\tanimation-duration: 0s;\n\t\t\t",
|
170 | },
|
171 | input: {
|
172 | weight: 400,
|
173 | },
|
174 | },
|
175 | button: {
|
176 | height: '38px',
|
177 | font: {
|
178 | weight: 600,
|
179 | size: styled_system_1.px(13),
|
180 | },
|
181 | border: {
|
182 | width: '1px',
|
183 | radius: '20px',
|
184 | color: colors.text.main,
|
185 | },
|
186 | padding: {
|
187 | horizontal: '30px',
|
188 | },
|
189 | },
|
190 | navBar: {
|
191 | font: {
|
192 | size: styled_system_1.px(13),
|
193 | },
|
194 | },
|
195 | radioButton: {
|
196 | border: {
|
197 | width: '1px',
|
198 | color: {
|
199 | dark: colors.quartenary.main,
|
200 | light: colors.quartenary.main,
|
201 | },
|
202 | },
|
203 | hover: {
|
204 | border: {
|
205 | color: {
|
206 | dark: colors.tertiary.main,
|
207 | light: colors.tertiary.main,
|
208 | },
|
209 | },
|
210 | },
|
211 | check: {
|
212 | color: {
|
213 | dark: 'white',
|
214 | light: 'white',
|
215 | },
|
216 | },
|
217 | icon: { size: '12px' },
|
218 | gap: '10px',
|
219 | size: '20px',
|
220 | },
|
221 | select: {
|
222 | icons: {
|
223 | color: colors.secondary.main,
|
224 | },
|
225 | control: {
|
226 | extend: "color: " + colors.secondary.main,
|
227 | },
|
228 | },
|
229 | layer: {
|
230 | container: {
|
231 | zIndex: 40,
|
232 | },
|
233 | zIndex: 30,
|
234 | },
|
235 | text: {
|
236 | medium: {
|
237 | size: styled_system_1.px(exports.fontSizes[2]),
|
238 | height: exports.lineHeight,
|
239 | },
|
240 | },
|
241 | tab: {
|
242 | extend: "padding: " + styled_system_1.px(exports.space[1]) + " " + styled_system_1.px(exports.space[3]),
|
243 | color: colors.secondary.main,
|
244 | margin: 'none',
|
245 | border: {
|
246 | size: 'xsmall',
|
247 | color: colors.quartenary.main,
|
248 | active: {
|
249 | color: colors.primary.main,
|
250 | },
|
251 | hover: {
|
252 | color: colors.quartenary.main,
|
253 | },
|
254 | },
|
255 | hover: {
|
256 | color: colors.primary.dark,
|
257 | },
|
258 | active: {
|
259 | color: colors.primary.main,
|
260 | },
|
261 | },
|
262 | checkBox: {
|
263 | size: '20px',
|
264 | color: colors.primary.main,
|
265 | border: {
|
266 | color: {
|
267 | dark: colors.quartenary.main,
|
268 | light: colors.quartenary.main,
|
269 | },
|
270 | width: '1px',
|
271 | },
|
272 | check: {
|
273 | radius: '4px',
|
274 | thickness: '2px',
|
275 | },
|
276 | hover: {
|
277 | border: {
|
278 | color: {
|
279 | dark: colors.quartenary.main,
|
280 | light: colors.quartenary.main,
|
281 | },
|
282 | },
|
283 | },
|
284 | toggle: {
|
285 | color: {
|
286 | dark: colors.primary.main,
|
287 | light: colors.quartenary.main,
|
288 | },
|
289 | radius: '20px',
|
290 | size: '40px',
|
291 | knob: {},
|
292 | },
|
293 | },
|
294 | accordion: {
|
295 | border: {
|
296 | side: 'bottom',
|
297 | },
|
298 | },
|
299 | };
|
300 | exports.default = theme;
|