Moon icon
griddy-icons:moon
The Moon icon (griddy-icons:moon) is a free SVG icon from the Griddy Icons set by Zuzana Benova. It is drawn on a 24 × 24 grid. Griddy 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
- Griddy Icons
- Author
- Zuzana Benova
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 22C6.485 22 2 17.515 2 12c0-5.02 3.755-9.28 8.735-9.91l1.11-.14l-.29 1.08c-.2.75-.305 1.495-.305 2.225c0 4.685 3.815 8.5 8.5 8.5a9 9 0 0 0 1.075-.075l1.11-.14l-.29 1.08A10.01 10.01 0 0 1 12 22.005zM9.865 3.78C6.17 4.735 3.5 8.1 3.5 12c0 4.685 3.815 8.5 8.5 8.5c3.46 0 6.55-2.11 7.845-5.25h-.095c-5.515 0-10-4.485-10-10q.001-.727.115-1.47"/></svg>How to use the Moon icon
React
import { Icon } from "@iconify/react";
<Icon icon="griddy-icons:moon" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="griddy-icons:moon" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="griddy-icons:moon" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[griddy-icons--moon]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/griddy-icons -->
<div class="i-griddy-icons:moon"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="griddy-icons:moon"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/griddy-icons/moon.svg" alt="Moon icon" width="24" height="24">Related icons in Griddy Icons
Moon icon in other icon sets
Moon icon FAQ
Is the Moon icon free for commercial use?
Yes. Griddy 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="griddy-icons: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/griddy-icons/moon.svg" alt="Moon icon">, or paste the SVG code inline to style it with CSS.