ICONYZ
English
Sun icon from Pepicons

Sun icon

pepicons:sun

The Sun icon (pepicons:sun) is a free SVG icon from the Pepicons set by CyCraft. It is drawn on a 20 × 20 grid. Pepicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Pepicons
Author
CyCraft
License
CC-BY-4.0
Size
20 × 20
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill="currentColor"><path fill-rule="evenodd" d="M10 14a4 4 0 1 0 0-8a4 4 0 0 0 0 8Zm0-6a2 2 0 1 1 0 4a2 2 0 0 1 0-4Z" clip-rule="evenodd"/><path d="M.5 10a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1Zm15 0a1 1 0 0 1 1-1h2a1 1 0 1 1 0 2h-2a1 1 0 0 1-1-1ZM14 14a1 1 0 0 1 1.414 0l1.414 1.414a1 1 0 1 1-1.414 1.414L14 15.414A1 1 0 0 1 14 14ZM3 3a1 1 0 0 1 1.414 0l1.414 1.414a1 1 0 1 1-1.414 1.414L3 4.414A1 1 0 0 1 3 3Zm7 12.5a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1Zm0-15a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1ZM16.828 3a1 1 0 0 1 0 1.414l-1.414 1.414A1 1 0 1 1 14 4.414L15.414 3a1 1 0 0 1 1.414 0Zm-11 12.414l-1.414 1.414A1 1 0 1 1 3 15.414L4.414 14a1 1 0 0 1 1.414 1.414Z"/></g></svg>

How to use the Sun icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Pepicons

Sun icon in other icon sets

Sun icon FAQ

Is the Sun icon free for commercial use?

Yes. Pepicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Sun icon in React?

Install @iconify/react and render <Icon icon="pepicons: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/pepicons/sun.svg" alt="Sun icon">, or paste the SVG code inline to style it with CSS.

Browse all Pepicons →