Get started with @phosphor-icons/web via CDN
masterPhosphor Icons are provided as webfonts using Unicode's Private Use Area. To use them, include the stylesheet for your desired weight in the <head> of your HTML document, then use an <i> tag with the appropriate weight and icon classes.
Only the weights you explicitly import will render. For example, to use the bold weight, include the bold/style.css stylesheet and use the .ph-bold class followed by the icon name class (e.g., .ph-smiley).
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Import a specific weight -->
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.2/src/bold/style.css"
/>
</head>
<body>
<!-- Use the weight class and the icon class -->
<i class="ph-bold ph-smiley"></i>
<i class="ph-bold ph-heart" style="color: hotpink"></i>
</body>
</html>