Why I built this
Every time I start a new project, I love to go with nextjs + mui combo.
But it is frustating to build the theme system each time from scratch ( Of course I want a granular control over theme tokens )
One thing is very common that is the theme system architecture for mui setup.
Just think about a scenario spinning up a cli that do the exact work you want to do.
Features at a glance
-
MUI Integration: Pre-configured theme folder parallel to the
appdirectory. -
Clean Code by Default: Integrated
eslint-plugin-perfectionistfor auto-sorting imports/exports. - Next.js Optimized: Built specifically for the latest Next.js patterns.
See it in action
thatonevikash
/
create-next-mui
๐ The fastest way to start with Nextjs + MUI
create-next-mui
Scaffold a production-ready Next.js + Material UI application in seconds.
The generated project comes preconfigured with:
- โก Next.js App Router
- ๐จ Material UI
- ๐ฆ TypeScript or JavaScript templates
- ๐งน ESLint Flat Config
- ๐ Scalable project structure
No global installation required.
Quick Start
Create a new project:
npx create-next-mui my-app
or
npm init next-mui
If no project name is provided, the CLI will guide you through the setup interactively.
npx create-next-mui
Non-interactive Mode
Use the --yes (or -y) flag to skip prompts and accept the default configuration.
npx create-next-mui my-app --yes
This will automatically:
- use the provided project name
- select the TypeScript template
- generate the project without prompting
This is especially useful for:
- CI/CD pipelines
- automation scripts
- testing
- quick project generation
Interactive Setup
Without --yes, the CLI walks you through the available options.
Current prompts include:
- Project name
- Language selection
- TypeScript (recommended)
- JavaScript
- Features
- Zustand
- React Query (โฆ
How to use it
To get started, run the following command in your terminal:
npx create-next-mui@latest
# or
npm init next-mui
A closer look at the "Perfectionist" setup
I prefer organized import and export statements, when you are building something that can scale over time, it is better to architect it beautifully!
Keep building
Top comments (0)