HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/yXrjffBGrV8k/amnt.svg" alt="Person With Curly Hair" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" fill="currentColor"><path d="M68 119h64c27 0 49 22 49 49v13H19v-13c0-27 22-49 49-49Z"/><ellipse cx="100" cy="76" rx="34" ry="41"/><circle cx="65" cy="49" r="15"/><circle cx="81" cy="34" r="16"/><circle cx="101" cy="30" r="17"/><circle cx="122" cy="35" r="16"/><circle cx="137" cy="51" r="15"/><circle cx="56" cy="72" r="14"/><circle cx="144" cy="73" r="14"/><circle cx="61" cy="95" r="13"/><circle cx="139" cy="96" r="13"/></svg>
CSS background-image
.person-with-curly-hair {
background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/yXrjffBGrV8k/amnt.svg");
background-size: contain;
}
CSS mask-image (takes the text colour)
.person-with-curly-hair {
width: 1.5em; height: 1.5em;
background-color: currentColor;
mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/yXrjffBGrV8k/amnt.svg") center / contain no-repeat;
}
React
import PersonWithCurlyHairSvg from "./person-with-curly-hair.jsx"; // from the React tab above
<PersonWithCurlyHairSvg width={48} height={48} />