Moon icon
logos:moon
The Moon icon (logos:moon) is a free SVG icon from the SVG Logos set by Gil Barbara. It is drawn on a 256 × 256 grid. SVG Logos icons are released under the CC0 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
- SVG Logos
- Author
- Gil Barbara
- License
- CC0-1.0
- 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="logos:moon" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="logos:moon" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="logos:moon" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[logos--moon]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/logos -->
<div class="i-logos:moon"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="logos:moon"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/logos/moon.svg" alt="Moon icon" width="24" height="24">Related icons in SVG Logos
Moon icon in other icon sets
Moon icon FAQ
Is the Moon icon free for commercial use?
Yes. SVG Logos icons are released under the CC0 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="logos: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/logos/moon.svg" alt="Moon icon">, or paste the SVG code inline to style it with CSS.