Moon icon
hugeicons:moon
The Moon icon (hugeicons:moon) is a free SVG icon from the Huge Icons set by Hugeicons. It is drawn on a 24 × 24 grid. Huge 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
- Huge Icons
- Author
- Hugeicons
- License
- MIT
- Size
- 24 × 24
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="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10"/><path d="M12 22c3.314 0 6-4.477 6-10S15.314 2 12 2m-2 12.5a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0M11.125 7H11m.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0"/></g></svg>How to use the Moon icon
React
import { Icon } from "@iconify/react";
<Icon icon="hugeicons:moon" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="hugeicons:moon" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="hugeicons:moon" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[hugeicons--moon]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/hugeicons -->
<div class="i-hugeicons:moon"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="hugeicons:moon"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/hugeicons/moon.svg" alt="Moon icon" width="24" height="24">Related icons in Huge Icons
moon-01
moon-02
moon-angled-rain-zap
moon-cloud
moon-cloud-angled-rain
moon-cloud-angled-zap
moon-cloud-big-rain
moon-cloud-fast-wind
moon-cloud-hailstone
moon-cloud-little-rain
moon-cloud-little-snow
moon-cloud-mid-rain
moon-cloud-mid-snow
moon-cloud-slow-wind
moon-cloud-snow
moon-eclipse
moon-fast-wind
moon-landing
moon-slow-wind
moon-star
moonset
Moon icon in other icon sets
Moon icon FAQ
Is the Moon icon free for commercial use?
Yes. Huge 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="hugeicons: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/hugeicons/moon.svg" alt="Moon icon">, or paste the SVG code inline to style it with CSS.