gentleface

Gentleface › Weather › moon

moon icon

Moon: dark mode, night, dark theme, night mode. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M5.929 1.744C6 1.862 6.019 1.988 5.985 2.122C5.726 3.149 5.718 4.178 5.962 5.209C6.098 5.784 6.309 6.331 6.594 6.849C6.89 7.387 7.256 7.874 7.691 8.309C8.126 8.744 8.613 9.11 9.151 9.406C9.669 9.691 10.216 9.902 10.791 10.038C11.822 10.282 12.851 10.274 13.878 10.015C13.985 9.988 14.09 9.996 14.192 10.038C14.322 10.093 14.413 10.183 14.465 10.308C14.517 10.434 14.516 10.562 14.462 10.692C14.042 11.699 13.422 12.56 12.6 13.277C12.146 13.672 11.65 14.003 11.112 14.27C10.554 14.547 9.969 14.746 9.358 14.867C8.747 14.988 8.131 15.026 7.51 14.983C6.91 14.941 6.325 14.823 5.756 14.63C4.723 14.281 3.821 13.721 3.05 12.95C2.279 12.179 1.719 11.277 1.37 10.244C1.177 9.675 1.059 9.09 1.017 8.49C0.974 7.869 1.012 7.253 1.133 6.642C1.254 6.031 1.453 5.446 1.73 4.888C1.997 4.35 2.328 3.854 2.723 3.4C3.44 2.578 4.301 1.958 5.308 1.538C5.41 1.496 5.515 1.488 5.622 1.515C5.756 1.549 5.859 1.625 5.929 1.744ZM2.114 6.836C1.907 7.883 1.974 8.912 2.317 9.924C2.616 10.809 3.097 11.582 3.757 12.243C4.418 12.903 5.191 13.384 6.076 13.683C7.088 14.026 8.117 14.093 9.164 13.886C10.212 13.679 11.138 13.224 11.943 12.523C12.4 12.125 12.784 11.674 13.096 11.171C12.252 11.265 11.407 11.211 10.561 11.011C9.897 10.854 9.266 10.611 8.669 10.282C8.047 9.94 7.486 9.518 6.984 9.016C6.482 8.514 6.06 7.953 5.718 7.331C5.389 6.734 5.146 6.103 4.989 5.439C4.789 4.593 4.735 3.748 4.829 2.904C4.326 3.216 3.875 3.6 3.477 4.057C2.776 4.862 2.321 5.788 2.114 6.836Z"/></svg>
React
// Gentleface "moon" (line-round), MIT. https://gentleface.com/icons/moon
import type { SVGProps } from 'react';

export function MoonIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M5.929 1.744C6 1.862 6.019 1.988 5.985 2.122C5.726 3.149 5.718 4.178 5.962 5.209C6.098 5.784 6.309 6.331 6.594 6.849C6.89 7.387 7.256 7.874 7.691 8.309C8.126 8.744 8.613 9.11 9.151 9.406C9.669 9.691 10.216 9.902 10.791 10.038C11.822 10.282 12.851 10.274 13.878 10.015C13.985 9.988 14.09 9.996 14.192 10.038C14.322 10.093 14.413 10.183 14.465 10.308C14.517 10.434 14.516 10.562 14.462 10.692C14.042 11.699 13.422 12.56 12.6 13.277C12.146 13.672 11.65 14.003 11.112 14.27C10.554 14.547 9.969 14.746 9.358 14.867C8.747 14.988 8.131 15.026 7.51 14.983C6.91 14.941 6.325 14.823 5.756 14.63C4.723 14.281 3.821 13.721 3.05 12.95C2.279 12.179 1.719 11.277 1.37 10.244C1.177 9.675 1.059 9.09 1.017 8.49C0.974 7.869 1.012 7.253 1.133 6.642C1.254 6.031 1.453 5.446 1.73 4.888C1.997 4.35 2.328 3.854 2.723 3.4C3.44 2.578 4.301 1.958 5.308 1.538C5.41 1.496 5.515 1.488 5.622 1.515C5.756 1.549 5.859 1.625 5.929 1.744ZM2.114 6.836C1.907 7.883 1.974 8.912 2.317 9.924C2.616 10.809 3.097 11.582 3.757 12.243C4.418 12.903 5.191 13.384 6.076 13.683C7.088 14.026 8.117 14.093 9.164 13.886C10.212 13.679 11.138 13.224 11.943 12.523C12.4 12.125 12.784 11.674 13.096 11.171C12.252 11.265 11.407 11.211 10.561 11.011C9.897 10.854 9.266 10.611 8.669 10.282C8.047 9.94 7.486 9.518 6.984 9.016C6.482 8.514 6.06 7.953 5.718 7.331C5.389 6.734 5.146 6.103 4.989 5.439C4.789 4.593 4.735 3.748 4.829 2.904C4.326 3.216 3.875 3.6 3.477 4.057C2.776 4.862 2.321 5.788 2.114 6.836Z" />
    </svg>
  );
}
Vue
Vue: see /icons/moon.md
Svelte
Svelte: see /icons/moon.md
HTML img
HTML img: see /icons/moon.md
CSS
CSS: see /icons/moon.md
Data URL
Data URL: see /icons/moon.md
Sprite
Sprite: see /icons/moon.md
SwiftUI
SwiftUI: see /icons/moon.md
Compose
Compose: see /icons/moon.md
Android XML
Android XML: see /icons/moon.md
Flutter
Flutter: see /icons/moon.md

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

Meaning

Use it for
dark mode, night, dark theme, night mode, nighttime, night time
Alternatives
Also fits
  • theme: dark mode alone
  • clear night: night in general (the weather set default)
  • sunset: night
Tags
moon, crescent, night, dark, sleep
Category
Weather
Component name
MoonIcon
History
  • added

Family 16

More weather icons

For agents

Metadata: /icons/moon.json · Markdown: /icons/moon.md · SVG: https://gentleface.com/svg/{style}/16/moon.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/moon.png

Feedback