mcpField
M
material-ui-styling

material-ui-styling

github.com/muiDesign & UI99.3k704 installsUpdated today
Repository

About material-ui-styling

An agent skill that helps developers choose and apply Material UI styling options, from local `sx` rules to global CSS. It explains scope, component slots and states, and the distinctions between `sx` and `styled()`.

Key features

  1. 01Styling layer selection
  2. 02Local `sx` styling
  3. 03Reusable `styled()` wrappers
  4. 04Theme-wide component overrides
  5. 05Global styles and baselines
  6. 06`sx` versus `styled()` guidance

Use cases

  1. 01Choosing a styling approach for a change
  2. 02Overriding component slots or states
  3. 03Creating reusable styled wrappers
  4. 04Avoiding common `sx` and `styled()` pitfalls

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mui/material-ui --skill material-ui-styling

After installing, type/material-ui-stylingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
reference.md
metadata.json
AGENTS.md

Details

From the project README

Material UI styling

Agent skill for picking the correct styling layer in Material UI (narrowest scope first). SKILL.md is the entry and index; AGENTS.md is the full guide.

When to apply

  • Choosing among sx, styled(), theme components, or global CSS for a change
  • Overriding component slots or state safely
  • Comparing sx vs styled() semantics (spacing, theme shortcuts)

Sections in AGENTS.md (by priority)

OrderTopicScope
1Quick decisionPick sx → styled → theme → global
2sx propOne-off / local
3styled()Reusable wrapper
4createTheme({ components })All instances
5GlobalStyles / CssBaselineHTML baseline / globals
6sx vs styled() tableFoot-gun prevention

Full guide

Read AGENTS.md for the complete instructions, examples, and doc links.

Supplementary tables: reference.md.

Comments

Markdown supported