File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import remarkParse from 'remark-parse';
22
22
import stringify from 'rehype-stringify' ;
23
23
import { Helmet } from 'react-helmet-async' ;
24
24
import katexWhitelist from '../../lib/katexWhitelist' ;
25
+ import { themedPalette } from '../../lib/styles/themes' ;
25
26
26
27
export interface MarkdownRenderProps {
27
28
markdown : string ;
@@ -91,12 +92,12 @@ const MarkdownRenderBlock = styled.div`
91
92
table {
92
93
min-width: 40%;
93
94
max-width: 100%;
94
- border: 1px solid ${ palette . gray7 } ;
95
+ border: 1px solid ${ themedPalette . border2 } ;
95
96
border-collapse: collapse;
96
97
font-size: 0.875rem;
97
98
thead > tr > th {
98
99
/* text-align: left; */
99
- border-bottom: 4px solid ${ palette . gray7 } ;
100
+ border-bottom: 4px solid ${ themedPalette . border2 } ;
100
101
}
101
102
th,
102
103
td {
@@ -106,14 +107,14 @@ const MarkdownRenderBlock = styled.div`
106
107
107
108
td + td,
108
109
th + th {
109
- border-left: 1px solid ${ palette . gray7 } ;
110
+ border-left: 1px solid ${ themedPalette . border2 } ;
110
111
}
111
112
112
113
tr:nth-child(even) {
113
- background: ${ palette . gray1 } ;
114
+ background: ${ themedPalette . bg_element2 } ;
114
115
}
115
116
tr:nth-child(odd) {
116
- background: white ;
117
+ background: ${ themedPalette . bg_page1 } ;
117
118
}
118
119
}
119
120
You can’t perform that action at this time.
0 commit comments