Icons

Heroicons Swatch Icon

The Swatch icon from Heroicons is a outline-style SVG available in IconStash alongside 1,297+ other icons from the same library. Copy its SVG code, export a custom PNG, or download a React component — no account required.

Interactive Customizer

1.5px
128px

About this icon

Use the Swatch icon

Icons in the outline style — like Swatch — are designed for app navigation bars, toolbar buttons, form labels, and UI controls where clarity at 16–24px is critical. Use it across device dashboards, IoT interfaces, product settings pages, hardware control panels, and tech product sites for a consistent, professional look.

IconStash's editor lets you fine-tune color, size, and stroke width in real time, then export in the format that fits your workflow: SVG, PNG, JSX, or CSS background-mask.

Export formats

Copy clean SVG vectors with one click, generate custom-size PNG files from 16px to 512px, export JSX/React components ready to paste into your project, or use the icon as a CSS background-mask for flexible theming.

All exports are based on the same editable vector — so the Swatch icon stays pixel-perfect at 16px, 24px, 48px, and any large marketing size.

Design & UX integration

Aesthetic characteristics

Heroicons is made by the Tailwind CSS team, and Swatch shows it: geometry tuned to sit on Tailwind's spacing scale and to stay legible at 16px, 20px and 24px. Every icon ships in both outline and solid, so you can change style without changing size or re-aligning anything.

UX best practices

When representing hardware, systems or settings, the Swatch icon works best in configuration panels and device dashboards. Use the outline state for inactive devices and switch to a filled or accented state for online ones — but pair that with text or a status dot, since fill alone is not a colour-blind-safe signal.

Use in your project

React / npm — Heroicons

npm install @heroicons/react

import { SwatchIcon } from '@heroicons/react/24/outline';

// JSX usage:
<SwatchIcon className="h-6 w-6 text-gray-700" />

Copy the SVG markup directly from the IconStash editor to use the Swatch icon without any npm package — paste it into HTML, JSX, or a design tool.

Inline SVG (copy & paste)

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="swatch icon"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88a1.124 1.124 0 0 1 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75z"/></svg>

Library & related icons

About Heroicons

Hand-crafted SVG icons by the makers of Tailwind CSS. Available in outline and solid variants at 16px, 20px, and 24px — perfect for Tailwind-based projects.

  • Total icons: 1,297+
  • Style: outline/solid
  • License: MIT
  • npm package: @heroicons/react
Browse all 1,297 Heroicons icons →

People also search for

Frequently asked questions

What is the Swatch icon?

The Swatch icon is a outline-style SVG icon from the Heroicons library, categorized under Devices. It is designed for use in device dashboards, IoT interfaces, product settings pages, hardware control panels, and tech product sites. On IconStash you can preview it, customize its color and size, and export it in SVG, PNG, JSX, or CSS formats directly from your browser.

Is the Swatch icon free to use?

Yes. Heroicons is licensed under MIT, making it free for personal and commercial use. This means you can freely use the Swatch icon in personal, commercial, and open-source projects. IconStash provides SVG and PNG access at no cost with no login required.

How do I use the Swatch icon in React?

Install the package with `npm install @heroicons/react`, then import the component into your React file. IconStash's detail panel shows you the exact npm command, import statement, and JSX usage snippet for every icon — just click the Code tab and copy with one click.

What is the Heroicons icon library?

Hand-crafted SVG icons by the makers of Tailwind CSS. Available in outline and solid variants at 16px, 20px, and 24px — perfect for Tailwind-based projects. It contains 1,297+ icons. IconStash indexes the complete Heroicons collection alongside 27 other open-source libraries — 134,701 icons total — in a single unified search interface.

Can I download the Swatch icon as a PNG?

Yes. Open the Swatch icon in IconStash, set your desired pixel size (16px to 512px) in the detail panel, and click Download PNG. You can also export a multi-resolution ZIP pack containing 16, 24, 32, 48, 64, 128, 256, and 512px PNGs with a single click.

What does the outline icon style mean?

An icon in outline style uses stroked lines with no fill — clean, legible, and versatile at any size. This style is best suited for app navigation bars, toolbar buttons, form labels, and UI controls where clarity at 16–24px is critical. The Heroicons Swatch icon follows this visual convention throughout the Heroicons design system.

Can I change the Swatch icon's color and size before downloading?

Yes. In IconStash's editor panel, choose from six color presets (blue, slate, green, purple, red, teal) or enter a custom hex value. Drag the size slider (16–256px) or type an exact pixel value up to 512px. Changes apply instantly to the SVG preview, the PNG output, and the copied code.