HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/g7cJSR6Jw7i2/amnt.svg" alt="Partly Cloudy" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 8a3 3 0 0 0-5.8-1"/><path d="M12 2v1M5.5 4.5l.7.7M20 8h-1M18.5 4.5l-.7.7"/><path d="M6 20a3.5 3.5 0 0 1-.5-7A6 6 0 0 1 17 11.5a4.25 4.25 0 0 1 1.25 8.5H6Z"/></svg>
CSS background-image
.partly-cloudy {
background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/g7cJSR6Jw7i2/amnt.svg");
background-size: contain;
}
CSS mask-image (takes the text colour)
.partly-cloudy {
width: 1.5em; height: 1.5em;
background-color: currentColor;
mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/g7cJSR6Jw7i2/amnt.svg") center / contain no-repeat;
}
React
import PartlyCloudySvg from "./partly-cloudy.jsx"; // from the React tab above
<PartlyCloudySvg width={48} height={48} />