Style minidenticon-svg custom elements
mainThe custom element renders an SVG that expands to fill its container. The background is transparent, and there is built-in white space around the colored matrix to support uncropped circular avatars.
To create a circular avatar, target the svg inside the custom element:
minidenticon-svg svg {
border-radius: 50%;
background-color: grey;
height: 48px;
width: 48px;
}You can also adjust the visual theme using the saturation and lightness attributes on the element (values between 0 and 100).
<minidenticon-svg username="laurent" saturation="60" lightness="50"></minidenticon-svg>