Icons

You can use the Miro icons by adding class .icon + .icon-eye, eye in this case is the icon name.

html

<span class="icon icon-eye"></span>

🏓 Interactive playground

Click an icon to copy the classname to your clipboard.

People

Objects

Symbols

Board Objects

Frames

Devices

Editor

Including icons in HTML

The SVG files are in the ./icons directory inside the NPM package. To use the SVG icon right away, copy the file(s) you need to your project.

For example, if you want to make a header with the arrow-line-shape icon inside of it:

html

<h2 class="my-header">
	<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
		<path d="m14.293 8.293-11 11a1 1 0 1 0 1.414 1.414l11-11L18 12l3-9-9 3 2.293 2.293Z" />
	</svg>
	Header
</h2>

🏓 Interactive playground

css

.my-header svg {
	width: 20px;
	height: 20px;
	display: inline-block;
}

🏓 Interactive playground

Colors

While you shouldn't need to change the colors of the Icons, if you need to change an icons' color, you have to use CSS filters. We use the CSS background-image property to add the icon to a HTML element, which doesn't accept a color parameter. With this approach, colors aren't always 100% accurate.

Icon color generator

Converting hex colors into CSS-filters can be inaccurate, check the output below to ensure good results.

#
Color loss: 0.0 - this is a perfect result.

Output

Original hex color

Color applied as CSS filter

css

.your-icon {
	filter: invert(12%) sepia(90%) saturate(6411%) hue-rotate(359deg) brightness(105%) contrast(113%);
}
CSS Filter generation based upon this codepen.

Another option is to include the SVG markup in your HTML and using CSS fill="your-color" to alter the colors.

To use icons in your design mockups, check out the Mirotone UI Library on Figma, that includes all icons in the library, and more.