mcpField
M
material-ui-nextjs

material-ui-nextjs

github.com/muiDevelopment99.3k738 installsUpdated today
Repository

About material-ui-nextjs

An agent skill for wiring Material UI into Next.js apps, covering App Router and Pages Router setup, rendering, styles, fonts, links, and URL-driven views. It is intended for developers resolving integration issues or setting up these combinations.

Key features

  1. 01App Router and Pages Router setup
  2. 02SSR and streaming cache configuration
  3. 03Font and theme setup
  4. 04CSS layer integration
  5. 05Next.js Link usage
  6. 06URL state and Suspense guidance

Use cases

  1. 01Starting a Next.js app with Material UI
  2. 02Fixing styles rendered in the wrong location or order
  3. 03Combining next/font with a Material UI theme
  4. 04Building URL-driven views with useSearchParams

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mui/material-ui --skill material-ui-nextjs

After installing, type/material-ui-nextjsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
AGENTS.md
metadata.json
reference.md

Details

From the project README

Material UI and Next.js

Agent skill for Next.js + Material UI wiring (SSR/streaming, cache providers, fonts, layers, Link, App Router URL state). SKILL.md is the entry; AGENTS.md is the full guide.

When to apply

  • New App Router or Pages Router app using @mui/material
  • Styles missing, wrong order, or in body instead of head
  • next/font + ThemeProvider / createTheme
  • Tailwind or CSS Modules + MUI (enableCssLayer)
  • Button + component={Link} or Next.js v16 client boundary errors
  • useSearchParams / URL-driven MUI views and Suspense boundaries

Sections in AGENTS.md

AreaTopics
App RouterAppRouterCacheProvider, @emotion/cache, options, useSearchParams + <Suspense>
Pages Router_document, _app, DocumentHeadTags, AppCacheProvider
Fonts'use client' theme, next/font, CSS variables on html
CSS variablescssVariables, SSR flicker docs
CSS layersenableCssLayer, Tailwind / other CSS
LinkClient wrapper, routing guide, examples repo

Full guide

Read AGENTS.md for complete steps and doc links.

reference.md lists import paths and provider shape.

Comments

Markdown supported