Skip to content
tablericons

general

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
Color
Download SVG

Press C to copy SVG, J for JSX, D to download.

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 guide
Vue example
import { IconSun } from '@tabler/icons-vue';

<IconSun :size="24" :stroke="2" />
Read the Vue guide
Svelte 5 example
import { IconSun } from '@tabler/icons-svelte-runes';

<IconSun size={24} stroke={2} />
Read the Svelte guide

Compare variants and alternatives

Related

Related icons

See all 788 general icons