Skip to content

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

material-ui-tailwind

Verified

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

FileKindSize
AGENTS.mdmarkdown7.9 KB
README.mdmarkdown657 B
SKILL.mdskill md1.5 KB
reference.mdmarkdown1.1 KB

reference.md

View on GitHub
# Material UI + Tailwind CSS: reference

## Layer order (v4)

```css
@layer theme, base, mui, components, utilities;
@import 'tailwindcss';
```

Pages Router + GlobalStyles (first child of `AppCacheProvider`):

```jsx
<GlobalStyles styles="@layer theme, base, mui, components, utilities;" />
```

## VS Code `settings.json` (IntelliSense for `slotProps`)

```json
{
  "tailwindCSS.experimental.classRegex": [["className\\s*:\\s*['\"]([^'\"]*)['\"]"]]
}
```

From [Tailwind CSS v4 integration—Tailwind CSS IntelliSense for VS Code](https://mui.com/material-ui/integrations/tailwindcss/tailwindcss-v4.md#tailwind-css-intellisense-for-vs-code).

## v3 `tailwind.config.js` sketch

```js
module.exports = {
  corePlugins: {
    preflight: false,
  },
  important: '#__next', // or '#root' for Vite
  // ...
};
```

See [Interoperability—Tailwind CSS v3](https://mui.com/material-ui/integrations/interoperability.md#tailwind-css-v3).

## Related skills

- material-ui-nextjs: `AppRouterCacheProvider`, `enableCssLayer`, Pages `emotionCache`
- material-ui-theming: `cssVariables: true` for `--mui-*` token bridging
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: 197kUpdated 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: 197kUpdated 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: 197kUpdated Claude CodeCodexVerifiedInstall