# MUI Styling Guide ## The sx Prop The `sx` prop is the primary styling method in MUI v7+: ```typescript ``` ## Theme-Aware Values ```typescript // Spacing (multiplied by theme.spacing, default 8px) sx={{ p: 2 }} // padding: 16px // Colors from palette sx={{ bgcolor: 'primary.main', color: 'text.secondary' }} // Breakpoints sx={{ width: { xs: '100%', sm: '50%', md: '33%' } }} // Typography variants sx={{ typography: 'h4' }} // Applies theme.typography.h4 ``` ## Responsive Styles ```typescript ``` ## Pseudo-Selectors and Nested Styles ```typescript