Swatch icon
boxicons:swatch
The Swatch icon (boxicons:swatch) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20 14h-4.34L21 8.66c.78-.78.78-2.05 0-2.83l-2.84-2.84c-.78-.78-2.05-.78-2.83 0L9.99 8.33V3.99c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2v14c0 2.21 1.79 4 4 4h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2Zm-3.25-9.59l2.84 2.83l-6.75 6.75H7.17l9.59-9.59ZM8 4v6.34L4.04 14.3s-.03.04-.04.06V4zm12 16H6c-1.1 0-2-.9-2-2s.9-2 2-2h14z"/><path fill="currentColor" d="M6 17a1 1 0 1 0 0 2a1 1 0 1 0 0-2"/></svg>How to use the Swatch icon
React
import { Icon } from "@iconify/react";
<Icon icon="boxicons:swatch" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="boxicons:swatch" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="boxicons:swatch" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--swatch]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:swatch"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="boxicons:swatch"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/boxicons/swatch.svg" alt="Swatch icon" width="24" height="24">Related icons in Boxicons
Swatch icon in other icon sets
Swatch icon FAQ
Is the Swatch icon free for commercial use?
Yes. Boxicons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Swatch icon in React?
Install @iconify/react and render <Icon icon="boxicons:swatch" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Swatch icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/swatch.svg" alt="Swatch icon">, or paste the SVG code inline to style it with CSS.