create-react-mui-kit
v0.1.1
Published
Create a React (Vite) app with MUI (Material UI), Emotion, Redux Toolkit, and Husky pre-integrated — zero config.
Maintainers
Readme
create-react-mui-kit
Create a React (Vite) app with MUI (Material UI), Emotion, Redux Toolkit, and Husky pre-integrated — zero config.
One command: a fresh Vite + React project, MUI + Emotion installed, a theme wired up, <ThemeProvider> and <CssBaseline /> already around your <App />, path aliases configured, and your favorite MUI add-ons pre-installed.
Usage
npx create-react-mui-kit@latestOr pass a name directly:
npx create-react-mui-kit my-appWhat it does
- Scaffolds a fresh Vite + React app via
create-vite@latest(TypeScript or JavaScript). - Installs MUI core (
@mui/material,@emotion/react,@emotion/styled). - Configures
@/*path aliases invite.config,tsconfig.json, andtsconfig.app.json. - Pre-installs the MUI add-ons you pick (icons, Roboto font, X packages, notistack, router…).
- Drops in a starter
theme/and rewritesmain.tsxto wrap<App />in<ThemeProvider>+<CssBaseline />. - Wires up state management — Redux Toolkit (default) or Zustand, with a sample store and (for Redux)
<Provider>already wrapping<App />. - (Optional) Sets up Husky + lint-staged + Prettier with a pre-commit hook that runs
eslint --fixandprettier --writeon staged files.
You skip the "install Vite → add MUI → add Emotion → set up a theme → wire up CssBaseline → add icons → …" ritual.
Options
| Flag | Description |
| --------------------------------------- | ----------------------------------- |
| -y, --yes | Skip prompts, use sensible defaults |
| --ts / --js | TypeScript (default) or JavaScript |
| --npm / --pnpm / --yarn / --bun | Pick your package manager |
| --no-husky | Skip Husky + lint-staged setup |
| --state=<lib> | redux (default), zustand, none|
| -v, --version | Print version |
| -h, --help | Show help |
Examples
# Fully interactive
npx create-react-mui-kit
# Non-interactive with defaults
npx create-react-mui-kit my-app --yes
# Use pnpm
npx create-react-mui-kit my-app --pnpmRequirements
- Node.js 18.17+
- Network access (to fetch
create-viteand MUI packages)
Development
git clone https://github.com/NikunjSonigara/create-react-mui-kit.git
cd create-react-mui-kit
npm install
node bin/index.js test-app --yesContributing
Issues and PRs welcome at github.com/NikunjSonigara/create-react-mui-kit.
License
MIT
