ICONYZ
English
Sun icon from andrsrxn/icons

Sun icon

andrsrxn:sun

The Sun icon (andrsrxn:sun) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
andrsrxn/icons
Author
Andrés Raxón
License
MIT
Size
24 × 24
Category
Nature, Energy, Weather
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><circle cx="11.97" cy="11.99" r="4.73" fill="currentColor" opacity=".2" transform="rotate(90 11.97 11.99)"/><circle cx="11.97" cy="11.99" r="4.73" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" transform="rotate(90 11.97 11.99)"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M1.56 11.99H4.3m15.45.01h2.7m-10.5 10.34v-2.62m0-15.38V1.66M18 5.87l2.02-2.02M4 19.87l1.75-1.75m.07-12.34L3.9 3.85m16.11 16.12l-1.86-1.86"/></g></svg>

How to use the Sun icon

React

import { Icon } from "@iconify/react";

<Icon icon="andrsrxn:sun" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="andrsrxn:sun" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="andrsrxn:sun" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--sun]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:sun"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="andrsrxn:sun"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/andrsrxn/sun.svg" alt="Sun icon" width="24" height="24">

Related icons in andrsrxn/icons

Sun icon in other icon sets

Sun icon FAQ

Is the Sun icon free for commercial use?

Yes. andrsrxn/icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Sun icon in React?

Install @iconify/react and render <Icon icon="andrsrxn:sun" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Sun icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/andrsrxn/sun.svg" alt="Sun icon">, or paste the SVG code inline to style it with CSS.

Browse all andrsrxn/icons →