Moon 2 icon
duo-icons:moon-2
The Moon 2 icon (duo-icons:moon-2) is a free SVG icon from the Duoicons set by fernandcf. It is drawn on a 24 × 24 grid. Duoicons 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20.15 18.125L5.875 3.85a9.9 9.9 0 0 1 2.437-1.825A10.3 10.3 0 0 1 11.25 1q-.45 2.475.275 4.837a9.9 9.9 0 0 0 2.5 4.138a9.9 9.9 0 0 0 4.138 2.5q2.362.725 4.837.275a9.6 9.6 0 0 1-1.012 2.938a10.2 10.2 0 0 1-1.838 2.437" class="duoicon-primary-layer"/><path fill="currentColor" d="m19.375 23.05l-2.7-2.7a10 10 0 0 1-1.737.487Q14.05 21 13.1 21a9.8 9.8 0 0 1-3.938-.8a10.3 10.3 0 0 1-3.199-2.162a10.3 10.3 0 0 1-2.163-3.2A9.8 9.8 0 0 1 3 10.9q0-.95.163-1.838q.162-.887.487-1.737L.975 4.65L2.4 3.225l18.4 18.4z" class="duoicon-secondary-layer" opacity=".3"/></svg>How to use the Moon 2 icon
React
import { Icon } from "@iconify/react";
<Icon icon="duo-icons:moon-2" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="duo-icons:moon-2" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="duo-icons:moon-2" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[duo-icons--moon-2]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/duo-icons -->
<div class="i-duo-icons:moon-2"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="duo-icons:moon-2"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/duo-icons/moon-2.svg" alt="Moon 2 icon" width="24" height="24">Related icons in Duoicons
Moon 2 icon in other icon sets
Moon 2 icon FAQ
Is the Moon 2 icon free for commercial use?
Yes. Duoicons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Moon 2 icon in React?
Install @iconify/react and render <Icon icon="duo-icons:moon-2" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Moon 2 icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/duo-icons/moon-2.svg" alt="Moon 2 icon">, or paste the SVG code inline to style it with CSS.