I have some lists on this page:
https://www.nickhodges.com/FavoriteStuff
but I want the spacing between the bullets to be smaller. I can't figure out the right way to do that using theming. I've tried this:
import { extendTheme } from "@mui/joy/styles";
const theme = extendTheme({
fontFamily: {
body: "'Public Sans', var(--joy-fontFamily-fallback)",
},
spacing: 1;
});
export default theme;
but that seems to have no effect.
There are multiple ways to reduce the spacing:
Set
<List size="sm">(the font-size will all also reduce)Set CSS variable
--ListItem-minHeightusing the sx prop on the List component:See the preview here: https://codesandbox.io/s/sweet-rgb-86h52q?file=/Demo.js