mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Twelve example apps opened with next/font/google Inter, so every developer who copied one started their project on a face that is not ours and a request to a font host we do not control. They use @hanzo/font's ZenSans (and ZenMono where the example wanted a second family), with the dependency declared so it resolves. examples/proposals bound --font-sans to var(--font-inter), a variable nothing sets any more; it reads --font-zen-sans.
16 lines
505 B
TypeScript
16 lines
505 B
TypeScript
import './global.css';
|
|
import { RootProvider } from '@hanzo/docs/ui/provider/next';
|
|
import { ZenSans } from '@hanzo/font/sans';
|
|
import { ZenMono } from '@hanzo/font/mono';
|
|
import type { ReactNode } from 'react';
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html lang="en" className={ZenSans.className} suppressHydrationWarning>
|
|
<body className="flex flex-col min-h-screen">
|
|
<RootProvider>{children}</RootProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|