Moon Icon
Crescent moon opening to the upper right, for dark mode toggles, night forecasts and sleep settings. Available in 4 styles (outline, solid, duotone and filled) as a React component you install with the shadcn CLI.
Preview
Install and code
Moon icon in shadcn/ui components
Button
Icon button
Button group
Badge
Dropdown menu
Input group
Moon icon FAQ
What does this icon show?
Crescent moon opening to the upper right, for dark mode toggles, night forecasts and sleep settings. Typical uses: dark mode toggle, nighttime forecast indicator and sleep or do not disturb setting.
When should I use it instead of a similar icon?
Use it for:
- The dark choice in a theme menu, or the glyph a header toggle shows while light mode is on
- Quiet hours and do not disturb switches in notification settings that mute alerts overnight
- Clear night hours in an hourly forecast strip, after sunset and before sunrise
For night sky events on a stargazing calendar, with viewing times for each, use the Circles Eclipse icon. For a header theme button that keeps the same glyph in light and dark mode, use the Night Day icon. For sleep logs with hours slept per night in a health or fitness app, use the Bed icon.
Which styles does it come in?
4 styles: Outline, Solid, Duotone and Filled. Every style is drawn on the same 24 by 24 grid and installs as its own file, so you can switch styles without touching the layout.
How do I install it with the shadcn CLI?
Copy the install command from the panel above, in the style you want, and run it in your project. The shadcn CLI adds the icon as a React component that you import and render like any other. It draws in the current text color, so your text color and size classes style it. Icon installs need a ReUI Ultimate license.
What icons go well with it?
Icons from the same family and the Weather set: Bolt, Drop, Drop Half Full, Drops, Flash Circle and Night Day.
When was it added?
It joined the ReUI icon library on June 30, 2026.
Icons related to Moon
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Ultimate license.
When to use
- The dark choice in a theme menu, or the glyph a header toggle shows while light mode is on
- Quiet hours and do not disturb switches in notification settings that mute alerts overnight
- Clear night hours in an hourly forecast strip, after sunset and before sunrise
When not to use
- Night sky events on a stargazing calendar, with viewing times for each: use the Circles Eclipse icon
- A header theme button that keeps the same glyph in light and dark mode: use the Night Day icon
- Sleep logs with hours slept per night in a health or fitness app: use the Bed icon
Agent notes
- Name an icon-only button with its label, "Switch to dark mode", as the aria-label
Markdown
https://reui.io/icons/preview/moon.mdMCP
get_icon("moon")Install
npx shadcn@latest add @reui/icons/default/duotone/moonStart building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
Get All-Access
From $249, once. Lifetime updates.