Skip to content

Commit 9271b78

Browse files
committed
Fixes table
1 parent 1c3249e commit 9271b78

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/components/common/MarkdownRender.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import remarkParse from 'remark-parse';
2222
import stringify from 'rehype-stringify';
2323
import { Helmet } from 'react-helmet-async';
2424
import katexWhitelist from '../../lib/katexWhitelist';
25+
import { themedPalette } from '../../lib/styles/themes';
2526

2627
export interface MarkdownRenderProps {
2728
markdown: string;
@@ -91,12 +92,12 @@ const MarkdownRenderBlock = styled.div`
9192
table {
9293
min-width: 40%;
9394
max-width: 100%;
94-
border: 1px solid ${palette.gray7};
95+
border: 1px solid ${themedPalette.border2};
9596
border-collapse: collapse;
9697
font-size: 0.875rem;
9798
thead > tr > th {
9899
/* text-align: left; */
99-
border-bottom: 4px solid ${palette.gray7};
100+
border-bottom: 4px solid ${themedPalette.border2};
100101
}
101102
th,
102103
td {
@@ -106,14 +107,14 @@ const MarkdownRenderBlock = styled.div`
106107
107108
td + td,
108109
th + th {
109-
border-left: 1px solid ${palette.gray7};
110+
border-left: 1px solid ${themedPalette.border2};
110111
}
111112
112113
tr:nth-child(even) {
113-
background: ${palette.gray1};
114+
background: ${themedPalette.bg_element2};
114115
}
115116
tr:nth-child(odd) {
116-
background: white;
117+
background: ${themedPalette.bg_page1};
117118
}
118119
}
119120

0 commit comments

Comments
 (0)