Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Boilerplate integrating Ant Design 5 with Next.js and styled-components, with i18n and dark/light mode support.
Antnext is a Next.js boilerplate that pairs the Ant Design 5 component library with styled-components (Emotion) for CSS handling, adding internationalization (i18n) and dark/light mode theming out of the box.
Antnext is a project starter scaffold created with create-next-app that integrates Ant Design 5 (antd) into a Next.js application using the App Router and TypeScript. It takes a fresh Next.js project and layers on the antd component set, Styled Components (Emotion) for styled CSS, and a theme system that supports both dark and light modes. The output is a ready-to-extend codebase with a single configuration point for switching between the two themes.
app/page.tsx), with file-based routing and server-side rendering capabilities from Next.js.next/font, which auto-optimizes font loading and reduces layout shift.npm run dev starts the development server on localhost:3000 with hot reloading when page files are edited.Antnext is aimed at front-end developers who want to skip the repetitive wiring of Ant Design into a Next.js project and start building immediately. It suits React consultants setting up internal dashboards, product teams prototyping admin panels, and developers who need a multi-language React app with a toggleable dark theme.
Clone the repository, install dependencies with npm install, then run npm run dev to start the development server at http://localhost:3000. Editing app/page.tsx updates the page instantly in the browser. For a production build, use the standard Next.js npm run build and deploy the result to the Vercel Platform or any Node.js host that supports Next.js.
