John KuehJohn Kueh

sun icon

Tabler · sun · MIT

Download SVG

The Tabler sun icon depicts a stylized sun, commonly used to represent sunny weather, daylight, or a light mode setting in user interfaces.

Common uses

  • Displaying current weather conditions (sunny).
  • Toggling between light and dark UI themes.
  • Indicating daytime or brightness levels.

Use it in React

Install
npm i @tabler/icons-react
Import & render
import { IconSun } from '@tabler/icons-react';

<IconSun size={24} stroke={2} />

Styles

Tabler ships this icon in 2 styles — each its own import:

outline
<IconSun size={24} stroke={2} />
filled
<IconSunFilled size={24} stroke={2} />

Details

Library
Tabler (5,093 icons)
License
MIT
viewBox
0 0 24 24
Category
Weather
Keywords
weatherlightmodebrightnesssunclimateforecastmeteorologyatmosphericconditionslight modedaysunny

FAQ

What is the sun icon used for?
It's used for weather, light, or brightness indicators. It can also signify a light mode in UI themes.
How do I use the sun icon in React?
Import it using `import { IconSun } from '@tabler/icons-react'` and use it as a component: `<IconSun />`.
What is the license for the Tabler sun icon?
The Tabler icon library, including the sun icon, is distributed under the MIT license.

Related icons

The same idea in other libraries, and near matches in Tabler.

Looking for something else? Search Tabler 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 →