softicons.dev

sun icon

Free sun SVG icon, MIT licensed. Copy the SVG, install for React/Vue/Angular, or download. Part of the Softicons weather set.

Setup guide
<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">
  <circle cx="12" cy="12" r="4.2"/>
  <line x1="12" y1="2" x2="12" y2="4"/>
  <line x1="12" y1="20" x2="12" y2="22"/>
  <line x1="2" y1="12" x2="4" y2="12"/>
  <line x1="20" y1="12" x2="22" y2="12"/>
  <line x1="4.9" y1="4.9" x2="6.3" y2="6.3"/>
  <line x1="17.7" y1="17.7" x2="19.1" y2="19.1"/>
  <line x1="4.9" y1="19.1" x2="6.3" y2="17.7"/>
  <line x1="17.7" y1="6.3" x2="19.1" y2="4.9"/>
</svg>
<!-- via the CDN — no build step -->
<img src="https://cdn.softicons.dev/v1/icons/weather/sun.svg"
     width="24" height="24" alt="sun icon">

<!-- …or paste the raw SVG from the SVG tab -->
import { SunIcon } from "@softicons/react";

export default function Example() {
  return <SunIcon size={24} strokeWidth={2} />;
}
<script setup>
import { SunIcon } from "@softicons/vue";
</script>

<template>
  <SunIcon :size="24" :stroke-width="2" />
</template>
import { SunIconComponent } from "@softicons/angular";

@Component({
  standalone: true,
  imports: [SunIconComponent],
  template: `<sun-icon [size]="24" [strokeWidth]="2" />`,
})
export class DemoComponent {}