Sun icon
radix-icons:sun
The Sun icon (radix-icons:sun) is a free SVG icon from the Radix Icons set by WorkOS. It is drawn on a 15 × 15 grid. Radix 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
- Radix Icons
- Author
- WorkOS
- License
- MIT
- Size
- 15 × 15
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><path fill="currentColor" d="M7.5 12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2a.5.5 0 0 1 .5-.5m-3.889-1.318a.5.5 0 0 1 .707.707l-1.415 1.415a.5.5 0 0 1-.707-.707zm7.07 0a.5.5 0 0 1 .708 0l1.415 1.415a.5.5 0 0 1-.707.707l-1.415-1.415a.5.5 0 0 1 0-.707M7.5 4.5a3 3 0 1 1 0 6a3 3 0 0 1 0-6m0 1a2 2 0 1 0 0 4a2 2 0 0 0 0-4M2.5 7a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1zm12 0a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1zM2.196 2.196a.5.5 0 0 1 .707 0l1.415 1.415a.5.5 0 0 1-.707.707L2.196 2.903a.5.5 0 0 1 0-.707m9.9 0a.5.5 0 0 1 .708.707l-1.415 1.415a.5.5 0 0 1-.707-.707zM7.5 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2a.5.5 0 0 1 .5-.5"/></svg>How to use the Sun icon
React
import { Icon } from "@iconify/react";
<Icon icon="radix-icons:sun" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="radix-icons:sun" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="radix-icons:sun" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[radix-icons--sun]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/radix-icons -->
<div class="i-radix-icons:sun"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="radix-icons:sun"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/radix-icons/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. Radix 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="radix-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/radix-icons/sun.svg" alt="Sun icon">, or paste the SVG code inline to style it with CSS.