ICONYZ
English
Sun icon from css.gg

Sun icon

gg:sun

The Sun icon (gg:sun) is a free SVG icon from the css.gg set by Astrit. It is drawn on a 24 × 24 grid. css.gg 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
css.gg
Author
Astrit
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M12 16a4 4 0 1 0 0-8a4 4 0 0 0 0 8m0 2a6 6 0 1 0 0-12a6 6 0 0 0 0 12M11 0h2v4.062a8 8 0 0 0-2 0zM7.094 5.68L4.222 2.808L2.808 4.222L5.68 7.094A8 8 0 0 1 7.094 5.68M4.062 11H0v2h4.062a8 8 0 0 1 0-2m1.618 5.906l-2.872 2.872l1.414 1.414l2.872-2.872a8 8 0 0 1-1.414-1.414M11 19.938V24h2v-4.062a8 8 0 0 1-2 0m5.906-1.618l2.872 2.872l1.414-1.414l-2.872-2.872a8 8 0 0 1-1.414 1.414M19.938 13H24v-2h-4.062a8 8 0 0 1 0 2M18.32 7.094l2.872-2.872l-1.414-1.414l-2.872 2.872c.528.41 1.003.886 1.414 1.414" clip-rule="evenodd"/></svg>

How to use the Sun icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Sun icon in other icon sets

Sun icon FAQ

Is the Sun icon free for commercial use?

Yes. css.gg 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="gg: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/gg/sun.svg" alt="Sun icon">, or paste the SVG code inline to style it with CSS.

Browse all css.gg icons →