Easy margin and spacing adjustments are possible with the help of Material-UI. They provide shortcuts that eliminate the need to individually style components with CSS.
In the code snippet below, it's important to note that specifying the measurement unit (px) is necessary for the margin property to be applied correctly.
<Box display="flex" alignItems="center" marginRight={`${theme.spacing(25)}px`}>...</Box>
I prefer relying on MUI to handle styling rather than using CSS classes directly.
It's even better to avoid string concatenation when applying styles.
<Box display="flex" alignItems="center" marginRight={theme.spacing(25)}>...</Box>