Web setup
Run the web kit, make it yours, and share it.
The web kit is a Next.js app: the App Router, Tailwind 4 and shadcn/ui, with the
kit's own components on top for app shells, tables, marketing pages and AI product interfaces. It is built
to the same rules as the native kit: a registry, the same tokens.json, the same skills. Its components also
install into any React app on Tailwind 4, Vite and React Router included (Install › Existing app).
Run it
npx giget@latest gh:itsHendri/halftone/apps/web my-prototype
cd my-prototype && npm install
npm run dev # http://localhost:3100Open Components for every component live, Foundations for the tokens, and the sample apps from the home page. They are the worked examples: Northwind, a made-up invoicing product, as a dashboard, a landing page and an AI assistant; and a shop and a habit tracker, the same apps the Native kit has.
Make it yours
Set it up
npm run setupAsks for the project's name and sets it as name in package.json and the page title in app/layout.tsx,
then offers to remove the samples and apply a theme. It prints the plan and writes nothing until you say yes;
--dry-run stops at the plan. Every question has a flag:
npm run setup -- --yes --name "Acme Portal" --eject all --theme calm (-- --help lists them). Write your
own description in app/layout.tsx.
Re-brand it
Pick a theme on this site (the bar at the bottom, or Studio), then apply its code:
npx halftone-tokens theme apply ht1-XXXXXXXXXXXXIn the monorepo, run npm run theme:apply -- ht1-… at the root instead: one theme drives both kits. See
Themes. To edit tokens/tokens.json by hand, run npm run tokens:build after: it writes
app/tokens.css (Tailwind 4 and shadcn variables, in oklch) and names any pairing below WCAG AA.
Remove the samples
npm run eject-samplesDeletes the dashboard, landing page, assistant, shop and habit tracker, their data and the kit home's links to them.
To keep some for now, name the ones to go (npm run eject-samples -- shop habits, or northwind for the dashboard,
landing page and assistant together); npm run eject-samples -- --status lists what is left. The dashboard and the
landing page link to each other, so they go together.
Build your prototype
A prototype lives in its own folder under app/, for example app/acme/, with its own layout.tsx:
AppShell for an app, a plain header and footer for a marketing page. Or hand the agent a brief and let
the transcript-to-prototype skill set it up.
What it is for
- Web apps and dashboards:
AppShell,PageHeader,StatTile,DataTable, charts, forms, settings. - Marketing pages:
Hero,FeatureGrid,PricingCard, FAQ accordions. - AI product interfaces:
ChatMessage,ChatComposer,StreamingText,ThinkingIndicator,ToolCallCard, andApprovalCardso the assistant asks before anything irreversible. - The web version of a mobile prototype, on the same brand from the same token file.
See every one live under Components (filter by Web).
Share it
| To | Run |
|---|---|
| Anyone with a browser | Deploy to Vercel or any Next.js host, or KIT_WEB_EXPORT=1 npm run build for a static out/ folder |
| A teammate's agent | Send them the repo; AGENTS.md and the skills travel with it |
Checks
npm run typecheck, npm run lint, npm run tokens:check and npm run registry:build -- --check are what
CI runs. Lint includes the kit's guardrails (halftone/* rules: raw colours, imports outside the registry,
other UI libraries). The qc-pass skill runs them, then looks at the changed pages in a browser at 375px and
1280px, in light and dark.