From da3fe973f6c808310d772a1f6202a16e458307a1 Mon Sep 17 00:00:00 2001 From: "Alexandru Vlad (Scai)" <59282365+alexevladgabriel@users.noreply.github.com> Date: Sun, 15 Nov 2026 18:11:03 +0200 Subject: [PATCH 1/4] feat(docs): style the docs like the Hub's redesigned pages The docs shared the header idea and tokens with the Hub's pages but still drew hard offset shadows, rounded Fumadocs chrome and white code, so they read as another site. They now use the Hub's pieces: square corners, 3px edges on cards and controls, 2px rules, no offset shadows, navy code in both themes, sky only as an accent. - Top bar: the Hub nav's buttons, theme switch and search input; navy ground and a slate line in the dark theme. - Sidebar and TOC: the Hub's app sidebar (light sky current item, sky edge) and the plugin page's section links. - Page: the plugin page's kicker and title; the Hub's prose links, inline code chips, square lists, Markdown tables (3px edge, sky head). - Code blocks: the egg page's navy install script, with Shiki's dark colours. - Callouts: the Hub's alerts (3px edge, 8px tone edge). Tabs: the plugin page's tabs. "Your setup": a Hub card with its form fields. - Page footer, search dialog: square, edged, no shadows. Mermaid: classic look in the site's colours. - ui/tokens.css: the Hub's page roles as --pl-* tokens (additive). Everything is scoped to .dt-root (or :root:has(.dt-root) for the search dialog), so the interim landing pages are pixel-identical. --- app/docs/[[...slug]]/page.tsx | 12 +- app/global.css | 798 +++++++++++++++++++++++++++---- components/mdx/mermaid.tsx | 31 +- components/mdx/tabs.tsx | 3 +- components/setup/setup-panel.tsx | 27 +- ui/tokens.css | 43 +- 6 files changed, 791 insertions(+), 123 deletions(-) diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsx index d23dbba5..cbd3d401 100644 --- a/app/docs/[[...slug]]/page.tsx +++ b/app/docs/[[...slug]]/page.tsx @@ -35,7 +35,13 @@ export default async function Page(props: PageProps<'/docs/[[...slug]]'>) { ); return ( - +