1
1
import { Theme } from "@material-ui/core/styles"
2
2
import { SimplePaletteColorOptions } from "@material-ui/core/styles/createPalette"
3
3
import { Overrides } from "@material-ui/core/styles/overrides"
4
+ import { colors } from "./colors"
4
5
import { borderRadius , MONOSPACE_FONT_FAMILY } from "./constants"
5
6
6
7
export const getOverrides = ( { palette, breakpoints } : Theme ) : Overrides => {
7
8
return {
8
9
MuiCssBaseline : {
9
10
"@global" : {
10
11
body : {
11
- backgroundImage :
12
- "linear-gradient(to right bottom, hsl(223, 38%, 14%), hsl(221, 53%, 3%))" ,
12
+ backgroundImage : `linear-gradient(to right bottom, ${ colors . gray [ 15 ] } , ${ colors . gray [ 17 ] } )` ,
13
13
backgroundRepeat : "no-repeat" ,
14
14
backgroundAttachment : "fixed" ,
15
15
letterSpacing : "-0.015em" ,
@@ -40,7 +40,7 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
40
40
contained : {
41
41
boxShadow : "none" ,
42
42
color : palette . text . primary ,
43
- backgroundColor : "hsl(223, 27%, 3%)" ,
43
+ backgroundColor : colors . gray [ 17 ] ,
44
44
"&:hover" : {
45
45
boxShadow : "none" ,
46
46
backgroundColor : "#000000" ,
@@ -68,8 +68,8 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
68
68
} ,
69
69
MuiTableHead : {
70
70
root : {
71
+ display : "table-header-group" ,
71
72
fontFamily : MONOSPACE_FONT_FAMILY ,
72
- textTransform : "uppercase" ,
73
73
} ,
74
74
} ,
75
75
MuiTableContainer : {
@@ -80,7 +80,11 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
80
80
} ,
81
81
MuiTable : {
82
82
root : {
83
- background : "hsla(222, 31%, 19%, .5)" ,
83
+ borderCollapse : "collapse" ,
84
+ border : "none" ,
85
+ background : colors . gray [ 15 ] ,
86
+ boxShadow : `0 0 0 1px ${ colors . gray [ 15 ] } inset` ,
87
+ overflow : "hidden" ,
84
88
85
89
"& td" : {
86
90
paddingTop : 16 ,
@@ -95,16 +99,19 @@ export const getOverrides = ({ palette, breakpoints }: Theme): Overrides => {
95
99
} ,
96
100
} ,
97
101
} ,
102
+
98
103
MuiTableCell : {
99
104
head : {
100
- color : palette . text . secondary ,
105
+ fontSize : 14 ,
106
+ color : colors . gray [ 5 ] ,
107
+ fontWeight : 600 ,
101
108
} ,
102
109
root : {
103
110
fontFamily : MONOSPACE_FONT_FAMILY ,
104
111
fontSize : 16 ,
105
112
background : palette . background . paper ,
106
113
borderBottom : `1px solid ${ palette . divider } ` ,
107
- padding : 8 ,
114
+ padding : "12px 8px" ,
108
115
// This targets the first+last td elements, and also the first+last elements
109
116
// of a TableCellLink.
110
117
"&:not(:only-child):first-child, &:not(:only-child):first-child > a" : {
0 commit comments