Getting started
Kumo Icons are plain SVG files. There is nothing to install: copy the markup from an icon page, download a single file, or grab the whole set as a ZIP.
Inline in HTML
Inline SVG is the most flexible option. The icon inherits color from its parent, so it matches the surrounding text.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></svg>
As an image
<img src="/icons/search.svg" width="20" height="20" alt="Search">
Images can't inherit colour. If you need a coloured icon in an <img>, open the file and replace currentColor with your colour.
As a CSS mask
Masks let you colour an external SVG with background-color:
.icon-search {
width: 20px; height: 20px;
background-color: currentColor;
-webkit-mask: url(/icons/search.svg) center / contain no-repeat;
mask: url(/icons/search.svg) center / contain no-repeat;
}
In React
export function SearchIcon(props) {
return (
<svg viewBox="0 0 24 24" width={24} height={24} fill="none"
stroke="currentColor" strokeWidth={1.8}
strokeLinecap="round" strokeLinejoin="round" {...props}>
<circle cx="11" cy="11" r="6.5" />
<path d="M16 16l4.5 4.5" />
</svg>
);
}
Accessibility
Decorative icons next to a text label should get aria-hidden="true". An icon that is the only content of a button needs an accessible name, for example aria-label="Search" on the button.