9
9
BUTTON_SM_HEIGHT ,
10
10
BUTTON_XL_HEIGHT ,
11
11
} from "../constants" ;
12
- import tw from "../tailwind" ;
13
- import colors from "./colors" ;
12
+ import tw from "../tailwindColors" ;
14
13
15
14
let muiTheme = createTheme ( {
16
15
palette : {
@@ -22,46 +21,46 @@ let muiTheme = createTheme({
22
21
dark : tw . sky [ 400 ] ,
23
22
} ,
24
23
secondary : {
25
- main : colors . gray [ 11 ] ,
26
- contrastText : colors . gray [ 4 ] ,
27
- dark : colors . gray [ 9 ] ,
24
+ main : tw . zinc [ 500 ] ,
25
+ contrastText : tw . zinc [ 200 ] ,
26
+ dark : tw . zinc [ 400 ] ,
28
27
} ,
29
28
background : {
30
- default : colors . gray [ 17 ] ,
31
- paper : colors . gray [ 16 ] ,
29
+ default : tw . zinc [ 950 ] ,
30
+ paper : tw . zinc [ 900 ] ,
32
31
} ,
33
32
text : {
34
- primary : colors . gray [ 1 ] ,
35
- secondary : colors . gray [ 6 ] ,
36
- disabled : colors . gray [ 9 ] ,
33
+ primary : tw . zinc [ 50 ] ,
34
+ secondary : tw . zinc [ 300 ] ,
35
+ disabled : tw . zinc [ 400 ] ,
37
36
} ,
38
- divider : colors . gray [ 13 ] ,
37
+ divider : tw . zinc [ 700 ] ,
39
38
warning : {
40
- light : colors . orange [ 9 ] ,
41
- main : colors . orange [ 12 ] ,
42
- dark : colors . orange [ 15 ] ,
39
+ light : tw . amber [ 500 ] ,
40
+ main : tw . amber [ 800 ] ,
41
+ dark : tw . amber [ 950 ] ,
43
42
} ,
44
43
success : {
45
- main : colors . green [ 11 ] ,
46
- dark : colors . green [ 12 ] ,
44
+ main : tw . green [ 500 ] ,
45
+ dark : tw . green [ 600 ] ,
47
46
} ,
48
47
info : {
49
- light : colors . blue [ 7 ] ,
50
- main : colors . blue [ 9 ] ,
51
- dark : colors . blue [ 14 ] ,
52
- contrastText : colors . gray [ 4 ] ,
48
+ light : tw . blue [ 400 ] ,
49
+ main : tw . blue [ 600 ] ,
50
+ dark : tw . blue [ 950 ] ,
51
+ contrastText : tw . zinc [ 200 ] ,
53
52
} ,
54
53
error : {
55
- light : colors . red [ 6 ] ,
56
- main : colors . red [ 8 ] ,
57
- dark : colors . red [ 15 ] ,
58
- contrastText : colors . gray [ 4 ] ,
54
+ light : tw . red [ 400 ] ,
55
+ main : tw . red [ 500 ] ,
56
+ dark : tw . red [ 950 ] ,
57
+ contrastText : tw . zinc [ 200 ] ,
59
58
} ,
60
59
action : {
61
- hover : colors . gray [ 14 ] ,
60
+ hover : tw . zinc [ 800 ] ,
62
61
} ,
63
62
neutral : {
64
- main : colors . gray [ 1 ] ,
63
+ main : tw . zinc [ 50 ] ,
65
64
} ,
66
65
} ,
67
66
typography : {
@@ -118,7 +117,7 @@ muiTheme = createTheme(muiTheme, {
118
117
} ,
119
118
} ,
120
119
colorDefault : {
121
- backgroundColor : colors . gray [ 6 ] ,
120
+ backgroundColor : tw . zinc [ 300 ] ,
122
121
} ,
123
122
} ,
124
123
} ,
@@ -170,26 +169,26 @@ muiTheme = createTheme(muiTheme, {
170
169
} ,
171
170
outlined : {
172
171
":hover" : {
173
- border : `1px solid ${ colors . gray [ 11 ] } ` ,
172
+ border : `1px solid ${ tw . zinc [ 500 ] } ` ,
174
173
} ,
175
174
} ,
176
175
outlinedNeutral : {
177
- borderColor : colors . gray [ 12 ] ,
176
+ borderColor : tw . zinc [ 600 ] ,
178
177
179
178
"&.Mui-disabled" : {
180
- borderColor : colors . gray [ 13 ] ,
181
- color : colors . gray [ 11 ] ,
179
+ borderColor : tw . zinc [ 700 ] ,
180
+ color : tw . zinc [ 500 ] ,
182
181
183
182
"& > .MuiLoadingButton-loadingIndicator" : {
184
- color : colors . gray [ 11 ] ,
183
+ color : tw . zinc [ 500 ] ,
185
184
} ,
186
185
} ,
187
186
} ,
188
187
containedNeutral : {
189
- backgroundColor : colors . gray [ 14 ] ,
188
+ backgroundColor : tw . zinc [ 800 ] ,
190
189
191
190
"&:hover" : {
192
- backgroundColor : colors . gray [ 13 ] ,
191
+ backgroundColor : tw . zinc [ 700 ] ,
193
192
} ,
194
193
} ,
195
194
iconSizeMedium : {
@@ -212,7 +211,7 @@ muiTheme = createTheme(muiTheme, {
212
211
root : {
213
212
">button:hover+button" : {
214
213
// The !important is unfortunate, but necessary for the border.
215
- borderLeftColor : `${ colors . gray [ 11 ] } !important` ,
214
+ borderLeftColor : `${ tw . zinc [ 500 ] } !important` ,
216
215
} ,
217
216
} ,
218
217
} ,
@@ -318,7 +317,7 @@ muiTheme = createTheme(muiTheme, {
318
317
MuiChip : {
319
318
styleOverrides : {
320
319
root : {
321
- backgroundColor : colors . gray [ 12 ] ,
320
+ backgroundColor : tw . zinc [ 600 ] ,
322
321
} ,
323
322
} ,
324
323
} ,
@@ -399,12 +398,12 @@ muiTheme = createTheme(muiTheme, {
399
398
colorPrimary : {
400
399
// Same as button
401
400
"& .MuiOutlinedInput-notchedOutline" : {
402
- borderColor : colors . gray [ 12 ] ,
401
+ borderColor : tw . zinc [ 600 ] ,
403
402
} ,
404
403
// The default outlined input color is white, which seemed jarring.
405
404
"&:hover:not(.Mui-error):not(.Mui-focused) .MuiOutlinedInput-notchedOutline" :
406
405
{
407
- borderColor : colors . gray [ 11 ] ,
406
+ borderColor : tw . zinc [ 500 ] ,
408
407
} ,
409
408
} ,
410
409
} ,
@@ -442,11 +441,11 @@ muiTheme = createTheme(muiTheme, {
442
441
* customization).
443
442
*/
444
443
"&.Mui-focusVisible" : {
445
- boxShadow : `0 0 0 2px ${ colors . blue [ 7 ] } ` ,
444
+ boxShadow : `0 0 0 2px ${ tw . blue [ 400 ] } ` ,
446
445
} ,
447
446
448
447
"&.Mui-disabled" : {
449
- color : colors . gray [ 11 ] ,
448
+ color : tw . zinc [ 500 ] ,
450
449
} ,
451
450
} ,
452
451
} ,
@@ -458,7 +457,7 @@ muiTheme = createTheme(muiTheme, {
458
457
".Mui-focusVisible .MuiSwitch-thumb" : {
459
458
// Had to thicken outline to make sure that the focus color didn't
460
459
// bleed into the thumb and was still easily-visible
461
- boxShadow : `0 0 0 3px ${ colors . blue [ 7 ] } ` ,
460
+ boxShadow : `0 0 0 3px ${ tw . blue [ 400 ] } ` ,
462
461
} ,
463
462
} ,
464
463
} ,
@@ -542,7 +541,7 @@ muiTheme = createTheme(muiTheme, {
542
541
styleOverrides : {
543
542
root : {
544
543
"&.Mui-focusVisible" : {
545
- boxShadow : `0 0 0 2px ${ colors . blue [ 7 ] } ` ,
544
+ boxShadow : `0 0 0 2px ${ tw . blue [ 400 ] } ` ,
546
545
} ,
547
546
} ,
548
547
} ,
0 commit comments