File size: 1,378 Bytes
eceb7aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import React from 'react';
import ReactDOM from 'react-dom/client';
import { ChakraProvider, extendTheme } from '@chakra-ui/react';
import App from './App';

// Theme configuration for dark mode
const theme = extendTheme({
  config: {
    initialColorMode: 'dark',
    useSystemColorMode: false,
  },
  styles: {
    global: {
      body: {
        bg: '#000',
        color: '#fff',
      }
    }
  },
  colors: {
    brand: {
      100: '#f7fafc',
      900: '#1a202c',
    },
    gray: {
      50: '#f7fafc',
      100: '#edf2f7',
      700: '#2d3748',
      800: '#1a202c',
      900: '#0f1116',
    }
  },
  components: {
    Button: {
      baseStyle: {
        borderRadius: 'md',
      },
      variants: {
        solid: {
          bg: 'gray.700',
          color: 'white',
          _hover: {
            bg: 'gray.800',
          }
        }
      }
    },
    Input: {
      variants: {
        filled: {
          field: {
            bg: 'gray.800',
            _hover: {
              bg: 'gray.700',
            },
            _focus: {
              bg: 'gray.700',
            }
          }
        }
      },
      defaultProps: {
        variant: 'filled',
      }
    }
  }
});

ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <ChakraProvider theme={theme}>
      <App />
    </ChakraProvider>
  </React.StrictMode>
);