This is a Next.js template set up with Tailwind CSS, ShadCN UI, TypeScript, and a fully configured layout structure. It includes a page router, layout with navigation and footer, a global typography file, theme switch, and more. It also uses turbopack
for fast builds and enhanced performance.
-
Tailwind CSS:
- Tailwind is preconfigured, and the
globals.css
file contains the@tailwind
directives to ensure the utility-first CSS is available.
- Tailwind is preconfigured, and the
-
ShadCN UI:
- A custom UI library is integrated to provide ready-to-use, beautiful UI components for the app.
-
TypeScript:
- Fully typed with TypeScript support across the project, including in the components, pages, and utility files.
-
Layout Structure:
- The layout is composed of a header (navigation), footer, and a main content area. The layout structure is reusable across all pages.
- The navigation is responsive and includes links to pages within your Next.js app.
-
Themes and Theme Switch:
- The
themeSwitch.tsx
utility andtypography.tsx
component handle the global theme switching logic (e.g., light and dark mode).
- The
-
Turbopack:
- TurboPack is used to speed up the build and development process in Next.js.
-
ESLint & Prettier:
- ESLint configuration is already set up for linting and Prettier for code formatting.
- Install Dependencies:
Make sure you have PNPM installed.
pnpm install
- Run Development Server: After installation, start the development server:
pnpm dev
-
Open the Project: You can now access your project at http://localhost:3000.
-
Building for Production: When you're ready to build for production, run the following command:
pnpm build