1. Icon Monks
  2. Weather icons
  3. Sun Moon

Sun Moon icon

The sun moon icon is a free weather icon from Icon Monks, drawn as one clean path on a 256-unit grid in six weights. It is free for personal and commercial use under the MIT license.

Sun Moon icon, thin weight
Thin
SVG
Sun Moon icon, light weight
Light
SVG
Sun Moon icon, regular weight
Regular
SVG
Sun Moon icon, bold weight
Bold
SVG
Sun Moon icon, fill weight
Fill
SVG
Sun Moon icon, duotone weight
Duotone
SVG

Open in the icon browserCustomize size and color, then download PNG, WebP or PDF.

About the sun moon icon

It is a moon variant of the sun icon, so it keeps the exact outline of the sun icon. Use it to stand for day night, light dark and theme. The regular weight is a single path made of 12 shapes, and the duotone weight adds a 20% tint behind the outline.

Pairs well with the lamp slash, brightness auto and palette icons, which share the “theme” theme. Use the same weight for all of them so they read as one set.

When to use the sun moon icon

It belongs to the weather set, made for forecasts, conditions and climate apps. Pair it with the related icons below so a screen stays in one visual style.

Use the sun moon icon in your code

React

import { SunMoon } from '@icon-monks/react';

<SunMoon size={24} />

Vue

<script setup>
import { SunMoon } from '@icon-monks/vue';
</script>

<SunMoon :size="24" />

Web component

<icon-monks name="sun-moon" size="24"></icon-monks>

Icon font

<i class="im im-sun-moon"></i>

Flutter

Icon(IconMonks.sunMoon)

SwiftUI

Image(iconMonks: .sunMoon)

Compose

import com.designmonks.icons.IconMonks
import com.designmonks.icons.regular.SunMoon

Icon(IconMonks.Regular.SunMoon, contentDescription = null)

Need setup steps? See the getting started guide or the page for React, Flutter, SwiftUI or Jetpack Compose.

Tags

Related weather icons

See all 79 weather icons

Similar icons in other categories

Questions about the sun moon icon

Is the sun moon icon free for commercial use?

Yes. The sun moon icon is released under the MIT license, so you can use it in personal, client and commercial projects without paying or adding credit in your interface.

How do I change the color and size of the sun moon icon?

The icon draws in currentColor, so it takes the text color around it. In React, Vue and the web component, set the size and color props; in the icon browser, pick a color and size before you download a PNG, WebP, SVG or PDF.

What is the difference between the sun moon and sun icons?

The sun moon icon is a moon variant of the sun icon. Both share the same outline and come in all six weights, so you can swap one for the other to show a change of state.

Last updated with version 0.4.3. Release notes