Files
dex/docs/app/layout.tsx
T
zeekay 8d4749c4fb the docs layout imports the face it uses
docs/app/layout.tsx referenced ZenMono without importing it and without @hanzo/font in its dependencies at all, so the docs site could not compile: tsc reports "Cannot find name 'ZenMono'" on the bare tree. Both faces are imported from the package now, and the package is declared. The README hero card still asked for Inter.
2026-08-28 11:28:44 -07:00

40 lines
1.1 KiB
TypeScript

import "./global.css"
import { RootProvider } from "@hanzo/docs-ui/provider/next"
import { Zen } from "@hanzo/font/sans"
import { ZenMono } from "@hanzo/font/mono"
import type { ReactNode } from "react"
export const metadata = {
title: {
default: "LX - Ultra-High Performance Decentralized Exchange Documentation",
template: "%s | LX - Ultra-High Performance Decentralized Exchange",
},
description: "434M+ orders/sec, sub-microsecond latency, quantum-resistant",
}
export default function Layout({ children }: { children: ReactNode }) {
return (
<html
lang="en"
className={`${Zen.variable} ${ZenMono.variable}`}
suppressHydrationWarning
>
<body className="min-h-svh bg-background font-sans antialiased">
<RootProvider
search={{
enabled: true,
}}
theme={{
enabled: true,
defaultTheme: "dark",
}}
>
<div className="relative flex min-h-svh flex-col bg-background">
{children}
</div>
</RootProvider>
</body>
</html>
)
}