Skip to content

Commit

Permalink
Improve website code block styles
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Feb 12, 2024
1 parent f7ac944 commit aac8b54
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/website/src/components/MDX.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ const components = {
return (
<Highlight
code={children.props.children}
theme={themes.vsLight}
theme={{
...themes.oneLight,
plain: {
...themes.oneLight.plain,
background: 'transparent',
},
}}
language={
matches && matches.groups && matches.groups.lang
? matches.groups.lang
Expand Down

0 comments on commit aac8b54

Please sign in to comment.