name: mui-theming description: Customize the portfolio's Material-UI (MUI) 5 theme. Use when updating colors, typography, or component styles in src/theme.ts to create a unique personal brand.
MUI Theming
This skill provides expert guidance on styling your portfolio using Material-UI's createTheme.
Core Workflows
1. Palette Customization
When the user wants to change the look and feel:
- Suggest Palettes: Recommend high-contrast, professional color schemes (e.g., Deep Indigo & Cyan, Dark Slate & Emerald).
- Define
primary&secondary: Updatepalette.primaryandpalette.secondaryinsrc/theme.ts. - Mode Toggle: Support both
lightanddarkmodes if the theme allows.
2. Typography Adjustments
- Suggest modern font pairings (e.g., Inter for body, Roboto Slab for headers).
- Ensure responsive font sizes using
responsiveFontSizesfrom@mui/material/styles.
3. Component Overrides
- Modify
componentsincreateThemeto apply global styles toMuiButton,MuiCard, etc. - Suggest specific overrides like rounded corners (
borderRadius: 12) or card shadows.
Reference Materials
- Color Guide: See COLORS.md for pre-defined palettes.
- Theme Structure: Refer to
src/theme.tsfor the project's current theme definition.
Quality Standards
- Accessibility: Always verify that color pairings meet WCAG AA contrast ratios.
- Consistency: Ensure the theme is applied globally through
ThemeProviderinsrc/index.tsx.