Skip to content

Commit 9df0dbd

Browse files
committed
fixing <summary>, <details> and Bigquote for darkmode
1 parent b08e096 commit 9df0dbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/StyledMarkdownBlock.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,15 @@ export const StyledMarkdownBlock = ({ markdown }: StyledMarkdownBlockProps) => {
186186
},
187187
summary: {
188188
component: ({ children }) => (
189-
<summary className='bg-slate-100 -mx-4 p-4 rounded-xl my-3 cursor-pointer hover:bg-slate-200'>
189+
<summary className='bg-slate-100 dark:bg-slate-700 -mx-4 p-4 rounded-xl my-3 cursor-pointer hover:bg-slate-200 dark:hover:bg-slate-600 text-slate-800 dark:text-slate-200'>
190190
{children}
191191
</summary>
192192
),
193193
},
194194
details: {
195195
component: ({ children }) => {
196196
return (
197-
<details className='bg-slate-50 p-0 rounded-xl my-3 px-4'>
197+
<details className='bg-slate-50 dark:bg-slate-800 p-0 rounded-xl my-3 px-4'>
198198
{children}
199199
</details>
200200
);
@@ -349,7 +349,7 @@ export const StyledMarkdownBlock = ({ markdown }: StyledMarkdownBlockProps) => {
349349
Bigquote: {
350350
component: ({ children }) => {
351351
return (
352-
<div className='text-h2mobile md:text-h2 text-center p-10 py-16 font-semibold text-slate-500 bg-slate-50 mb-4 rounded-xl'>
352+
<div className='text-h2mobile md:text-h2 text-center p-10 py-16 font-semibold text-slate-500 dark:text-slate-300 bg-slate-50 dark:bg-slate-700 mb-4 rounded-xl'>
353353
"{children}"
354354
</div>
355355
);

0 commit comments

Comments
 (0)