sun-moon · Tabler
Free SVG sun-moon icon from Tabler. Rendered at 24×24 in the stroke style and licensed under MIT. Copy directly as SVG, React (JSX), or Vue. Download as SVG or PNG. No login, no attribution required for MIT licensed icons.
Tags
- sun
- moon
- weather
- theme
- dark-mode
- light-mode
- toggle
- day
- night
- appearance
- outline
Code
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M9.173 14.83a4 4 0 1 1 5.657 -5.657" /> <path d="M11.294 12.707l.174 .247a7.5 7.5 0 0 0 8.845 2.492a9 9 0 0 1 -14.671 2.914" /> <path d="M3 12h1" /> <path d="M12 3v1" /> <path d="M5.6 5.6l.7 .7" /> <path d="M3 21l18 -18" /></svg>
// Run: npx sant-icons get tabler-sun-moon --format react
export function TablerSunMoon(props) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" {...props}><path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M9.173 14.83a4 4 0 1 1 5.657 -5.657" /> <path d="M11.294 12.707l.174 .247a7.5 7.5 0 0 0 8.845 2.492a9 9 0 0 1 -14.671 2.914" /> <path d="M3 12h1" /> <path d="M12 3v1" /> <path d="M5.6 5.6l.7 .7" /> <path d="M3 21l18 -18" /></svg>
);
}npx sant-icons get tabler-sun-moon
Properties
sun-moon in other libraries
Related from Tabler
The sun-moon icon ships with Tabler, an open-source icon set licensed under MIT. Search for it as "tabler sun-moon", "sun-moon svg", or any of its tagged terms (sun, moon, weather, theme, dark-mode, light-mode). 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 tabler-sun-moon directly into your project. No browser context-switch.