swatch-solid from HeroIcons by Refactoring UI Inc · Solid 24x24 · MIT Free for personal and commercial use.

Name
swatch-solid
Set
HeroIcons
Style
Solid 24x24
Viewbox
24×24
License
MIT

3 other variants in HeroIcons

The same icon in other sets

Use the swatch icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M2.25 4.125c0-1.036.84-1.875 1.875-1.875h5.25c1.036 0 1.875.84 1.875 1.875V17.25a4.5 4.5 0 1 1-9 0zm4.5 14.25a1.125 1.125 0 1 0 0-2.25a1.125 1.125 0 0 0 0 2.25" clip-rule="evenodd"/><path d="M10.719 21.75h9.156c1.036 0 1.875-.84 1.875-1.875v-5.25c0-1.036-.84-1.875-1.875-1.875h-.14l-8.742 8.743q-.134.134-.274.257m2.019-4.124l6.474-6.475a1.875 1.875 0 0 0 0-2.651L15.5 4.787a1.875 1.875 0 0 0-2.651 0l-.1.099V17.25q0 .189-.01.375"/></g></svg>

React

import type { SVGProps } from "react";

export function HeroiconsSwatchSolid(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="currentColor"><path fillRule="evenodd" d="M2.25 4.125c0-1.036.84-1.875 1.875-1.875h5.25c1.036 0 1.875.84 1.875 1.875V17.25a4.5 4.5 0 1 1-9 0zm4.5 14.25a1.125 1.125 0 1 0 0-2.25a1.125 1.125 0 0 0 0 2.25" clipRule="evenodd"/><path d="M10.719 21.75h9.156c1.036 0 1.875-.84 1.875-1.875v-5.25c0-1.036-.84-1.875-1.875-1.875h-.14l-8.742 8.743q-.134.134-.274.257m2.019-4.124l6.474-6.475a1.875 1.875 0 0 0 0-2.651L15.5 4.787a1.875 1.875 0 0 0-2.651 0l-.1.099V17.25q0 .189-.01.375"/></g></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M2.25 4.125c0-1.036.84-1.875 1.875-1.875h5.25c1.036 0 1.875.84 1.875 1.875V17.25a4.5 4.5 0 1 1-9 0zm4.5 14.25a1.125 1.125 0 1 0 0-2.25a1.125 1.125 0 0 0 0 2.25" clip-rule="evenodd"/><path d="M10.719 21.75h9.156c1.036 0 1.875-.84 1.875-1.875v-5.25c0-1.036-.84-1.875-1.875-1.875h-.14l-8.742 8.743q-.134.134-.274.257m2.019-4.124l6.474-6.475a1.875 1.875 0 0 0 0-2.651L15.5 4.787a1.875 1.875 0 0 0-2.651 0l-.1.099V17.25q0 .189-.01.375"/></g></svg>
</template>

CSS

.icon-swatch-solid {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22currentColor%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M2.25%204.125c0-1.036.84-1.875%201.875-1.875h5.25c1.036%200%201.875.84%201.875%201.875V17.25a4.5%204.5%200%201%201-9%200zm4.5%2014.25a1.125%201.125%200%201%200%200-2.25a1.125%201.125%200%200%200%200%202.25%22%20clip-rule%3D%22evenodd%22%2F%3E%3Cpath%20d%3D%22M10.719%2021.75h9.156c1.036%200%201.875-.84%201.875-1.875v-5.25c0-1.036-.84-1.875-1.875-1.875h-.14l-8.742%208.743q-.134.134-.274.257m2.019-4.124l6.474-6.475a1.875%201.875%200%200%200%200-2.651L15.5%204.787a1.875%201.875%200%200%200-2.651%200l-.1.099V17.25q0%20.189-.01.375%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22currentColor%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M2.25%204.125c0-1.036.84-1.875%201.875-1.875h5.25c1.036%200%201.875.84%201.875%201.875V17.25a4.5%204.5%200%201%201-9%200zm4.5%2014.25a1.125%201.125%200%201%200%200-2.25a1.125%201.125%200%200%200%200%202.25%22%20clip-rule%3D%22evenodd%22%2F%3E%3Cpath%20d%3D%22M10.719%2021.75h9.156c1.036%200%201.875-.84%201.875-1.875v-5.25c0-1.036-.84-1.875-1.875-1.875h-.14l-8.742%208.743q-.134.134-.274.257m2.019-4.124l6.474-6.475a1.875%201.875%200%200%200%200-2.651L15.5%204.787a1.875%201.875%200%200%200-2.651%200l-.1.099V17.25q0%20.189-.01.375%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/heroicons/swatch-solid.svg?color=%231a73e8&size=48