Open History to see the last commit
1import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
2
3import appCss from '../styles.css?url'
4
5export const Route = createRootRoute({
6 head: () => ({
7 meta: [
8 { charSet: 'utf-8' },
9 { name: 'viewport', content: 'width=device-width, initial-scale=1' },
10 { title: 'schema studio — generative UI from modelschemas' },
11 {
12 name: 'description',
13 content:
14 'Forms generated at render time from live provider JSON Schemas, pulled at build time by @modelschemas/vite.',
15 },
16 ],
17 links: [
18 { rel: 'preconnect', href: 'https://fonts.googleapis.com' },
19 {
20 rel: 'preconnect',
21 href: 'https://fonts.gstatic.com',
22 crossOrigin: 'anonymous',
23 },
24 {
25 rel: 'stylesheet',
26 href: 'https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap',
27 },
28 { rel: 'stylesheet', href: appCss },
29 ],
30 }),
31 shellComponent: RootDocument,
32})
33
34function RootDocument({ children }: { children: React.ReactNode }) {
35 return (
36 <html lang="en">
37 <head>
38 <HeadContent />
39 </head>
40 <body>
41 {children}
42 <Scripts />
43 </body>
44 </html>
45 )
46}