Sun icon
griddy-icons:sun
The Sun icon (griddy-icons:sun) is a free SVG icon from the Griddy Icons set by Zuzana Benova. It is drawn on a 24 × 24 grid. Griddy 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
- Griddy Icons
- Author
- Zuzana Benova
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.75 1h-1.5v3h1.5zM23 11.25h-3v1.5h3zm-19 0H1v1.5h3zm15.246-7.557l-2.121 2.12l1.06 1.062l2.122-2.122zM4.75 3.685L3.69 4.746l2.12 2.121l1.062-1.06zm1.06 13.448l-2.12 2.12l1.06 1.061l2.122-2.12l-1.061-1.061ZM12 18.5A6.506 6.506 0 0 1 5.5 12c0-3.585 2.915-6.5 6.5-6.5s6.5 2.915 6.5 6.5s-2.915 6.5-6.5 6.5M12 7c-2.755 0-5 2.245-5 5s2.245 5 5 5s5-2.245 5-5s-2.245-5-5-5m.75 13h-1.5v3h1.5zm5.435-2.875l-1.06 1.061l2.12 2.122l1.061-1.061l-2.12-2.122Z"/></svg>How to use the Sun icon
React
import { Icon } from "@iconify/react";
<Icon icon="griddy-icons:sun" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="griddy-icons:sun" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="griddy-icons:sun" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[griddy-icons--sun]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/griddy-icons -->
<div class="i-griddy-icons:sun"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="griddy-icons:sun"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/griddy-icons/sun.svg" alt="Sun icon" width="24" height="24">Related icons in Griddy Icons
Sun icon in other icon sets
Sun icon FAQ
Is the Sun icon free for commercial use?
Yes. Griddy 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="griddy-icons: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/griddy-icons/sun.svg" alt="Sun icon">, or paste the SVG code inline to style it with CSS.