plugins/aai-stack-material-ui/skills/mui-theming/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/the-answerai/alphaagent-team/blob/main/plugins/aai-stack-material-ui/skills/mui-theming/SKILL.md -a claude-code --skill mui-themingInstallation paths:
.claude/skills/mui-theming/# Material-UI Theming Skill
Patterns for customizing Material-UI themes.
## Creating Themes
### Basic Theme
```tsx
import { createTheme, ThemeProvider } from '@mui/material'
const theme = createTheme({
palette: {
primary: {
main: '#1976d2',
},
secondary: {
main: '#dc004e',
},
},
})
function App() {
return (
<ThemeProvider theme={theme}>
<CssBaseline />
<YourApp />
</ThemeProvider>
)
}
```
### Custom Palette
```tsx
const theme = createTheme({
palette: {
primary: {
light: '#4dabf5',
main: '#2196f3',
dark: '#1769aa',
contrastText: '#fff',
},
secondary: {
light: '#ff7961',
main: '#f44336',
dark: '#ba000d',
contrastText: '#000',
},
error: {
main: '#f44336',
},
warning: {
main: '#ff9800',
},
info: {
main: '#2196f3',
},
success: {
main: '#4caf50',
},
background: {
default: '#f5f5f5',
paper: '#ffffff',
},
text: {
primary: 'rgba(0, 0, 0, 0.87)',
secondary: 'rgba(0, 0, 0, 0.6)',
disabled: 'rgba(0, 0, 0, 0.38)',
},
},
})
```
### Color from Palette
```tsx
import { blue, purple } from '@mui/material/colors'
const theme = createTheme({
palette: {
primary: {
main: blue[500],
light: blue[300],
dark: blue[700],
},
secondary: {
main: purple[500],
},
},
})
```
## Typography
### Custom Typography
```tsx
const theme = createTheme({
typography: {
fontFamily: '"Inter", "Roboto", "Helvetica", "Arial", sans-serif',
fontSize: 14,
h1: {
fontSize: '2.5rem',
fontWeight: 700,
lineHeight: 1.2,
},
h2: {
fontSize: '2rem',
fontWeight: 600,
},
h3: {
fontSize: '1.75rem',
fontWeight: 600,
},
body1: {
fontSize: '1rem',
lineHeight: 1.5,
},
body2: {
fontSize: '0.875rem',
lineHeight: 1.43,
},
button: {