Style Material UI components with AI
Choose a styling method that fits the reach of a change. Keep one-off edits local, reuse common patterns and reserve theme overrides for deliberate defaults.
Style Material UI components with AI when a change looks small but its scope is unclear. A wider gap above the final button on one form is a local exception. A standard action button shared by every editing screen deserves a reusable definition.
The material-ui-styling skill explains when to use the sx prop, a styled wrapper, theme component overrides or global styles. It also covers component slots and state styles. That distinction matters when moving a value between methods because a numeric shortcut can mean different things in each.
What it does
- Apply a one-off change to an individual component
- Create a styled wrapper for a recurring pattern
- Change defaults for all instances of one component type
- Target a slot or interaction state deliberately
- Check spacing when converting a local style into reusable CSS
Install and use
- Install the complete skill folder in a compatible coding agent. Use a React project with Material UI and permission to edit and preview the relevant components.
- Ask, “Only this form needs extra space before Save, but three forms share the same action button. Separate the local exception from the shared style.”
- Preview both the changed component and an ordinary instance. Check keyboard focus and state styling as well as the default appearance.
FAQ
Source
Made by MUI. Original skill: material-ui-styling, published on GitHub under the MIT licence.
View on GitHub