A Next.js-based design system built with MUI, local SVG icons, and Storybook.
- Node.js 20+
- npm or yarn
git clone <repository-url>
cd Foundationnpm installnpm run check-setupIf using GitHub Copilot or Claude Code, add this to your VS Code settings to auto-apply AI changes without manual approval prompts:
- Open VS Code Settings (
Ctrl+,orCmd+,) - Search for "settings json" and click "Open Settings (JSON)"
- Add this line:
"github.copilot.editor.enableAutoApply": true
This prevents the "Keep/Undo" diff prompts from appearing for AI-suggested changes.
npm run devOpen http://localhost:3000 to view the app.
npm run storybookOpen http://localhost:6006 to view the component library.
Foundation/
├── src/
│ ├── app/ # Next.js app directory
│ │ ├── themes/ # MUI theme configuration
│ │ └── layout.tsx # Root layout
│ ├── components/ # Reusable components
│ ├── stories/ # Storybook stories
│ └── assets/ # Asset metadata
├── docs/ # Documentation
├── public/icons/ # Local icon assets served by Next.js
└── scripts/ # Build scripts
npm run dev- Start Next.js development servernpm run build- Build for productionnpm run start- Start production servernpm run storybook- Start Storybook dev servernpm run build-storybook- Build Storybook for deploymentnpm run check-setup- Verify environment setupnpm run lint- Run ESLintnpm run sync-font-awesome-icons- Copy local Font Awesome SVGs fromsrc/assets/icons/font-awesometopublic/icons/font-awesome
- Local Icons Guide - How to use local SVG icons
- Agents Guide - Team structure and workflows
Solution:
- Confirm the icon exists under
public/icons/qsuper. - Pass the icon file name (without
.svg) to theIconcomponent. - Restart your dev server if you have just added new static files.
Use this folder structure:
src/assets/icons/font-awesome/solidsrc/assets/icons/font-awesome/light
Then run:
npm run sync-font-awesome-icons
Runtime paths are served from:
public/icons/font-awesome/solidpublic/icons/font-awesome/light
New team members should:
- Follow the First-Time Setup steps above
- Run
npm run check-setupto verify everything works - Run
npm run storybookto explore the component library - Read AGENTS.md to understand team workflows
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.