Both editions have the same components and screens. Only the folder layout and routing differ.
Next.js edition
app/
(app)/ Screens inside the app shell (sidebar + top bar)
(auth)/ Sign-in and onboarding, full-page layouts
globals.css Design tokens: colors, radius, fonts, light and dark
theme.css Your brand color
layout.tsx Fonts and the root layout
icon.svg Favicon
components/
ui/ Buttons, inputs, tables, dialogs, menus, tabs, selects
shell/ App shell, ⌘K palette, page header, theme provider
patterns/ Filter table, inbox, KPI strip, approvals, agent cards…
screens/ Shared screens: design system, notifications, profile…
charts/ Area, line, bar, sparkline and share-bar charts
config/site.tsx Product name, logo, navigation, user, ⌘K search
lib/data.ts Sample data, typed. Replace with your API
lib/data-ops.ts More sample data (generated lists, inbox threads, audit log)Routing is file-based. A folder under app/(app)/ with a page.tsx is a screen, and [id]/page.tsx is its detail screen. There is no route table to edit.
React + Vite edition
index.html Page shell: title, favicon, fonts
src/
main.tsx Starts the app and the router
routes.tsx Every screen and its URL
layouts/ App shell layout and the root layout
pages/ One folder per screen; detail screens are detail.tsx
styles/
globals.css Design tokens: colors, radius, fonts, light and dark
theme.css Your brand color
components/ Same ui, shell, patterns, screens and charts folders
config/site.tsx Product name, logo, navigation, user, ⌘K search
lib/data.ts Sample data, typed. Replace with your API
lib/use-document-title.ts Sets the browser tab title for each screen
public/
favicon.svg
_redirects Single-page-app fallback for Netlify and Cloudflare
vercel.json Single-page-app fallback for VercelEvery screen and its URL is listed in src/routes.tsx. A new screen needs a file under src/pages/ and one line in src/routes.tsx. Pages load on demand, so each screen is its own small chunk.
Files you'll edit most
| What | Next.js | React + Vite |
|---|---|---|
| Brand color | app/theme.css | src/styles/theme.css |
| Name, logo, navigation | config/site.tsx | src/config/site.tsx |
| Sample data | lib/data.ts, lib/data-ops.ts | src/lib/data.ts, src/lib/data-ops.ts |
| A screen | app/(app)/customers/page.tsx | src/pages/customers/index.tsx |
| Fonts | app/layout.tsx | src/main.tsx, index.html |
Path alias
Imports use @/, which points at the project root in the Next.js edition and at src/ in the React + Vite edition, so @/components/ui/button works in both.