diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsx index 68e9659..2451817 100644 --- a/app/docs/[[...slug]]/page.tsx +++ b/app/docs/[[...slug]]/page.tsx @@ -26,8 +26,8 @@ export default async function Page(props: { const MDX = page.data.body return ( -
-
+
+
-
+
) } diff --git a/app/docs/template.tsx b/app/docs/template.tsx index 42d9a20..e65af0e 100644 --- a/app/docs/template.tsx +++ b/app/docs/template.tsx @@ -11,7 +11,7 @@ import { ViewTransition } from "react" export default function DocsTemplate({ children }: { children: ReactNode }) { return ( -
{children}
+
{children}
) } diff --git a/components/docs-shell.tsx b/components/docs-shell.tsx index dc817b5..f5df8e0 100644 --- a/components/docs-shell.tsx +++ b/components/docs-shell.tsx @@ -15,6 +15,7 @@ import { DocsSidebarTrigger } from "@/components/docs-sidebar-trigger" import { GithubStars } from "@/components/github-stars" import { Logo } from "@/components/logo" import { SearchTrigger } from "@/components/search-trigger" +import { ThemeToggle } from "@/components/theme-toggle" import { FrameworkProvider } from "@/lib/framework" import { cn } from "@/lib/utils" import { @@ -28,7 +29,7 @@ import { const sidebarTokens: CSSProperties = { "--sidebar": "var(--background)", "--sidebar-foreground": "var(--foreground)", - "--sidebar-border": "transparent", + "--sidebar-border": "var(--border)", "--sidebar-accent": "color-mix(in oklch, var(--foreground) 6%, transparent)", "--sidebar-accent-foreground": "var(--foreground)", "--sidebar-ring": "var(--ring)", @@ -93,8 +94,8 @@ function WindowEdgeFade({
{EDGE_BLUR_LAYERS.map((layer, i) => { @@ -117,9 +118,7 @@ function WindowEdgeFade({ } /** - * Docs chrome: canvas sidebar + a real inset content window. - * The window is a flex column; the article scrolls inside it so the ring, - * corners, and shadow never have to be faked with overlays. + * Docs chrome: full-viewport panes split by borders. */ export function DocsShell({ tree, @@ -161,11 +160,9 @@ export function DocsShell({ - + - -
- {children} -
- - - -
- -
- + +
+
+ +
+ + +
+
+
+
+ {children} +
+ + + +
diff --git a/components/docs-sidebar.tsx b/components/docs-sidebar.tsx index d209174..4b0aa1d 100644 --- a/components/docs-sidebar.tsx +++ b/components/docs-sidebar.tsx @@ -271,11 +271,10 @@ export function DocsSidebar({ - + -
+