Skip to content

kevogaba/finaxis-frontend / .agents/skills/material-ui-nextjs

material-ui-nextjs

Verified

Integrates Material UI with Next.js App and Pages routers using @mui/material-nextjs, Emotion cache providers, next/font, CSS layers with Tailwind/CSS Modules, Link component prop patterns, CSS theme variables SSR notes, and App Router useSearchParams + Suspense. Use when setting up or debugging MUI in a Next.js app.

FileKindSize
AGENTS.mdmarkdown9.3 KB
README.mdmarkdown572 B
SKILL.mdskill md2.0 KB
reference.mdmarkdown1.1 KB

reference.md

View on GitHub
# Material UI + Next.js: reference

## `@mui/material-nextjs` entry points

Pick the `v1X-*` segment that matches the app's Next.js major (see the package's README on npm if a new major adds a new entry).

| Router       | Typical import path                                                    |
| :----------- | :--------------------------------------------------------------------- |
| App Router   | `@mui/material-nextjs/v15-appRouter` (or `v14-appRouter`, etc.)        |
| Pages Router | `@mui/material-nextjs/v15-pagesRouter` (or matching `v1X-pagesRouter`) |

Pages Router also uses `@emotion/server` for the documented setup; App Router uses `@emotion/cache` only in the default instructions.

## Provider placement (App Router)

```text
<html>
  <body>
    <AppRouterCacheProvider>
      <ThemeProvider theme={theme}>   <!-- optional but common -->
        {children}
      </ThemeProvider>
    </AppRouterCacheProvider>
  </body>
</html>
```

Order and `next/font` `className` on `html` follow [Next.js integration—Font optimization](https://mui.com/material-ui/integrations/nextjs.md#font-optimization).
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall