diff --git a/packages/website/package.json b/packages/website/package.json
index 3c35f2c62..e859afe4a 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -10,7 +10,6 @@
"start": "waku start --with-ssr"
},
"dependencies": {
- "bright": "^0.8.4",
"clsx": "^2.1.0",
"framer-motion": "^11.0.3",
"jotai": "^2.6.3",
@@ -25,6 +24,7 @@
"autoprefixer": "^10.4.17",
"prettier": "^3.2.4",
"prettier-plugin-tailwindcss": "^0.5.11",
+ "shiki": "1.0.0-beta.0",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"vite": "5.0.12"
diff --git a/packages/website/src/components/client-only.tsx b/packages/website/src/components/client-only.tsx
deleted file mode 100644
index b1830e60c..000000000
--- a/packages/website/src/components/client-only.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-'use client';
-
-import { useEffect, useState } from 'react';
-import type { ReactNode } from 'react';
-
-type ClientOnlyProps = {
- children: ReactNode;
-};
-
-export const ClientOnly = ({ children }: ClientOnlyProps) => {
- const [hasMounted, setHasMounted] = useState(false);
-
- useEffect(() => {
- setHasMounted(true);
- }, []);
-
- if (!hasMounted) {
- return null;
- }
-
- return children;
-};
diff --git a/packages/website/src/components/code.tsx b/packages/website/src/components/code.tsx
index e5dd00ba3..3957c4b4a 100644
--- a/packages/website/src/components/code.tsx
+++ b/packages/website/src/components/code.tsx
@@ -1,14 +1,14 @@
-import { Code as BrightCode } from 'bright';
-
-import { ClientOnly } from './client-only.js';
-import theme from '../theme.json';
+import { highlighter } from '../lib/index.js';
type CodeProps = {
code: string;
};
-export const Code = ({ code, ...rest }: CodeProps) => (
-
-
-
-);
+export const Code = async ({ code, ...rest }: CodeProps) => {
+ const html = highlighter.codeToHtml(code.trim(), {
+ lang: 'tsx',
+ theme: 'lucy',
+ });
+
+ return
;
+};
diff --git a/packages/website/src/components/mdx.tsx b/packages/website/src/components/mdx.tsx
index 3d18caf5a..db905d7f4 100644
--- a/packages/website/src/components/mdx.tsx
+++ b/packages/website/src/components/mdx.tsx
@@ -81,14 +81,14 @@ export const components = {
pre: ({ children, ...rest }: any) => (
),
blockquote: ({ children, ...rest }: any) => {
return (
-
-
+
+