Templates

next-site

Minimal Next.js App Router starter wired to @ziteox/ui.

next-site

Package name: @ziteox/template-next-site
Path: templates/next-site

A small Next.js App Router app that already imports from @ziteox/ui. Use it to try the Library package inside Forge, or copy it out as the start of a new site.

What’s inside

templates/next-site/
  app/
    globals.css
    layout.tsx
    page.tsx
  next.config.mjs
  next-env.d.ts
  package.json
  README.md
  tsconfig.json
  .gitignore
  • layout.tsx — html / body, ThemeProvider from @ziteox/ui/theme, dark-mode CSS hooks
  • page.tsx — client page with controlled HamburgerButton (material="emboss") and MaterialStyles
  • next.config.mjs — transpilePackages: ["@ziteox/ui"] for workspace-linked use inside Forge (see README)

Commands

From the monorepo root:

pnpm --filter @ziteox/template-next-site dev
pnpm --filter @ziteox/template-next-site build
pnpm --filter @ziteox/template-next-site typecheck

Dev server: port 3010.

How @ziteox/ui is wired

ImportFrom
ThemeProvider@ziteox/ui/theme
HamburgerButton@ziteox/ui/navigation
MaterialStyles@ziteox/ui/materials

Inside Forge, package.json uses "@ziteox/ui": "workspace:*".

Required peers (same versions as the docs app so pnpm can dedupe):

PackageVersion in template
next^15.5.0
react / react-dom19.2.7
next-themes^0.4.6
motion^12.19.1
web-haptics^0.0.6

web-haptics is a peer of @ziteox/ui (used by menu and theme controls).

Copy out

  1. Copy templates/next-site into a new project.
  2. Replace "@ziteox/ui": "workspace:*" with a published version, for example "^0.1.1". Published versions today: 0.1.0 and 0.1.1 (latest). Local Forge may be on 0.1.2, which is not published yet.
  3. Install and run.
  4. Connect with the Forge connect helper (scripts/forge-connect). See Connect a project.