Sun icon
boxicons:sun
The Sun icon (boxicons:sun) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 17.01c2.76 0 5.01-2.25 5.01-5.01S14.76 6.99 12 6.99S6.99 9.24 6.99 12s2.25 5.01 5.01 5.01M12 9c1.66 0 3.01 1.35 3.01 3.01s-1.35 3.01-3.01 3.01s-3.01-1.35-3.01-3.01S10.34 9 12 9m1 10h-2v3h2zm0-17h-2v3h2zM2 11h3v2H2zm17 0h3v2h-3zM4.22 18.36l.71.71l.71.71l1.06-1.06l1.06-1.06l-.71-.71l-.71-.71l-1.06 1.06zM19.78 5.64l-.71-.71l-.71-.71l-1.06 1.06l-1.06 1.06l.71.71l.71.71l1.06-1.06zm-12.02.7L6.7 5.28L5.64 4.22l-.71.71l-.71.71L5.28 6.7l1.06 1.06l.71-.71zm8.48 11.32l1.06 1.06l1.06 1.06l.71-.71l.71-.71l-1.06-1.06l-1.06-1.06l-.71.71z"/></svg>How to use the Sun icon
React
import { Icon } from "@iconify/react";
<Icon icon="boxicons:sun" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="boxicons:sun" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="boxicons:sun" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--sun]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:sun"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="boxicons:sun"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/boxicons/sun.svg" alt="Sun icon" width="24" height="24">Related icons in Boxicons
Sun icon in other icon sets
Sun icon FAQ
Is the Sun icon free for commercial use?
Yes. Boxicons 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="boxicons: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/boxicons/sun.svg" alt="Sun icon">, or paste the SVG code inline to style it with CSS.