designsource create writes a runnable Next.js app that already wears your design system: the theme, every component, a front page, the /design-system section and your project's screens. It is the quickest way from a project to a running screen.
How to use it
npx designsource create my-app
cd my-app && pnpm install && pnpm devThe folder must be new or empty. The command asks for the project token, writes the files, and prints the next steps in the dialect of the runner you used (pnpm, npm, yarn or bun). The Starting a new app? line in the Export dialog carries the same command.
Your project's screens come along: each on /app/<name> inside a sidebar shell, with /app listing them. Your marketing pages come along on app/(site)/: the home page at /, replacing the starter's front page, and the others at /<name>, inside a site menu and footer. --no-screens leaves both out. A project with no screens yet still gets the shell and an /app page that says so.
How it works
The app is Next.js with the App Router, Tailwind v4, next-themes on the class attribute, and tw-animate-css for the kit's overlay animations. What it holds:
| Path | What |
|---|---|
app/globals.css |
Tailwind, the kit's utility sheet, your shadcn theme, Google font imports hoisted to the first line. |
app/layout.tsx |
The theme provider, font preconnects. |
app/page.tsx |
The front page: a bar with the name, a Design system link and the theme switch, over your generated page or a sample. |
app/design-system/ |
The section: layout plus one catch-all page prerendering every component, block, sample and screen route. |
app/(site)/ |
Your marketing pages, when the project has any, inside SiteShell. |
app/app/ |
The /app index of your screens and an /app/<name> page for each, inside the sidebar shell. |
components/screens/ |
Each screen and its data file, the parts they import under parts/, app-shell.tsx, the sidebar shell, and site-shell.tsx, the site menu and footer when the project has marketing pages. |
components/ui/ |
The 62 components and the portal context, verbatim. |
components/blocks/ |
Every block with its stage. |
components/design-system/, components/, lib/ |
The section's modules, the preview pieces, the mockup schema, cn. |
content/page.json |
Your generated page's spec, when the project has one. |
README.md, AGENTS.md |
How to run the app, and notes for a coding agent working in it. |
package.json, tsconfig.json, next.config.ts, postcss.config.mjs, pnpm-workspace.yaml, .gitignore |
The project's configuration. |
The starter pins the exact Next.js version this app was verified against, so it builds on the version its maintainers ran; every library the kit and the blocks import is pinned the same way. A pnpm-workspace.yaml tells pnpm not to build sharp, which pnpm would otherwise refuse to install without an answer.
Every call to action on the front page is a link into the section, where the preview's are inert buttons.
What can go wrong
- A non-empty folder stops the command;
--forceoverwrites. pnpm installasks about build scripts: answer as it suggests; the workspace file covers the one that matters.Exports need Pro: the project owner's account is on Free.