icons/Lucide/sun-moonOpen in browser →

sun-moon · Lucide

Free SVG sun-moon icon from Lucide. Rendered at 24×24 in the stroke style and licensed under ISC. Copy directly as SVG, React (JSX), or Vue. Download as SVG or PNG. No login, no attribution required for ISC licensed icons.

sun-moon icon — LucideFree sun-moon SVG icon from Lucide, stroke style, ISC licensed.

Tags

  • sun
  • moon
  • accessibility
  • $extends:sun
  • dark
  • theme
  • auto theme
  • system theme
  • appearance

Code

HTML / SVG
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path d="M12 2v2" /> <path d="M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715" /> <path d="M16 12a4 4 0 0 0-4-4" /> <path d="m19 5-1.256 1.256" /> <path d="M20 12h2" /> </svg>
React
// Run: npx sant-icons get lucide-sun-moon --format react
export function LucideSunMoon(props) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
 {...props}> <path d="M12 2v2" /> <path d="M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715" /> <path d="M16 12a4 4 0 0 0-4-4" /> <path d="m19 5-1.256 1.256" /> <path d="M20 12h2" />
</svg>
  );
}
CLI
npx sant-icons get lucide-sun-moon

Properties

Name
sun-moon
Library
Lucide
Style
stroke
License
ISC
Version
1.73.0
Identifier
lucide-sun-moon

sun-moon in other libraries

Related from Lucide

The sun-moon icon ships with Lucide, an open-source icon set licensed under ISC. Search for it as "lucide sun-moon", "sun-moon svg", or any of its tagged terms (sun, moon, accessibility, $extends:sun, dark, theme). The SVG is normalised to a 24×24 viewBox so you can drop it into any UI framework alongside the other icons here without scaling concerns.

Need this icon in your codebase fast? Install the MCP server for Claude Code (or any MCP-aware AI tool) and ask the model to fetch lucide-sun-moon directly into your project. No browser context-switch.