sun icon
sun from css.gg by Astrit · Outline · MIT Free for personal and commercial use.
- Name
- sun
- Set
- css.gg
- Style
- Outline
- Viewbox
- 24×24
- License
- MIT
The same icon in other sets
sunAkar Iconssun-filledAnt Design IconssunBootstrap IconssunBoxIcons v2sunBoxIcons v2 SolidsunCarbonsunEmoji One (Colored)sun-fillEva IconssunFont Awesome 6 RegularsunFont Awesome 6 SolidsunFont Awesome RegularsunFont Awesome SolidsunFeather Iconssun-outlineFlowbite IconssunFluent EmojisunFluent Emoji FlatsunFluent Emoji High ContrastsunHeroIconssunHumbleiconssunIconParksunIconPark OutlinesunIconPark SolidsunIconPark TwoTonesunJam Icons
Use the sun icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" 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>
React
import type { SVGProps } from "react";
export function GgSun(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" fillRule="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" clipRule="evenodd"/></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" 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> </template>
CSS
.icon-sun {
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12%2016a4%204%200%201%200%200-8a4%204%200%200%200%200%208m0%202a6%206%200%201%200%200-12a6%206%200%200%200%200%2012M11%200h2v4.062a8%208%200%200%200-2%200zM7.094%205.68L4.222%202.808L2.808%204.222L5.68%207.094A8%208%200%200%201%207.094%205.68M4.062%2011H0v2h4.062a8%208%200%200%201%200-2m1.618%205.906l-2.872%202.872l1.414%201.414l2.872-2.872a8%208%200%200%201-1.414-1.414M11%2019.938V24h2v-4.062a8%208%200%200%201-2%200m5.906-1.618l2.872%202.872l1.414-1.414l-2.872-2.872a8%208%200%200%201-1.414%201.414M19.938%2013H24v-2h-4.062a8%208%200%200%201%200%202M18.32%207.094l2.872-2.872l-1.414-1.414l-2.872%202.872c.528.41%201.003.886%201.414%201.414%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12%2016a4%204%200%201%200%200-8a4%204%200%200%200%200%208m0%202a6%206%200%201%200%200-12a6%206%200%200%200%200%2012M11%200h2v4.062a8%208%200%200%200-2%200zM7.094%205.68L4.222%202.808L2.808%204.222L5.68%207.094A8%208%200%200%201%207.094%205.68M4.062%2011H0v2h4.062a8%208%200%200%201%200-2m1.618%205.906l-2.872%202.872l1.414%201.414l2.872-2.872a8%208%200%200%201-1.414-1.414M11%2019.938V24h2v-4.062a8%208%200%200%201-2%200m5.906-1.618l2.872%202.872l1.414-1.414l-2.872-2.872a8%208%200%200%201-1.414%201.414M19.938%2013H24v-2h-4.062a8%208%200%200%201%200%202M18.32%207.094l2.872-2.872l-1.414-1.414l-2.872%202.872c.528.41%201.003.886%201.414%201.414%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/gg/sun.svg?color=%231a73e8&size=48