Setup with Next.js
Configure the App Router for Gaudi's React source, stylesheet and themes.
Gaudi ships React source (JSX) for a JSX-aware bundler and Tailwind CSS v4 processing, so Next.js must transpile it.
1. Transpile the package
2. Load the stylesheet once
global.css loads Tailwind v4, Gaudi's tokens, foundations and component CSS, and scans the package source. If your app owns its Tailwind entry, use styles.css instead.
3. Add themes (optional)
Render the no-flash script in <head> and wrap the app in ThemeProvider from a client component:
Apps that keep next-themes for light/dark pass enableMode={false} to ThemeProvider and getThemeScript. See the theming guide.
Site configuration
Site-aware components (navigation, footer, command launcher) read metadata from SiteConfigProvider; LayoutContainer wires it up. Gaudi never imports data from the consuming app.