Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A simple boilerplate for NextJS 11+ and Tailwind CSS 2.2 with dark mode and ring implementation.
Nextjs Tailwind Boilerplate is a starter project for Next.js 11+ applications that ships with Tailwind CSS 2.2 preconfigured, including dark mode and ring utilities.
Nextjs Tailwind Boilerplate is a minimal boilerplate built on Next.js (v11 or newer) and Tailwind CSS 2.2, created with create-next-app. It provides a starting point for React applications with file-based routing and API endpoints, plus a Tailwind setup that includes dark mode and ring utilities out of the box. The project runs locally with npm run dev and can be deployed to Vercel.
The boilerplate uses the pages/ directory for routing — pages/index.js is the home page and pages/api/hello.js demonstrates a serverless API route. Tailwind is wired through PostCSS, so utility classes are available directly in your JSX without a separate build step.
dark variant is configured for light/dark theme switching.npm run dev and edit pages/index.js to see changes instantly./api/hello endpoint in pages/api/hello.js.pages/api/hello.js to create your own JSON API and test it at localhost:3000/api/hello.To get started, install dependencies with npm install (or yarn), then run npm run dev to launch a development server at http://localhost:3000. Files in the pages directory become routes; the main entry is pages/index.js. When ready for production, you can deploy to Vercel directly from the platform.
The repository targets Next.js 11 or newer, so it works with the latest create-next-app projects.
Yes, Tailwind CSS 2.2 is included and wired through PostCSS, with dark mode and ring utilities enabled.
Run npm run dev or yarn dev in the project root, then open http://localhost:3000.
API routes are placed in the pages/api directory. The sample endpoint is pages/api/hello.js, accessible at /api/hello.
Use the Vercel Platform with the built-in integration, or follow the Next.js deployment documentation.
