add catppuccin

This commit is contained in:
DefectingCat
2023-11-10 09:29:00 +08:00
parent c0bba6a6ac
commit ef238ab76c
5 changed files with 103 additions and 25 deletions

View File

@ -7,9 +7,8 @@ import RUAThemeProvider from 'components/pages/theme-provider';
import fonts from 'lib/fonts';
import { Metadata } from 'next';
import 'styles/globals.css';
import 'styles/prism-one-dark.css';
import 'styles/prism-one-light.css';
import 'styles/rua.css';
import '@catppuccin/highlightjs/sass/catppuccin.variables.scss';
export const metadata: Metadata = {
title: 'RUA',
@ -41,7 +40,7 @@ export default function RootLayout({
crossOrigin=""
/>
</head>
<body>
<body className="latte">
<RUAThemeProvider>
<div className="flex flex-col min-h-[100vh]">
<HeadBar />

View File

@ -1,4 +1,3 @@
import rehypePrism from '@mapbox/rehype-prism';
import clsx from 'clsx';
import components from 'components/mdx/components';
import data from 'content/mdx-data';
@ -9,6 +8,7 @@ import dynamic from 'next/dynamic';
import { notFound } from 'next/navigation';
import rehypeSlug from 'rehype-slug';
import remarkGfm from 'remark-gfm';
import rehypeHighlight from 'rehype-highlight';
import { Post } from 'types';
const PostToc = dynamic(() => import('components/post/post-toc'));
@ -46,7 +46,7 @@ const Page = async ({
mdxOptions: {
remarkPlugins: [remarkGfm],
rehypePlugins: [
[rehypePrism, { alias: { vue: 'xml' }, ignoreMissing: true }],
[rehypeHighlight, { alias: { vue: 'xml' }, ignoreMissing: true }],
rehypeSlug,
],
},
@ -70,7 +70,6 @@ const Page = async ({
<article id="post-content">
{mdxSource.content}
<PostCommnetLine />
<div className="mt-4">
<PostComment />