This solution here seems no longer works, there is an updated version:
(Note that this is for tag type - bullet, so originally if you use a different style, the css selector will be different.)
@import url("https://use.fontawesome.com/releases/v5.13.0/css/all.css");
.discourse-tag.bullet::before {
top: 0em;
margin-right: 5px;
content: "\f02b";
color: #bbbdbb;
background: none;
height: 16px; /* You might need to fix this a little for mobile view */
font-weight: 900;
font-size: 0.9em;
font-family: "Font Awesome 5 Free"; /* This is the correct font-family*/
}
Or to reduce unnecessary load of whole https://use.fontawesome.com/releases/v5.13.0/css/all.css
, you can remove that @import
line and use SVG as content:
content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="10" width="10" ><path fill="grey" d="M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"/></svg>');
You can find all SVG here: