nook
Templates

Personal finance

AppFinance

Balances, cash in and out, where the money went, recent activity and a watchlist.

See the prompt

Installation

npx nook-ui@latest add finance-app

The page is copied to components/templates/finance-app.tsx, together with its 1 blocks and the components they use. Render it from a route:

app/page.tsx
import { FinanceApp } from "@/components/templates/finance-app";

export default function Page() {
  return (
    <div className="h-dvh">
      <FinanceApp />
    </div>
  );
}

Blocks in this template

Each section is a block you can change through props, replace with another block, or remove.

  1. App shellApplication

Prompt

Paste this into your AI coding assistant. It adds this exact page with its blocks, then rewrites the content for your product.

Short. For assistants that can run commands in your project.

Plain text
Build a page from the Nook "Personal finance" template (app, finance), exactly as Nook ships it, then fit it to my product.

Balances, cash in and out, where the money went, recent activity and a watchlist.

Steps
1. Check for `nook.json` in the project root. If it is missing, run `npx nook-ui@latest init` first (React or Next.js with Tailwind CSS v4). It adds the Nook tokens, the theme and `cn()`.
2. Run `npx nook-ui@latest add finance-app`. It writes `components/templates/finance-app.tsx` together with its blocks and the components they use. Do not write any of it from memory.
3. If you cannot run commands, fetch http://localhost:3000/r/finance-app.json, write every entry of `files` to the path it names, install the packages in `dependencies`, and repeat for each name in `registryDependencies`.
4. Render it on the route I ask for:

```tsx
import { FinanceApp } from "@/components/templates/finance-app";

export default function Page() {
  return (
    <div className="h-dvh">
      <FinanceApp />
    </div>
  );
}
```

Make it mine
- Ask me for the product name, what it does and who it is for, if I have not said so. Then rewrite every heading, sentence, link and number for that product. Keep the tone: plain words, sentence case, real content, no filler.
- The page is made of these blocks, in order: app-shell. Change a section through the props of its block. To drop a section, remove it from the template file. To add one, run `npx nook-ui@latest list --type block` and add the block that fits.
- Point the links and buttons at real routes, and pass real handlers to the forms (`onSubmit`, `onJoin`, `onSubscribe` and so on). Blocks never talk to a server by themselves.

Rules
- Colors, radii, shadows and motion come from Nook tokens and classes such as `bg-primary`, `text-muted-foreground`, `border-border`, `rounded-lg` and `h-control`. Never hard-code them.
- Do not restyle or simplify the file. Change how it looks through `className`, its props and the theme.
- It must keep working with the keyboard, in light and dark mode, and in the sharp, soft and bold styles.
- Keep one `h1` on the page and keep the section order sensible for someone reading top to bottom.

Done when the page renders like the Nook template in light and dark mode, at phone width too, with my content in place, and the project type-checks.