kevogaba/finaxis-frontend / .agents/skills/material-ui-tailwind
material-ui-tailwind
VerifiedIntegrates 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.
| File | Kind | Size |
|---|---|---|
| AGENTS.md | markdown | 7.9 KB |
| README.md | markdown | 657 B |
| SKILL.md | skill md | 1.5 KB |
| reference.md | markdown | 1.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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |
| 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: 197k | Updated | Claude CodeCodex | Verified | Install |