ICONYZ
English
Moon icon from Font Awesome 5 Regular

Moon icon

fa-regular:moon

The Moon icon (fa-regular:moon) is a free SVG icon from the Font Awesome 5 Regular set by Dave Gandy. It is drawn on a 512 × 512 grid. Font Awesome 5 Regular icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Font Awesome 5 Regular
Author
Dave Gandy
License
CC-BY-4.0
Size
512 × 512
Category
Science Fiction, Weather, Objects
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="currentColor" d="M279.135 512c78.756 0 150.982-35.804 198.844-94.775c28.27-34.831-2.558-85.722-46.249-77.401c-82.348 15.683-158.272-47.268-158.272-130.792c0-48.424 26.06-92.292 67.434-115.836c38.745-22.05 28.999-80.788-15.022-88.919A258 258 0 0 0 279.135 0c-141.36 0-256 114.575-256 256c0 141.36 114.576 256 256 256m0-464c12.985 0 25.689 1.201 38.016 3.478c-54.76 31.163-91.693 90.042-91.693 157.554c0 113.848 103.641 199.2 215.252 177.944C402.574 433.964 344.366 464 279.135 464c-114.875 0-208-93.125-208-208s93.125-208 208-208"/></svg>

How to use the Moon icon

React

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

<Icon icon="fa-regular:moon" width="24" />

Vue

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

<template>
  <Icon icon="fa-regular:moon" width="24" />
</template>

Svelte

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

<Icon icon="fa-regular:moon" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="fa-regular:moon"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/fa-regular/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. Font Awesome 5 Regular icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Moon icon in React?

Install @iconify/react and render <Icon icon="fa-regular: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/fa-regular/moon.svg" alt="Moon icon">, or paste the SVG code inline to style it with CSS.

Browse all Font Awesome 5 Regular icons →