用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill mui命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | mui |
| description | Material UI — accessible React + Material Design; official MCP. |
@mui/material in package.json@emotion/react and @emotion/styled dependenciesThemeProvider, createTheme imports in codebaseCssBaseline component at app rootsx prop usage on componentsMUI has an official MCP server for component docs, prop references, examples, and theming.
Add to .claude/settings.json:
{
"mcpServers": {
"mui": {
"command": "npx",
"args": ["-y", "@mui/mcp@latest"]
}
}
}
If auto-configuration fails, ask the user to add the entry manually in their CLI's MCP settings (Claude Code → Settings → MCP Servers, the
mcpblock ofopencode.json, or Codex CLI's MCP config). The MCP provides real-time component API access without leaving the editor.
| Concept | Detail |
|---|---|
| ThemeProvider | Wraps the app; all components read theme tokens from it |
sx prop | Inline styling via theme tokens — preferred over style or CSS classes |
createTheme() | Extends/overrides Material Design defaults |
| Emotion | CSS-in-JS engine used internally — don't mix with other CSS-in-JS libs |
| Breakpoints | xs (0px), sm (600px), md (900px), lg (1200px), xl (1536px) |
useTheme() | Access theme tokens inside component logic |
// sx prop — use theme tokens, not raw values
<Box sx={{ p: 2, bgcolor: 'background.paper', borderRadius: 1 }}>
// Responsive values via sx
<Typography sx={{ fontSize: { xs: '1rem', md: '1.25rem' } }} />
// Theme extension — brand decisions belong here, not in CSS files
const theme = createTheme({
palette: { primary: { main: '#1976d2' } },
typography: { fontFamily: '"Inter", sans-serif' },
})
// Grid2 (v5+) — the deprecated Grid has been replaced
import Grid from '@mui/material/Grid2'
<Grid container spacing={2}>
<Grid size={6}><Item /></Grid>
</Grid>
sx over style — sx resolves theme tokens, breakpoints, and pseudo-selectors; style does notcreateTheme() — put all brand decisions there, not in global CSS overridesGrid2 (not the legacy Grid) in MUI v5+package.json