Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/dipro-vn/dipro-ai-boost --skill mui-theme-customizationコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | mui-theme-customization |
| description | null |
Category: mui · Status: 🟢 Active
Khi cần tùy biến palette, typography, hoặc default style của component MUI ở cấp toàn app.
createTheme, bọc app bằng ThemeProvider.palette (primary, secondary, error...) thay vì rải hex trong code.fontFamily, scale h1..body2) một chỗ.components.MuiX.defaultProps / styleOverrides.sx/theme.palette, không hardcode lại giá trị đã có trong theme.const theme = createTheme({
palette: { primary: { main: '#1976d2' }, text: { secondary: '#5f6b7a' } },
typography: { fontFamily: 'Inter, sans-serif', button: { textTransform: 'none' } },
components: {
MuiButton: { defaultProps: { disableElevation: true },
styleOverrides: { root: { borderRadius: 8 } } },
},
});
<ThemeProvider theme={theme}><App /></ThemeProvider>
Good: màu/typography khai báo trong theme, override default qua components, dùng lại token khắp app.
Avoid: hardcode hex/font trong từng component, lặp sx giống nhau thay vì set default ở theme.
components.MuiX