Sun icon
Download the Sun icon as free SVG or PNG. Compare outline and filled styles. Copy React, Vue or Svelte code.
- light-mode
- light
- theme
- day
- brightness
- weather
- sunny
- bright
- nature
Style
Size
Stroke
Filled icons have no stroke
Color
- Category
- general
- Styles
- Outline, filled
- Component
- IconSun
- License
- MIT · Paweł Kuna
Code
Copy it the way you use it
sun.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="M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" />
<path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7" />
</svg> Use the Sun icon
For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.
React example
import { IconSun } from '@tabler/icons-react';
<IconSun size={24} stroke={2} />Read the React guideVue example
import { IconSun } from '@tabler/icons-vue';
<IconSun :size="24" :stroke="2" />Read the Vue guideSvelte 5 example
import { IconSun } from '@tabler/icons-svelte-runes';
<IconSun size={24} stroke={2} />Read the Svelte guideCompare variants and alternatives
Related