In this article
Our themes use inline SVG for icons as they offer better page load performance and improved accessibility over font-based icon systems. We provide an excellent set to get started and there are many collections available online for free like Bootstrap Icons and Heroicons.
Zendesk’s default Copenhagen theme recently made this change with their move to version 2 of the theming API. For more information about the differences between font-based and inline SVG icons, refer to this article.
.svg-icon with an inline SVG icon to make it scale in relation to surrounding text.
A paragraph of text
A variety of different icons are included within each of our themes, which you can mix-and-match. Below are some examples of commonly used SVG icons:
.stroke-current to set the fill or stroke color of the SVG to the current text color. Text color utilities can then be used to control the color of an icon.
Click on any of the icons on this page to copy the SVG code to the clipboard.