```
const theme = createMuiTheme({
  spacing: factor => [0, 4, 8, 16, 32, 64][factor],
});

theme.spacing(2); // = 8

```

This is a sample code in the Material-UI framework document.
Here is the original link to the code：<https://material-ui.com/customization/spacing/>