Set up your support agent site

A Next.js 16 website and app template for an AI support product. Install it, make it yours and put it online. The same text is in DOCS.md at the root of the project.

web
$ npm install
$ npm run dev

  Local:  http://localhost:3000
  Ready in 1.2s

Install, build and run the template

  • Node.js 20.9 or newer
  • npm 10 or newer
  • A code editor
  • A free Vercel account, to deploy

Requirements

Built and tested on Node 24. The stack is Next.js 16 (App Router), React 19, Tailwind CSS v4 and shadcn/ui.

web
npm install
npm run dev

Install and run

In the web folder, the one with package.json. Open http://localhost:3000. Pages reload when you save a file.

web
npm run build
npm run start

Build

The build stops with an error if something is wrong. npm run start serves the built site. npm run lint checks code style.

Make the template yours

  1. 1src/lib/site.tsname, tagline, description, url, contact, navigation and plans
  2. 2src/components/brand/logo.tsxthe SVG paths in LogoMark
  3. 3src/app/favicon.icoreplace the file
  4. 4src/app/app/layout.tsxthe title template, which still says Halyard
  5. 5The whole projectsearch for “Halyard” and for the contact address contaorbi@gmail.com

Name and logo

Five places carry the name. Change them in this order, then search for leftovers.

Colour tokens
TokenUsed for
--background, --foregroundPage background and text
--surface, --surface-2Cards, panels and inputs
--muted-foregroundSecondary text
--lineBorders and dividers
--brand, --brand-inkMain accent and the text on it
--band, --band-inkThe coloured analytics section
--ok, --warn, --destructiveStatus colours
--chart-1 to --chart-5Chart series

Colours

Every colour is a CSS variable in src/app/globals.css. The :root, .dark block is the default dark theme; .light lists what differs.

After a change, check contrast in both themes: small text needs 4.5 to 1. To start in light, set defaultTheme to "light" in src/app/layout.tsx.

Fonts and content of the template

--font-text, --font-display

Host Grotesk

Handoff with the story so far.

--font-code

JetBrains Mono 1,284

resolved 68.4%

Fonts

Both fonts are under the SIL Open Font License. The Latin subsets are in src/fonts and load in src/app/layout.tsx with next/font/local. The full fonts and licences are in fonts-source.

To change a font, add a .woff2 file to src/fonts and update its path and weight in src/app/layout.tsx, or switch to next/font/google.

Name, links, plans, prices
src/lib/site.ts
Landing sections
src/components/marketing
Section order
src/app/page.tsx
FAQ
src/components/marketing/faq.tsx
Footer links
src/components/marketing/footer.tsx
Dashboard figures
src/lib/demo-data.ts
Dashboard pages
src/app/app
Sign-in and sign-up
src/components/auth/auth-form.tsx

Edit the content

Replace the dashboard figures with calls to your own API, and connect onSubmit in the sign-in form to your auth provider.

Page titles and descriptions are the metadata export in each page.tsx and in src/app/layout.tsx.

Folder structure of the template

web/
web/
  DOCS.md                this guide
  package.json           scripts and dependencies
  next.config.ts         Next.js settings
  fonts-source/          full font files and licences
  public/                static files
  src/
    app/
      layout.tsx         fonts, theme, default metadata
      globals.css        colour tokens, type scale, motion
      page.tsx           landing page
      docs/page.tsx      this page
      sign-in/, sign-up/ auth screens
      app/               dashboard: overview, inbox, settings
web/src/
    components/
      marketing/         landing page sections
      app/               dashboard shell, charts, inbox
      auth/              sign-in and sign-up form
      brand/             logo
      ui/                shadcn/ui building blocks
    fonts/               Latin font subsets
    hooks/               small React hooks
    lib/
      site.ts            name, nav, pricing
      demo-data.ts       demo dashboard data
      utils.ts           class name helper

Deploy the template to Vercel

No environment variables are required. If you add an API or an auth provider, add its keys under Settings, then Environment Variables.

  1. 1Run npm run build locally and fix any error.
  2. 2Push the project to GitHub, GitLab or Bitbucket.
  3. 3In Vercel, choose Add New, then Project, and import the repository.
  4. 4If the repository holds more than the web folder, set Root Directory to web.
  1. 5Leave the framework preset on Next.js and the default build and install commands.
  2. 6Click Deploy.
  3. 7Set url in src/lib/site.ts to your real domain and push again.
  4. 8For your own domain, open Settings, then Domains in the project and follow the DNS steps.