ICONYZ
English
Color Swatch icon from Mage Icons

Color Swatch icon

mage:color-swatch

The Color Swatch icon (mage:color-swatch) is a free SVG icon from the Mage Icons set by MageIcons. It is drawn on a 24 × 24 grid. Mage Icons are released under the Apache 2.0 license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Mage Icons
Author
MageIcons
License
Apache-2.0
Size
24 × 24
Tags
colorswatch
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M8.88 21.25h9.87a2.5 2.5 0 0 0 2.5-2.5v-3.63a2.5 2.5 0 0 0-2.5-2.48h-1.27m-6.1 6.09l6.1-6.11l1.87-1.87a2.49 2.49 0 0 0 0-3.53l-2.57-2.57a2.49 2.49 0 0 0-3.53 0l-1.87 1.87"/><path d="M8.88 2.75H5.25a2.5 2.5 0 0 0-2.5 2.5v13.5a2.5 2.5 0 0 0 2.5 2.5h3.63a2.5 2.5 0 0 0 2.5-2.5V5.25a2.5 2.5 0 0 0-2.5-2.5"/><path d="M7.065 18.594a1.594 1.594 0 1 0 0-3.188a1.594 1.594 0 0 0 0 3.188"/></g></svg>

How to use the Color Swatch icon

React

import { Icon } from "@iconify/react";

<Icon icon="mage:color-swatch" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="mage:color-swatch" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="mage:color-swatch" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[mage--color-swatch]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/mage -->
<div class="i-mage:color-swatch"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="mage:color-swatch"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/mage/color-swatch.svg" alt="Color Swatch icon" width="24" height="24">

Related icons in Mage Icons

Color Swatch icon in other icon sets

Color Swatch icon FAQ

Is the Color Swatch icon free for commercial use?

Yes. Mage Icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.

How do I use the Color Swatch icon in React?

Install @iconify/react and render <Icon icon="mage:color-swatch" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Color Swatch icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/mage/color-swatch.svg" alt="Color Swatch icon">, or paste the SVG code inline to style it with CSS.

Browse all Mage Icons →