@cyber-harbour/ui 1.0.35 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,703 @@
1
+ import { DefaultTheme } from 'styled-components/dist/types';
2
+
3
+ import { convertPaletteToRem } from '../utils';
4
+ import { Theme } from '../types';
5
+ import { breakpoints, typography, zIndex } from './config';
6
+
7
+ /**
8
+ * Палітра, що містить як кольори, так і розміри в px
9
+ * Кольори взято з теми, розміри будуть автоматично конвертовані в rem
10
+ */
11
+
12
+ export const darkThemePx: Theme = {
13
+ mode: 'light',
14
+ baseSize: 14, // Базовий розмір шрифту для конвертації px в rem
15
+ // Секція кольорів з теми
16
+ colors: {
17
+ background: '#0A0A0A',
18
+ backgroundBase: '#000000',
19
+ primary: {
20
+ main: '#158EFF',
21
+ light: '#80A0F5',
22
+ lighter: '#10253A',
23
+ lightest: '#020E19',
24
+ lightest2: 'rgba(0, 66, 236, 0.05)',
25
+ },
26
+ text: {
27
+ main: '#FFFFFF',
28
+ light: '#99989C',
29
+ lighter: '#99989C',
30
+ invert: '#101010',
31
+ },
32
+ stroke: {
33
+ main: '#34404C',
34
+ light: '#1E2226',
35
+ lighter: '#333333',
36
+ },
37
+ disable: '#080A0C',
38
+ success: '#27AE60',
39
+ error: '#FF3B30',
40
+ warning: '#F2994A',
41
+ info: '#2F80ED',
42
+ },
43
+ // Типографія
44
+ typography,
45
+ breakpoints,
46
+ zIndex,
47
+ line: {
48
+ size: 1,
49
+ color: '#EBEBEB',
50
+ },
51
+ button: {
52
+ // Варіанти кнопок з кольорами
53
+ fill: {
54
+ default: {
55
+ // колір default
56
+ default: {
57
+ background: '#E8EAEE',
58
+ text: '#FFFFFF',
59
+ border: ' #E8EAEE',
60
+ boxShadow: 'none',
61
+ },
62
+ hover: {
63
+ background: '#E5ECFD',
64
+ text: '#FFFFFF',
65
+ border: ' #E5ECFD',
66
+ boxShadow: 'none',
67
+ },
68
+ active: {
69
+ background: '#E5ECFD',
70
+ text: '#FFFFFF',
71
+ border: ' #E5ECFD',
72
+ boxShadow: 'none',
73
+ },
74
+ disabled: {
75
+ background: '#EBEBEB',
76
+ text: '#99989C',
77
+ border: ' #EBEBEB',
78
+ boxShadow: 'none',
79
+ },
80
+ },
81
+ primary: {
82
+ // колір primary
83
+ default: {
84
+ background: '#158EFF',
85
+ text: '#FFFFFF',
86
+ border: ' #158EFF',
87
+ boxShadow: 'none',
88
+ },
89
+ hover: {
90
+ background: '#4D7BF2',
91
+ text: '#FFFFFF',
92
+ border: ' #4D7BF2',
93
+ boxShadow: 'none',
94
+ },
95
+ active: {
96
+ background: '#4D7BF2',
97
+ text: '#FFFFFF',
98
+ border: ' #4D7BF2',
99
+ boxShadow: 'none',
100
+ },
101
+ disabled: {
102
+ background: '#99989C',
103
+ text: '#FFFFFF',
104
+ border: ' #E5ECFD',
105
+ boxShadow: 'none',
106
+ },
107
+ },
108
+ //default as secondary
109
+ secondary: {
110
+ // колір default
111
+ default: {
112
+ background: '#E8EAEE',
113
+ text: '#FFFFFF',
114
+ border: ' #E8EAEE',
115
+ boxShadow: 'none',
116
+ },
117
+ hover: {
118
+ background: '#E5ECFD',
119
+ text: '#FFFFFF',
120
+ border: ' #E5ECFD',
121
+ boxShadow: 'none',
122
+ },
123
+ active: {
124
+ background: '#E5ECFD',
125
+ text: '#FFFFFF',
126
+ border: ' #E5ECFD',
127
+ boxShadow: 'none',
128
+ },
129
+ disabled: {
130
+ background: '#EBEBEB',
131
+ text: '#99989C',
132
+ border: ' #EBEBEB',
133
+ boxShadow: 'none',
134
+ },
135
+ },
136
+ error: {
137
+ // колір error
138
+ default: {
139
+ background: '#C93939',
140
+ text: '#FFFFFF',
141
+ border: ' #C93939',
142
+ boxShadow: 'none',
143
+ },
144
+ hover: {
145
+ background: '#C53939',
146
+ text: '#FFFFFF',
147
+ border: ' #C53939',
148
+ boxShadow: 'none',
149
+ },
150
+ active: {
151
+ background: '#C53939',
152
+ text: '#FFFFFF',
153
+ border: ' #C53939',
154
+ boxShadow: 'none',
155
+ },
156
+ disabled: {
157
+ background: '#FFCCCB',
158
+ text: '#FFFFFF',
159
+ border: ' #FFCCCB',
160
+ boxShadow: 'none',
161
+ },
162
+ },
163
+ },
164
+ outlined: {
165
+ default: {
166
+ // колір default
167
+ default: {
168
+ background: 'transparent',
169
+ text: '#FFFFFF',
170
+ border: ' #EBEBEB',
171
+ boxShadow: 'none',
172
+ },
173
+ hover: {
174
+ background: '#E5ECFD',
175
+ text: '#FFFFFF',
176
+ border: ' #EBEBEB',
177
+ boxShadow: 'none',
178
+ },
179
+ active: {
180
+ background: '#E5ECFD',
181
+ text: '#FFFFFF',
182
+ border: ' #EBEBEB',
183
+ boxShadow: 'none',
184
+ },
185
+ disabled: {
186
+ background: 'transparent',
187
+ text: '#99989C',
188
+ border: ' #EBEBEB',
189
+ boxShadow: 'none',
190
+ },
191
+ },
192
+ primary: {
193
+ // колір primary
194
+ default: {
195
+ background: 'transparent',
196
+ text: '#158EFF',
197
+ border: ' #158EFF',
198
+ boxShadow: 'none',
199
+ },
200
+ hover: {
201
+ background: '#E5ECFD',
202
+ text: '#158EFF',
203
+ border: ' #158EFF',
204
+ boxShadow: 'none',
205
+ },
206
+ active: {
207
+ background: '#E5ECFD',
208
+ text: '#158EFF',
209
+ border: ' #158EFF',
210
+ boxShadow: 'none',
211
+ },
212
+ disabled: {
213
+ background: 'transparent',
214
+ text: '#99989C',
215
+ border: ' #99989C',
216
+ boxShadow: 'none',
217
+ },
218
+ },
219
+ secondary: {
220
+ // колір secondary
221
+ default: {
222
+ background: 'transparent',
223
+ text: '#158EFF',
224
+ border: ' #EBEBEB',
225
+ boxShadow: 'none',
226
+ },
227
+ hover: {
228
+ background: '#E5ECFD',
229
+ text: '#158EFF',
230
+ border: ' #EBEBEB',
231
+ boxShadow: 'none',
232
+ },
233
+ active: {
234
+ background: '#E5ECFD',
235
+ text: '#158EFF',
236
+ border: ' #EBEBEB',
237
+ boxShadow: 'none',
238
+ },
239
+ disabled: {
240
+ background: 'transparent',
241
+ text: '#99989C',
242
+ border: ' #EBEBEB',
243
+ boxShadow: 'none',
244
+ },
245
+ },
246
+ error: {
247
+ // колір error
248
+ default: {
249
+ background: 'transparent',
250
+ text: '#C93939',
251
+ border: ' #C93939',
252
+ boxShadow: 'none',
253
+ },
254
+ hover: {
255
+ background: '#FCF5F5',
256
+ text: '#C93939',
257
+ border: ' #C93939',
258
+ boxShadow: 'none',
259
+ },
260
+ active: {
261
+ background: '#FCF5F5',
262
+ text: '#C93939',
263
+ border: ' #C93939',
264
+ boxShadow: 'none',
265
+ },
266
+ disabled: {
267
+ background: 'transparent',
268
+ text: '#99989C',
269
+ border: ' #99989C',
270
+ boxShadow: 'none',
271
+ },
272
+ },
273
+ },
274
+ empty: {
275
+ default: {
276
+ // колір default
277
+ default: {
278
+ background: 'transparent',
279
+ text: '#FFFFFF',
280
+ border: 'transparent',
281
+ boxShadow: 'none',
282
+ },
283
+ hover: {
284
+ background: 'transparent',
285
+ text: '#80A0F5',
286
+ border: 'transparent',
287
+ boxShadow: 'none',
288
+ },
289
+ active: {
290
+ background: 'transparent',
291
+ text: '#80A0F5',
292
+ border: 'transparent',
293
+ boxShadow: 'none',
294
+ },
295
+ disabled: {
296
+ background: 'transparent',
297
+ text: '#99989C',
298
+ border: 'transparent',
299
+ boxShadow: 'none',
300
+ },
301
+ },
302
+ primary: {
303
+ // колір primary
304
+ default: {
305
+ background: 'transparent',
306
+ text: '#158EFF',
307
+ border: 'transparent',
308
+ boxShadow: 'none',
309
+ filledIcon: {
310
+ background: '#E5ECFD',
311
+ color: '#158EFF',
312
+ },
313
+ },
314
+ hover: {
315
+ background: 'transparent',
316
+ text: '#80A0F5',
317
+ border: 'transparent',
318
+ boxShadow: 'none',
319
+ filledIcon: {
320
+ background: '#158EFF',
321
+ color: '#ffffff',
322
+ },
323
+ },
324
+ active: {
325
+ background: 'transparent',
326
+ text: '#80A0F5',
327
+ border: 'transparent',
328
+ boxShadow: 'none',
329
+ filledIcon: {
330
+ background: '#158EFF',
331
+ color: '#ffffff',
332
+ },
333
+ },
334
+ disabled: {
335
+ background: 'transparent',
336
+ text: '#99989C',
337
+ border: 'transparent',
338
+ boxShadow: 'none',
339
+ filledIcon: {
340
+ background: '#BEBEBE',
341
+ color: '#99989C',
342
+ },
343
+ },
344
+ },
345
+ //default as secondary
346
+ secondary: {
347
+ // колір default
348
+ default: {
349
+ background: 'transparent',
350
+ text: '#FFFFFF',
351
+ border: 'transparent',
352
+ boxShadow: 'none',
353
+ },
354
+ hover: {
355
+ background: 'rgba(0, 0, 0, 0.05)',
356
+ text: '#FFFFFF',
357
+ border: 'transparent',
358
+ boxShadow: 'none',
359
+ },
360
+ active: {
361
+ background: 'rgba(0, 0, 0, 0.1)',
362
+ text: '#FFFFFF',
363
+ border: 'transparent',
364
+ boxShadow: 'none',
365
+ },
366
+ disabled: {
367
+ background: 'transparent',
368
+ text: '#99989C',
369
+ border: 'transparent',
370
+ boxShadow: 'none',
371
+ },
372
+ },
373
+ error: {
374
+ // колір error
375
+ default: {
376
+ background: 'transparent',
377
+ text: '#C93939',
378
+ border: 'transparent',
379
+ boxShadow: 'none',
380
+ },
381
+ hover: {
382
+ background: 'transparent',
383
+ text: '#FCF5F5',
384
+ border: 'transparent',
385
+ boxShadow: 'none',
386
+ },
387
+ active: {
388
+ background: 'transparent',
389
+ text: '#FCF5F5',
390
+ border: 'transparent',
391
+ boxShadow: 'none',
392
+ },
393
+ disabled: {
394
+ background: 'transparent',
395
+ text: '#99989C',
396
+ border: 'transparent',
397
+ boxShadow: 'none',
398
+ },
399
+ },
400
+ },
401
+ // Розміри кнопок
402
+ sizes: {
403
+ small: {
404
+ fontSize: 14,
405
+ iconSize: 16,
406
+ paddingInline: 10,
407
+ paddingBlock: 10,
408
+ borderRadius: 5,
409
+ borderWidth: 1,
410
+ gap: 10,
411
+ },
412
+ medium: {
413
+ fontSize: 16,
414
+ iconSize: 16,
415
+ paddingInline: 10,
416
+ paddingBlock: 10,
417
+ borderRadius: 5,
418
+ borderWidth: 1,
419
+ gap: 10,
420
+ },
421
+ },
422
+ },
423
+
424
+ // Компонент Sidebar
425
+ sidebar: {
426
+ background: '#0A0A0A',
427
+ border: '#1E2226',
428
+ width: 224,
429
+ collapsedWidth: 65,
430
+ text: {
431
+ default: '#ffffff',
432
+ active: '#158EFF',
433
+ hover: '#99989C',
434
+ },
435
+ item: {
436
+ default: {
437
+ background: 'transparent',
438
+ border: 'transparent',
439
+ padding: '10px 16px',
440
+ height: 40,
441
+ },
442
+ active: {
443
+ background: '#F3F7FF',
444
+ borderLeft: '2px solid #158EFF',
445
+ padding: '10px 16px',
446
+ height: 40,
447
+ },
448
+ hover: {
449
+ background: '#F3F3F3',
450
+ border: 'transparent',
451
+ padding: '10px 16px',
452
+ height: 40,
453
+ },
454
+ },
455
+ section: {
456
+ background: 'transparent',
457
+ padding: '16px 16px 8px',
458
+ title: {
459
+ color: '#99989C',
460
+ fontSize: '12px',
461
+ fontWeight: 600,
462
+ },
463
+ },
464
+ delimeter: {
465
+ color: '#34404C',
466
+ thickness: 1,
467
+ margin: '8px 0',
468
+ },
469
+ },
470
+ contextMenu: {
471
+ button: {
472
+ default: {
473
+ background: 'transparent',
474
+ text: '#FFFFFF',
475
+ border: ' #EBEBEB',
476
+ boxShadow: 'none',
477
+ },
478
+ hover: {
479
+ background: 'transparent',
480
+ text: '#158EFF',
481
+ border: ' #EBEBEB',
482
+ boxShadow: 'none',
483
+ },
484
+ active: {
485
+ background: 'transparent',
486
+ text: '#158EFF',
487
+ border: ' #EBEBEB',
488
+ boxShadow: 'none',
489
+ },
490
+ disabled: {
491
+ background: '#FAFAFA',
492
+ text: '#99989C',
493
+ border: ' #EBEBEB',
494
+ boxShadow: 'none',
495
+ },
496
+ },
497
+ delimeter: {
498
+ color: '#EBEBEB',
499
+ thickness: 1,
500
+ marginInline: 12,
501
+ marginBlock: 3,
502
+ style: 'solid',
503
+ },
504
+ shadow: '0px 4px 16px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.06)',
505
+ padding: 5,
506
+ icon: {
507
+ size: 7,
508
+ },
509
+ },
510
+ // Компонент Select
511
+ select: {
512
+ item: {
513
+ default: {
514
+ background: 'transparent',
515
+ text: '#FFFFFF',
516
+ border: ' none',
517
+ boxShadow: 'none',
518
+ },
519
+ hover: {
520
+ background: '#E5ECFD',
521
+ text: '#FFFFFF',
522
+ border: ' none',
523
+ boxShadow: 'none',
524
+ },
525
+ active: {
526
+ background: '#E8EAEE',
527
+ text: '#FFFFFF',
528
+ border: ' none',
529
+ boxShadow: 'none',
530
+ },
531
+ disabled: {
532
+ background: '#FAFAFA',
533
+ text: '#99989C',
534
+ border: ' none',
535
+ boxShadow: 'none',
536
+ },
537
+ },
538
+ },
539
+ // Компонент RowActionsMenu
540
+ rowActionsMenu: {
541
+ button: {
542
+ default: {
543
+ background: 'transparent',
544
+ text: '#FFFFFF',
545
+ border: ' none',
546
+ boxShadow: 'none',
547
+ },
548
+ hover: {
549
+ background: 'transparent',
550
+ text: '#158EFF',
551
+ border: ' none',
552
+ boxShadow: 'none',
553
+ },
554
+ active: {
555
+ background: 'transparent',
556
+ text: '#158EFF',
557
+ border: ' none',
558
+ boxShadow: 'none',
559
+ },
560
+ disabled: {
561
+ background: '#FAFAFA',
562
+ text: '#99989C',
563
+ border: ' none',
564
+ boxShadow: 'none',
565
+ },
566
+ },
567
+ delimiterColor: '#EBEBEB',
568
+ icon: {
569
+ size: 16,
570
+ },
571
+ },
572
+ // Компонент Input
573
+ input: {
574
+ sizes: {
575
+ empty: {
576
+ fontSize: 14,
577
+ paddingInline: 0,
578
+ paddingBlock: 0,
579
+ borderRadius: 0,
580
+ iconSize: 14,
581
+ height: 'auto',
582
+ },
583
+ small: {
584
+ fontSize: 14,
585
+ paddingInline: 10,
586
+ paddingBlock: 10,
587
+ borderRadius: 5,
588
+ iconSize: 14,
589
+ height: 40,
590
+ },
591
+ medium: {
592
+ fontSize: 16,
593
+ paddingInline: 10,
594
+ paddingBlock: 10,
595
+ borderRadius: 5,
596
+ iconSize: 16,
597
+ height: 40,
598
+ },
599
+ },
600
+ outlined: {
601
+ default: {
602
+ background: 'transparent',
603
+ text: '#FFFFFF',
604
+ placeholder: '#99989C',
605
+ border: ' #EBEBEB',
606
+ boxShadow: 'none',
607
+ icon: '#FFFFFF',
608
+ },
609
+ focus: {
610
+ background: 'transparent',
611
+ text: '#FFFFFF',
612
+ placeholder: '#99989C',
613
+ border: ' #158EFF',
614
+ boxShadow: 'none',
615
+ icon: '#FFFFFF',
616
+ },
617
+ error: {
618
+ background: 'transparent',
619
+ text: '#FFFFFF',
620
+ placeholder: '#99989C',
621
+ border: ' #C93939',
622
+ boxShadow: 'none',
623
+ icon: '#C93939',
624
+ },
625
+ disabled: {
626
+ background: '#FAFAFA',
627
+ text: '#99989C',
628
+ placeholder: '#99989C',
629
+ border: ' #EBEBEB',
630
+ boxShadow: 'none',
631
+ icon: '#99989C',
632
+ },
633
+ },
634
+ empty: {
635
+ default: {
636
+ background: 'transparent',
637
+ text: '#FFFFFF',
638
+ placeholder: '#99989C',
639
+ border: ' transparent',
640
+ boxShadow: 'none',
641
+ icon: '#FFFFFF',
642
+ },
643
+ focus: {
644
+ background: 'transparent',
645
+ text: '#FFFFFF',
646
+ placeholder: '#99989C',
647
+ border: ' transparent',
648
+ boxShadow: 'none',
649
+ icon: '#FFFFFF',
650
+ },
651
+ error: {
652
+ background: 'transparent',
653
+ text: '#FFFFFF',
654
+ placeholder: '#99989C',
655
+ border: ' transparent',
656
+ boxShadow: 'none',
657
+ icon: '#C93939',
658
+ },
659
+ disabled: {
660
+ background: '#FAFAFA',
661
+ text: '#99989C',
662
+ placeholder: '#99989C',
663
+ border: 'transparent',
664
+ boxShadow: 'none',
665
+ icon: '#99989C',
666
+ },
667
+ },
668
+ },
669
+ box: {
670
+ padding: 20,
671
+ borderRadius: 8,
672
+ border: {
673
+ width: 1,
674
+ style: 'solid',
675
+ color: '#EBEBEB',
676
+ },
677
+ background: '#FFFFFF',
678
+ },
679
+ // Graph2D
680
+ graph2D: {
681
+ ring: {
682
+ highlightFill: 'rgba(255, 165, 0, 0.3)',
683
+ },
684
+ button: {
685
+ stroke: '#e5e5e5',
686
+ normalFill: 'rgba(255, 255, 255, 0.8)',
687
+ hoverFill: 'rgba(230, 230, 230, 0.9)',
688
+ },
689
+ grid: {
690
+ dotColor: 'rgba(0, 0, 0, 0.5)',
691
+ },
692
+ link: {
693
+ normal: '#999',
694
+ highlighted: '#ff9900',
695
+ textColor: '#666',
696
+ highlightedTextColor: '#663300',
697
+ textBgColor: 'rgba(255, 255, 255, 0.8)',
698
+ highlightedTextBgColor: 'rgba(255, 230, 204, 0.9)',
699
+ },
700
+ },
701
+ };
702
+
703
+ export const darkTheme = convertPaletteToRem(darkThemePx, darkThemePx.baseSize) as DefaultTheme;
@@ -0,0 +1,2 @@
1
+ export * from './light';
2
+ export * from './dark';