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
.gitignorelayout.tsx—html/body,ThemeProviderfrom@ziteox/ui/theme, dark-mode CSS hookspage.tsx— client page with controlledHamburgerButton(material="emboss") andMaterialStylesnext.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 typecheckDev server: port 3010.
How @ziteox/ui is wired
| Import | From |
|---|---|
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):
| Package | Version in template |
|---|---|
next | ^15.5.0 |
react / react-dom | 19.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
- Copy
templates/next-siteinto a new project. - 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. - Install and run.
- Connect with the Forge connect helper (
scripts/forge-connect). See Connect a project.