@@ -47,16 +56,19 @@ export function SiteFooter({ width = "default" }: SiteFooterProps) {
Claude Code
-
+
Codex
OpenCode
@@ -69,7 +81,7 @@ export function SiteFooter({ width = "default" }: SiteFooterProps) {
href="https://discord.gg/jz8T2uahpH"
target="_blank"
rel="noopener noreferrer"
- className="block text-white/40 hover:text-white/60 transition-colors"
+ className="block text-muted-foreground hover:text-foreground transition-colors"
>
Discord
@@ -77,7 +89,7 @@ export function SiteFooter({ width = "default" }: SiteFooterProps) {
href="https://github.com/getpaseo/paseo"
target="_blank"
rel="noopener noreferrer"
- className="block text-white/40 hover:text-white/60 transition-colors"
+ className="block text-muted-foreground hover:text-foreground transition-colors"
>
GitHub
@@ -90,7 +102,7 @@ export function SiteFooter({ width = "default" }: SiteFooterProps) {
href={appStoreUrl}
target="_blank"
rel="noopener noreferrer"
- className="block text-white/40 hover:text-white/60 transition-colors"
+ className="block text-muted-foreground hover:text-foreground transition-colors"
>
App Store
@@ -98,7 +110,7 @@ export function SiteFooter({ width = "default" }: SiteFooterProps) {
href={playStoreUrl}
target="_blank"
rel="noopener noreferrer"
- className="block text-white/40 hover:text-white/60 transition-colors"
+ className="block text-muted-foreground hover:text-foreground transition-colors"
>
Google Play
@@ -106,7 +118,7 @@ export function SiteFooter({ width = "default" }: SiteFooterProps) {
href="https://github.com/getpaseo/paseo/releases"
target="_blank"
rel="noopener noreferrer"
- className="block text-white/40 hover:text-white/60 transition-colors"
+ className="block text-muted-foreground hover:text-foreground transition-colors"
>
Desktop
@@ -114,7 +126,7 @@ export function SiteFooter({ width = "default" }: SiteFooterProps) {
href={webAppUrl}
target="_blank"
rel="noopener noreferrer"
- className="block text-white/40 hover:text-white/60 transition-colors"
+ className="block text-muted-foreground hover:text-foreground transition-colors"
>
Web App
diff --git a/packages/website/src/components/site-header.tsx b/packages/website/src/components/site-header.tsx
index d57020f34..a8935f6e7 100644
--- a/packages/website/src/components/site-header.tsx
+++ b/packages/website/src/components/site-header.tsx
@@ -48,7 +48,7 @@ export function SiteHeader() {
className="text-muted-foreground hover:text-foreground transition-colors inline-flex items-center"
>
| undefined;
-function getDocsHighlighter(): Promise {
+export function getDocsHighlighter(): Promise {
docsHighlighter ??= Promise.all([
import("shiki/themes/catppuccin-mocha.mjs"),
import("shiki/langs/bash.mjs"),
@@ -39,14 +38,6 @@ function getDocsHighlighter(): Promise {
}
export const docsRehypePlugins: PluggableList = [
- [
- rehypePrettyCode,
- {
- theme: "catppuccin-mocha",
- keepBackground: false,
- getHighlighter: getDocsHighlighter,
- },
- ],
rehypeSlug,
[
rehypeAutolinkHeadings,
diff --git a/packages/website/src/routes/docs/$.tsx b/packages/website/src/routes/docs/$.tsx
index 0920cff05..fa8bc0082 100644
--- a/packages/website/src/routes/docs/$.tsx
+++ b/packages/website/src/routes/docs/$.tsx
@@ -1,8 +1,7 @@
import { createFileRoute } from "@tanstack/react-router";
-import { MarkdownAsync } from "react-markdown";
+import { DocsMarkdown } from "~/components/docs-markdown";
import { DocsSourceFooter } from "~/components/docs-source-footer";
import { getDoc } from "~/docs";
-import { docsRehypePlugins, docsRemarkPlugins } from "~/docs-rehype";
import { pageMeta } from "~/meta";
export const Route = createFileRoute("/docs/$")({
@@ -23,7 +22,7 @@ function DocsPage() {
return ;
}
-async function RenderedDoc({ slug }: { slug: string }) {
+function RenderedDoc({ slug }: { slug: string }) {
const doc = getDoc(slug);
if (!doc) {
@@ -32,9 +31,7 @@ async function RenderedDoc({ slug }: { slug: string }) {
return (
<>
-
- {doc.content}
-
+ {doc.content}
>
);
diff --git a/packages/website/src/routes/docs/index.tsx b/packages/website/src/routes/docs/index.tsx
index a834d674e..98652e360 100644
--- a/packages/website/src/routes/docs/index.tsx
+++ b/packages/website/src/routes/docs/index.tsx
@@ -1,8 +1,7 @@
import { createFileRoute } from "@tanstack/react-router";
-import { MarkdownAsync } from "react-markdown";
+import { DocsMarkdown } from "~/components/docs-markdown";
import { DocsSourceFooter } from "~/components/docs-source-footer";
import { getDoc } from "~/docs";
-import { docsRehypePlugins, docsRemarkPlugins } from "~/docs-rehype";
import { pageMeta } from "~/meta";
export const Route = createFileRoute("/docs/")({
@@ -16,14 +15,12 @@ export const Route = createFileRoute("/docs/")({
component: DocsIndex,
});
-async function DocsIndex() {
+function DocsIndex() {
const doc = getDoc("");
if (!doc) return Doc not found.
;
return (
<>
-
- {doc.content}
-
+ {doc.content}
>
);
diff --git a/packages/website/src/styles.css b/packages/website/src/styles.css
index 74b17d1a9..f1ebdc4b1 100644
--- a/packages/website/src/styles.css
+++ b/packages/website/src/styles.css
@@ -253,7 +253,7 @@
}
.docs-prose pre {
- background-color: var(--color-card);
+ background-color: var(--color-card) !important;
border: 1px solid var(--color-border);
border-radius: 0.5rem;
padding: 1rem;
@@ -439,10 +439,10 @@
--color-mock-accent: #20744a;
--color-mock-green: #22c55e;
--color-mock-green-400: #4ade80;
- --color-mock-red: #ef4444;
+ --color-mock-red: #f87171;
--color-mock-amber: #f59e0b;
--color-mock-blue: #3b82f6;
- --color-mock-zinc500: #71717a;
+ --color-mock-zinc500: #a1a5a4;
--color-mock-zinc600: #52525b;
--color-mock-diff-add: rgba(46, 160, 67, 0.15);
--color-mock-diff-remove: rgba(248, 81, 73, 0.1);