Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Next.js + Material UI + dark mode + web3 starter template

Free Bootstrap 4 design system with over 100 components, pre-built pages, and a full UI kit for faster web projects.
Next.js Web3 Template is a starter boilerplate for building Ethereum dapps on Next.js and Material UI, bundling contract compilation, deployment scripts, and a dark-mode-ready frontend into one repository.
This template is a boilerplate Ethereum dapp that pairs the Next.js React framework with Material UI components. It takes Solidity contract source files as input, compiles them with a custom deploy script, and produces ABI and bytecode stored under src/contracts for use in the frontend. It runs on Node.js with Yarn for the client and npm for the deploy folder. The author intentionally avoids wiring in web3-react, keeping the dependency list minimal.
contracts/Example.sol, and the deploy folder contains compile.js and deploy.js to compile and deploy it.src/contracts, ready to be imported by the Next.js app.pages, public, and src with separate folders for components, hooks, and utils.pages/_app.js and pages/_document.js as custom App and Document files, standard for Next.js customization.npm start script to turn Example.sol into ABI and bytecode.The workflow begins by cloning the repository. Inside the deploy directory you run npm install and npm start to compile and deploy the Solidity contract, generating ABI and bytecode into src/contracts. Then, from the base directory, you run yarn install and yarn run dev to start the Next.js development client that consumes those artifacts.
Yes, the template is published as a public GitHub repository, so you can clone, modify, and use it without cost.
Yes, Material UI with dark mode is preconfigured, so the starter app is ready to render with a dark color scheme.
The deploy script in the deploy folder compiles the Solidity contracts, deploys them to your configured network, and writes the resulting ABI and bytecode to src/contracts.
From the base directory after cloning, run yarn install to install dependencies and yarn run dev to start the Next.js development server.
The author explicitly removes reliance on web3-react, preferring a minimal set of web3 libraries so the boilerplate stays lightweight.
