When to use this Skill
This Skill is automatically triggered in the following scenarios:
- Create or modify UI components using Material-UI
- Resolve MUI component implementation issues
- Look up MUI component props and API
- Implement MUI layouts and theme customization
- Migrate between MUI versions or customize component behavior
You must consult the documentation before use
Important reminder
Before using any MUI component or feature, you must first consult the official documentation, find the specific URL for the corresponding component or theme, and carefully read the official documentation before starting development.
Why you must consult the documentation
- Each MUI component has a unique API and props
- The official documentation contains correct usage examples and best practices
- Avoid common incorrect usage and performance issues
- Ensure the code conforms to MUI design specifications
Steps for consulting the documentation
Step 1: Access the documentation index
Access the MUI official documentation index:https://mui.com/material-ui/llms.txt
This file contains a directory of all components and features, organized into the following categories:
- Components: List of all components
- Customization: Related to theme customization
- Guides: Usage guides
- Integrations: Framework integrations
- Migration: Version migration
Step 2: Find the specific URL
Find the component or feature you need in the documentation index, for example:
React Button component→https://mui.com/material-ui/react-button.mdDark mode→https://mui.com/material-ui/customization/dark-mode.mdNext.js integration→https://mui.com/material-ui/integrations/nextjs.md
Step 3: Get the specific URL and read it
Use webfetch tool to get the documentation content and read it carefully:
- The component's Props and API
- Example code
- Notes and limitations
- Common questions
Step 4: Develop based on the documentation
Make sure you fully understand the documentation content before proceeding with development.
Documentation consultation examples
Scenario 1: Using the Button component
- Access the documentation index:https://mui.com/material-ui/llms.txt
- Find
React Button component - in the Components section. Get the URL:
https://mui.com/material-ui/react-button.md - Use
webfetchto get the documentation content for that URL - Read the Props descriptions (variant, color, size, disabled, etc.)
- View the example code
- Use the component correctly according to the documentation
Scenario 2: Customizing the theme
- Access the documentation index:https://mui.com/material-ui/llms.txt
- Find
Theming - in the Customization section. Get the URL:
https://mui.com/material-ui/customization/theming.md - Use
webfetchto get the documentation content for that URL - Read
createThemeconfiguration options - Learn how to define palette, typography, etc.
- Create the theme according to the documentation
Scenario 3: Resolving component issues
- Access the documentation index:https://mui.com/material-ui/llms.txt
- Find the relevant component documentation
- Use
webfetchto get the documentation content - Check the common questions section
- See whether there are API changes or deprecation warnings
- Refer to the officially recommended solutions