From e6f19e142ab978c44ea0eaba3b3e929b113b327e Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 9 Nov 2025 09:06:54 +0000 Subject: [PATCH] Updated DocsLayout with theme support cgen-c3e5f66eefd945dcbc84a671a3f3c930 --- client/components/docs/DocsLayout.tsx | 112 +++++++++++++++----------- 1 file changed, 67 insertions(+), 45 deletions(-) diff --git a/client/components/docs/DocsLayout.tsx b/client/components/docs/DocsLayout.tsx index e90318c4..f8a3b38b 100644 --- a/client/components/docs/DocsLayout.tsx +++ b/client/components/docs/DocsLayout.tsx @@ -13,8 +13,11 @@ import { Layers, BookMarked, ArrowLeft, + Moon, + Sun, } from "lucide-react"; import { Input } from "@/components/ui/input"; +import { useDocsTheme } from "@/contexts/DocsThemeContext"; interface DocNavItem { title: string; @@ -98,6 +101,7 @@ export default function DocsLayout({ const [sidebarOpen, setSidebarOpen] = useState(false); const [searchQuery, setSearchQuery] = useState(""); const location = useLocation(); + const { colors, toggleTheme, theme } = useDocsTheme(); const filteredNav = useMemo(() => { if (!searchQuery) return docNavigation; @@ -112,31 +116,52 @@ export default function DocsLayout({ const isCurrentPage = (path: string) => location.pathname === path; return ( -
+
{/* Sidebar */}