File size: 2,541 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import { mode } from '@chakra-ui/theme-tools';

export const styles = {
   global: (props) => ({
      body: {
         paddingTop: 'calc(56px + 0.5rem) !important',
         bg: mode('light.bg', 'dark.bg')(props),
         color: mode('light.color', 'dark.color')(props),
      },

      'input,textArea,select': {
         backgroundColor: mode(
            'light.cardBg !important',
            'dark.bg !important'
         )(props),
         borderColor: mode(
            '#cfcece !important',
            'rgb(64 64 64) !important'
         )(props),
         _hover: {
            borderColor: mode(
               '#b1b1b1 !important',
               'rgb(96 96 96) !important'
            )(props),
         },
         _placeholder: {
            color: mode('', '#575757')(props),
         },
      },

      'input:focus-visible, textarea:focus-visible, select:focus-visible': {
         backgroundColor: mode('light.cardBg', 'dark.cardBg')(props),
         borderColor: mode(
            'light.primary !important',
            'dark.primary !important'
         )(props),

         boxShadow: mode(
            '0 0 0 1px rgb(59, 73, 223) !important',
            '0 0 0 1px rgb(129, 140, 248) !important'
         )(props),
      },

      '.mde-header': {
         borderBottom: mode(
            '1px solid rgb(23 23 23 / 13%) !important',
            '1px solid rgb(255 255 255 / 15%) !important'
         )(props),

         bg: mode('light.cardBg !important', 'dark.cardBg !important')(props),
      },

      'textarea.mde-text': {
         border: 'none !important',
         boxShadow: 'none !important',
         bg: mode('light.cardBg', 'dark.bg')(props),
      },

      'ul.mde-header-group li.mde-header-item button': {
         color: mode(
            'rgb(38 38 38) !important',
            'rgb(212 212 212) !important'
         )(props),

         _hover: {
            backgroundColor: 'light.secondary !important',
            borderRadius: '5px',
            color: mode(
               'light.headingHover !important',
               'dark.headingHover !important'
            )(props),
         },
      },

      '.shadow': {
         boxShadow: mode(
            '0 0 0 1px rgb(23 23 23 / 10%) !important',
            '0 0 0 1px rgb(255 255 255 / 15%) !important'
         )(props),
      },

      '.shadowSecondary': {
         boxShadow: mode(
            '0 0 0 1px rgb(23 23 23 / 5%) !important',
            '0 0 0 1px rgb(255 255 255 / 10%) !important'
         )(props),
      },
   }),
};