g1joshi/agent-skills/materialui
Claude Code and agent skill by g1joshi/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert Material UI (MUI) assistance covering Emotion styled components, theme customization, DataGrid, and accessible icons. Use when building React enterprise dashboards with Google's Material Design.
Install
npx vskill@latest install g1joshi/agent-skills/materialuiSKILL.md
The same SKILL.md was published earlier as g1joshi/agent-skills/materialui.
Material UI (MUI)
MUI Core (v6) is the gold standard for React UI. v6 introduces Pigment CSS (Zero-runtime CSS-in-JS) for compatibility with React Server Components (Next.js App Router).
When to Use
- Enterprise React Design Systems: Implementing Google's Material Design guidelines with battle-tested React components.
- Complex Administrative Portals: Utilizing advanced Data Grid, Date Pickers, and Tree View components.
- Custom Theming & Design Tokens: Building accessible, branded design systems via
createThemeand CSS variables. - Rapid Dashboard Prototyping: Developing polished responsive dashboards with minimal custom CSS.
Quick Start
Core Concepts
Theme Customization & CSS Theme Variables
Configuring design tokens and light/dark color schemes with MUI:
The SX Prop & Dynamic System Styling
Applying theme-aware styles directly to components:
Accessible Form Controls & Dialog Composition
Building composable modal workflows with focus trap:
Common Patterns
Custom Theme Provider with Global Style Overrides
Problem: Overriding MUI typography and component defaults across an entire application without repetitive sx props.
Solution: Use createTheme with component default props:
Best Practices
Do:
- Enable
cssVariables: trueincreateThemeto prevent SSR dark-mode flicker. - Import icons using path imports (
import AddIcon from '@mui/icons-material/Add') to reduce bundle size. - Use MUI Joy UI or MUI Base UI for unstyled / modern non-Material design requirements.
- Wrap inputs with
FormControl,InputLabel, andFormHelperTextfor accessibility.
Don't:
- Use inline style objects (
style={{...}}); use the theme-awaresxprop. - Override MUI internal classnames (
.MuiButton-root) directly; use theme overrides orsx. - Nest multiple
ThemeProviderinstances without inheritance.
Troubleshooting
| Error | Cause | Solution | |
|---|---|---|---|
TypeError: Cannot read properties of undefined (reading 'spacing') | Component rendered outside <ThemeProvider>. | Ensure root app is wrapped in <ThemeProvider theme={theme}>. | |
MUI: The value provided to Autocomplete is invalid | Value object reference does not match any item in options array. | Implement isOptionEqualToValue={(option, value) => option.id === value.id}. | |
CSS specificity clash with Tailwind / emotion | Order of CSS injection causes rules to be overridden. | Configure Emotion StyledEngineProvider with injectFirst. |
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/frameworks/materialui/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 2
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/g1joshi/agent-skills/materialui)