Moon icon
thesvg-color:moon
The Moon icon (thesvg-color:moon) is a free SVG icon from the theSVG Color set by thesvg.org. It is drawn on a 256 × 256 grid. theSVG Color icons 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.
- Icon set
- theSVG Color
- Author
- thesvg.org
- License
- MIT
- Size
- 256 × 256
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><defs><radialGradient id="SVGnL1xucik" cx="50%" cy="50%" r="49.789%" fx="50%" fy="50%"><stop offset="0%" stop-color="#4600d1"/><stop offset="49.285%" stop-color="#4600d1"/><stop offset="100%" stop-color="#35009f"/></radialGradient><radialGradient id="SVGzG1r7dEc" cx="50%" cy="50%" r="49.603%" fx="50%" fy="50%"><stop offset="0%" stop-color="#35019e"/><stop offset="18.73%" stop-color="#320194"/><stop offset="100%" stop-color="#206"/></radialGradient><circle id="SVGN5eQqeMK" cx="128" cy="128" r="128"/></defs><circle cx="128" cy="128" r="128" fill="#5805ff"/><mask id="SVGMX2wGdvm" fill="#fff"><use href="#SVGN5eQqeMK"/></mask><circle cx="199.694" cy="105.369" r="128" fill="url(#SVGnL1xucik)" mask="url(#SVGMX2wGdvm)"/><circle cx="275.372" cy="82.376" r="128" fill="url(#SVGzG1r7dEc)" mask="url(#SVGMX2wGdvm)"/></svg>How to use the Moon icon
React
import { Icon } from "@iconify/react";
<Icon icon="thesvg-color:moon" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="thesvg-color:moon" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="thesvg-color:moon" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[thesvg-color--moon]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/thesvg-color -->
<div class="i-thesvg-color:moon"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="thesvg-color:moon"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/thesvg-color/moon.svg" alt="Moon icon" width="24" height="24">Related icons in theSVG Color
Moon icon in other icon sets
Moon icon FAQ
Is the Moon icon free for commercial use?
Yes. theSVG Color icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Moon icon in React?
Install @iconify/react and render <Icon icon="thesvg-color:moon" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Moon icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/thesvg-color/moon.svg" alt="Moon icon">, or paste the SVG code inline to style it with CSS.