diff --git a/site/blog/app/(web)/code-snippets/[slug]/MDXContent.tsx b/site/blog/app/(web)/code-snippets/[slug]/MDXContent.tsx index 623abc0..5a3948a 100644 --- a/site/blog/app/(web)/code-snippets/[slug]/MDXContent.tsx +++ b/site/blog/app/(web)/code-snippets/[slug]/MDXContent.tsx @@ -14,27 +14,29 @@ import CssGradientBtn from "@/md/posts-mdx/css-gradient/GradientBtn"; import "remark-gh-alerts/styles/github-base.css"; import "remark-gh-alerts/styles/github-colors-light.css"; +import "remark-gh-alerts/styles/github-colors-dark-class.css"; const options: MDXRemoteProps["options"] = { mdxOptions: { remarkPlugins: [ [remarkToc, { maxDepth: 4 }], remarkGfm, - // @ts-ignore remarkGithubAlerts, ], rehypePlugins: [ rehypeSlug, rehypeAutolinkHeadings, - // @ts-ignore - [rehypeShiki, { theme: "vitesse-light" }], + [ + rehypeShiki, + { themes: { light: "vitesse-light", dark: "vitesse-dark" } }, + ], ], }, }; export default function MDXContent(props: Pick) { return ( -
+
( -
+
©2022-{new Date().getFullYear()} Qhan W. All Rights Reserved. (