ICONYZ
English
Moon icon from Prime Icons

Moon icon

prime:moon

The Moon icon (prime:moon) is a free SVG icon from the Prime Icons set by PrimeTek. It is drawn on a 24 × 24 grid. Prime 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
Prime Icons
Author
PrimeTek
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.09 20.66a9 9 0 0 1-1.09-.07A8.8 8.8 0 0 1 3.41 13a8.71 8.71 0 0 1 6.83-9.67a1.23 1.23 0 0 1 1.27.48a1.27 1.27 0 0 1 .05 1.4a5.3 5.3 0 0 0-.66 3.47a5.24 5.24 0 0 0 4.38 4.38a5.2 5.2 0 0 0 3.47-.67a1.27 1.27 0 0 1 1.4.07a1.21 1.21 0 0 1 .48 1.26a8.7 8.7 0 0 1-8.54 6.94M10 5a7.25 7.25 0 1 0 9 9a6.74 6.74 0 0 1-9.61-5A6.75 6.75 0 0 1 10 5"/></svg>

How to use the Moon icon

React

import { Icon } from "@iconify/react";

<Icon icon="prime:moon" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="prime:moon" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="prime:moon" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[prime--moon]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/prime -->
<div class="i-prime:moon"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="prime:moon"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/prime/moon.svg" alt="Moon icon" width="24" height="24">

Moon icon in other icon sets

Moon icon FAQ

Is the Moon icon free for commercial use?

Yes. Prime 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="prime: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/prime/moon.svg" alt="Moon icon">, or paste the SVG code inline to style it with CSS.

Browse all Prime Icons →