ICONYZ
English
Sun icon from Mage Icons

Sun icon

mage:sun

The Sun icon (mage:sun) is a free SVG icon from the Mage Icons set by MageIcons. It is drawn on a 24 × 24 grid. Mage Icons are released under the Apache 2.0 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
Mage Icons
Author
MageIcons
License
Apache-2.0
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" clip-path="url(#SVGXv8lpc2Y)"><path d="M12 17.885a5.885 5.885 0 1 0 0-11.77a5.885 5.885 0 0 0 0 11.77m-9.281-5.879H1.5m21 0h-1.207m-9.287-9.287V1.5m0 21v-1.207M5.435 5.435l-.859-.859m14.848 14.848l-.86-.86m.001-13.129l.858-.859M4.576 19.424l.86-.86"/></g><defs><clipPath id="SVGXv8lpc2Y"><path fill="#fff" d="M0 0h24v24H0z"/></clipPath></defs></g></svg>

How to use the Sun icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Mage Icons

Sun icon in other icon sets

Sun icon FAQ

Is the Sun icon free for commercial use?

Yes. Mage Icons are released under the Apache 2.0 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="mage: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/mage/sun.svg" alt="Sun icon">, or paste the SVG code inline to style it with CSS.

Browse all Mage Icons →