This repository was archived by the owner on Mar 13, 2023. It is now read-only.
File tree 1 file changed +28
-30
lines changed
1 file changed +28
-30
lines changed Original file line number Diff line number Diff line change 1
- import { extendTheme , ThemeConfig } from "@chakra-ui/react" ;
2
- import { createBreakpoints } from "@chakra-ui/theme-tools"
1
+ import { extendTheme , ThemeConfig } from '@chakra-ui/react' ;
3
2
4
3
const config : ThemeConfig = {
5
- initialColorMode : " light" ,
6
- useSystemColorMode : false ,
7
- cssVarPrefix : " chakra"
8
- } ,
4
+ initialColorMode : ' light' ,
5
+ useSystemColorMode : false ,
6
+ cssVarPrefix : ' chakra' ,
7
+ } ,
9
8
extend = {
9
+ breakpoints : {
10
+ sm : '30em' ,
11
+ md : '48em' ,
12
+ lg : '62em' ,
13
+ xl : '80em' ,
14
+ '2xl' : '96em' ,
15
+ // Extras
16
+ d_6xl : '72em' ,
17
+ } ,
10
18
colors : {
11
19
brand : {
12
- 50 : " #f0f2fd" ,
13
- 100 : " #a6b0f1" ,
14
- 200 : " #97a3ee" ,
15
- 300 : " #8995ec" ,
16
- 400 : " #7a88e9" ,
17
- 500 : " #6B7BE7" ,
18
- 600 : " #606fd0" ,
19
- 700 : " #5662b9" ,
20
- 800 : " #4b56a2" ,
21
- 900 : " #404a8b" ,
22
- }
23
- }
20
+ 50 : ' #f0f2fd' ,
21
+ 100 : ' #a6b0f1' ,
22
+ 200 : ' #97a3ee' ,
23
+ 300 : ' #8995ec' ,
24
+ 400 : ' #7a88e9' ,
25
+ 500 : ' #6B7BE7' ,
26
+ 600 : ' #606fd0' ,
27
+ 700 : ' #5662b9' ,
28
+ 800 : ' #4b56a2' ,
29
+ 900 : ' #404a8b' ,
30
+ } ,
31
+ } ,
24
32
} ;
25
33
26
- const breakpoints = createBreakpoints ( {
27
- sm : "30em" ,
28
- md : "48em" ,
29
- lg : "62em" ,
30
- xl : "80em" ,
31
- "2xl" : "96em" ,
32
- // Extras
33
- d_6xl : "72em" ,
34
- } )
35
-
36
- const theme = extendTheme ( { config, breakpoints, ...extend } )
37
- export default theme
34
+ const theme = extendTheme ( { config, ...extend } ) ;
35
+ export default theme ;
You can’t perform that action at this time.
0 commit comments