The Heroicons sun icon depicts a stylized sun, commonly used to represent weather, daylight, or a general positive/bright theme in user interfaces.
Common uses
- Weather widgets
- Day/night mode toggle
- Brightness settings
Use it in React
Install
npm i @heroicons/reactImport & render
import { SunIcon } from '@heroicons/react/24/outline';
<SunIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<SunIcon className="size-6" />24/solid
<SunIcon className="size-6" />20/solid
<SunIcon className="size-6" />16/solid
<SunIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- sunsun iconday iconweather iconbrightness icon
FAQ
- What does the sun icon represent?
- It represents a sun, often used for weather, daylight, or positive themes.
- How do I use the sun icon in React?
- Import it using `import { SunIcon } from '@heroicons/react/24/outline'` and use it as a component.
- What is the license for this icon?
- The Heroicons sun icon is available under the MIT license.
Related icons
The same idea in other libraries, and near matches in Heroicons.
Looking for something else? Search Heroicons and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →