Moon icon
uil:moon
The Moon icon (uil:moon) is a free SVG icon from the Unicons set by Iconscout. It is drawn on a 24 × 24 grid. Unicons 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
- Unicons
- Author
- Iconscout
- License
- Apache-2.0
- Size
- 24 × 24
- Category
- Weather
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21.64 13a1 1 0 0 0-1.05-.14a8.05 8.05 0 0 1-3.37.73a8.15 8.15 0 0 1-8.14-8.1a8.6 8.6 0 0 1 .25-2A1 1 0 0 0 8 2.36a10.14 10.14 0 1 0 14 11.69a1 1 0 0 0-.36-1.05m-9.5 6.69A8.14 8.14 0 0 1 7.08 5.22v.27a10.15 10.15 0 0 0 10.14 10.14a9.8 9.8 0 0 0 2.1-.22a8.11 8.11 0 0 1-7.18 4.32Z"/></svg>How to use the Moon icon
React
import { Icon } from "@iconify/react";
<Icon icon="uil:moon" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="uil:moon" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="uil:moon" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[uil--moon]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/uil -->
<div class="i-uil:moon"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="uil:moon"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/uil/moon.svg" alt="Moon icon" width="24" height="24">Related icons in Unicons
Moon icon in other icon sets
Moon icon FAQ
Is the Moon icon free for commercial use?
Yes. Unicons are released under the Apache 2.0 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="uil: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/uil/moon.svg" alt="Moon icon">, or paste the SVG code inline to style it with CSS.