gentleface

Gentleface › Weather › sun

sun icon

Sun: light mode, day, sunny, light theme. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed. Part of the free toolbar icon set.

Animated, switches to moon sun-moon · line-round

The rays retract into the ring one by one. The ring keeps a single contour and grows while its top-right span flattens and bites inward. Going back, the rays regrow in reverse order.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To switch on click, run 0.7 s to 2.15 s and hold, then 2.3 s to 3.1 s to come back. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 2.5C8 2.641 7.952 2.759 7.856 2.856C7.759 2.952 7.641 3 7.5 3C7.359 3 7.241 2.952 7.144 2.856C7.048 2.759 7 2.641 7 2.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1ZM12.5 1.997C12.636 1.997 12.754 2.047 12.854 2.146C12.951 2.244 13 2.362 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11.854 3.854C11.754 3.953 11.636 4.003 11.5 4.003C11.364 4.003 11.246 3.953 11.146 3.854C11.049 3.756 11 3.638 11 3.5C11 3.362 11.049 3.244 11.146 3.146L12.146 2.146C12.246 2.047 12.364 1.997 12.5 1.997ZM2 2.5C2 2.362 2.049 2.244 2.146 2.146C2.244 2.049 2.362 2 2.5 2C2.638 2 2.756 2.049 2.854 2.146L3.854 3.146C3.953 3.246 4.003 3.364 4.003 3.5C4.003 3.636 3.953 3.754 3.854 3.854C3.754 3.953 3.636 4.003 3.5 4.003C3.364 4.003 3.246 3.953 3.146 3.854L2.146 2.854C2.049 2.756 2 2.638 2 2.5ZM5.025 5.025C5.367 4.683 5.762 4.424 6.212 4.246C6.625 4.082 7.055 4 7.5 4C7.945 4 8.375 4.082 8.788 4.246C9.238 4.424 9.633 4.683 9.975 5.025C10.317 5.367 10.576 5.762 10.754 6.212C10.918 6.625 11 7.055 11 7.5C11 7.945 10.918 8.375 10.754 8.788C10.576 9.238 10.317 9.633 9.975 9.975C9.633 10.317 9.238 10.576 8.788 10.754C8.375 10.918 7.945 11 7.5 11C7.055 11 6.625 10.918 6.212 10.754C5.762 10.576 5.367 10.317 5.025 9.975C4.683 9.633 4.424 9.238 4.246 8.788C4.082 8.375 4 7.945 4 7.5C4 7.055 4.082 6.625 4.246 6.212C4.424 5.762 4.683 5.367 5.025 5.025ZM5.732 9.268C5.976 9.512 6.259 9.697 6.58 9.824C6.875 9.941 7.182 10 7.5 10C7.818 10 8.125 9.941 8.42 9.824C8.741 9.697 9.024 9.512 9.268 9.268C9.512 9.024 9.697 8.741 9.824 8.42C9.941 8.125 10 7.818 10 7.5C10 7.182 9.941 6.875 9.824 6.58C9.697 6.259 9.512 5.976 9.268 5.732C9.024 5.488 8.741 5.303 8.42 5.176C8.125 5.059 7.818 5 7.5 5C7.182 5 6.875 5.059 6.58 5.176C6.259 5.303 5.976 5.488 5.732 5.732C5.488 5.976 5.303 6.259 5.176 6.58C5.059 6.875 5 7.182 5 7.5C5 7.818 5.059 8.125 5.176 8.42C5.303 8.741 5.488 9.024 5.732 9.268ZM2.856 7.144C2.952 7.241 3 7.359 3 7.5C3 7.641 2.952 7.759 2.856 7.856C2.759 7.952 2.641 8 2.5 8L1.5 8C1.359 8 1.241 7.952 1.144 7.856C1.048 7.759 1 7.641 1 7.5C1 7.359 1.048 7.241 1.144 7.144C1.241 7.048 1.359 7 1.5 7L2.5 7C2.641 7 2.759 7.048 2.856 7.144ZM12 7.5C12 7.359 12.048 7.241 12.144 7.144C12.241 7.048 12.359 7 12.5 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5C14 7.641 13.952 7.759 13.856 7.856C13.759 7.952 13.641 8 13.5 8L12.5 8C12.359 8 12.241 7.952 12.144 7.856C12.048 7.759 12 7.641 12 7.5ZM11.146 11.146C11.246 11.047 11.364 10.997 11.5 10.997C11.636 10.997 11.754 11.047 11.854 11.146L12.854 12.146C12.953 12.246 13.003 12.364 13.003 12.5C13.003 12.636 12.953 12.754 12.854 12.854C12.754 12.953 12.636 13.003 12.5 13.003C12.364 13.003 12.246 12.953 12.146 12.854L11.146 11.854C11.047 11.754 10.997 11.636 10.997 11.5C10.997 11.364 11.047 11.246 11.146 11.146ZM2.854 12.854C2.756 12.951 2.638 13 2.5 13C2.362 13 2.244 12.951 2.146 12.854C2.047 12.754 1.997 12.636 1.997 12.5C1.997 12.364 2.047 12.246 2.146 12.146L3.146 11.146C3.244 11.049 3.362 11 3.5 11C3.638 11 3.756 11.049 3.854 11.146C3.953 11.246 4.003 11.364 4.003 11.5C4.003 11.636 3.953 11.754 3.854 11.854L2.854 12.854ZM7.5 12C7.641 12 7.759 12.048 7.856 12.144C7.952 12.241 8 12.359 8 12.5L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 12.5C7 12.359 7.048 12.241 7.144 12.144C7.241 12.048 7.359 12 7.5 12Z"/></svg>
React
// Gentleface "sun" (line-round), MIT. https://gentleface.com/icons/sun
import type { SVGProps } from 'react';

export function SunIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 2.5C8 2.641 7.952 2.759 7.856 2.856C7.759 2.952 7.641 3 7.5 3C7.359 3 7.241 2.952 7.144 2.856C7.048 2.759 7 2.641 7 2.5L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1ZM12.5 1.997C12.636 1.997 12.754 2.047 12.854 2.146C12.951 2.244 13 2.362 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11.854 3.854C11.754 3.953 11.636 4.003 11.5 4.003C11.364 4.003 11.246 3.953 11.146 3.854C11.049 3.756 11 3.638 11 3.5C11 3.362 11.049 3.244 11.146 3.146L12.146 2.146C12.246 2.047 12.364 1.997 12.5 1.997ZM2 2.5C2 2.362 2.049 2.244 2.146 2.146C2.244 2.049 2.362 2 2.5 2C2.638 2 2.756 2.049 2.854 2.146L3.854 3.146C3.953 3.246 4.003 3.364 4.003 3.5C4.003 3.636 3.953 3.754 3.854 3.854C3.754 3.953 3.636 4.003 3.5 4.003C3.364 4.003 3.246 3.953 3.146 3.854L2.146 2.854C2.049 2.756 2 2.638 2 2.5ZM5.025 5.025C5.367 4.683 5.762 4.424 6.212 4.246C6.625 4.082 7.055 4 7.5 4C7.945 4 8.375 4.082 8.788 4.246C9.238 4.424 9.633 4.683 9.975 5.025C10.317 5.367 10.576 5.762 10.754 6.212C10.918 6.625 11 7.055 11 7.5C11 7.945 10.918 8.375 10.754 8.788C10.576 9.238 10.317 9.633 9.975 9.975C9.633 10.317 9.238 10.576 8.788 10.754C8.375 10.918 7.945 11 7.5 11C7.055 11 6.625 10.918 6.212 10.754C5.762 10.576 5.367 10.317 5.025 9.975C4.683 9.633 4.424 9.238 4.246 8.788C4.082 8.375 4 7.945 4 7.5C4 7.055 4.082 6.625 4.246 6.212C4.424 5.762 4.683 5.367 5.025 5.025ZM5.732 9.268C5.976 9.512 6.259 9.697 6.58 9.824C6.875 9.941 7.182 10 7.5 10C7.818 10 8.125 9.941 8.42 9.824C8.741 9.697 9.024 9.512 9.268 9.268C9.512 9.024 9.697 8.741 9.824 8.42C9.941 8.125 10 7.818 10 7.5C10 7.182 9.941 6.875 9.824 6.58C9.697 6.259 9.512 5.976 9.268 5.732C9.024 5.488 8.741 5.303 8.42 5.176C8.125 5.059 7.818 5 7.5 5C7.182 5 6.875 5.059 6.58 5.176C6.259 5.303 5.976 5.488 5.732 5.732C5.488 5.976 5.303 6.259 5.176 6.58C5.059 6.875 5 7.182 5 7.5C5 7.818 5.059 8.125 5.176 8.42C5.303 8.741 5.488 9.024 5.732 9.268ZM2.856 7.144C2.952 7.241 3 7.359 3 7.5C3 7.641 2.952 7.759 2.856 7.856C2.759 7.952 2.641 8 2.5 8L1.5 8C1.359 8 1.241 7.952 1.144 7.856C1.048 7.759 1 7.641 1 7.5C1 7.359 1.048 7.241 1.144 7.144C1.241 7.048 1.359 7 1.5 7L2.5 7C2.641 7 2.759 7.048 2.856 7.144ZM12 7.5C12 7.359 12.048 7.241 12.144 7.144C12.241 7.048 12.359 7 12.5 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5C14 7.641 13.952 7.759 13.856 7.856C13.759 7.952 13.641 8 13.5 8L12.5 8C12.359 8 12.241 7.952 12.144 7.856C12.048 7.759 12 7.641 12 7.5ZM11.146 11.146C11.246 11.047 11.364 10.997 11.5 10.997C11.636 10.997 11.754 11.047 11.854 11.146L12.854 12.146C12.953 12.246 13.003 12.364 13.003 12.5C13.003 12.636 12.953 12.754 12.854 12.854C12.754 12.953 12.636 13.003 12.5 13.003C12.364 13.003 12.246 12.953 12.146 12.854L11.146 11.854C11.047 11.754 10.997 11.636 10.997 11.5C10.997 11.364 11.047 11.246 11.146 11.146ZM2.854 12.854C2.756 12.951 2.638 13 2.5 13C2.362 13 2.244 12.951 2.146 12.854C2.047 12.754 1.997 12.636 1.997 12.5C1.997 12.364 2.047 12.246 2.146 12.146L3.146 11.146C3.244 11.049 3.362 11 3.5 11C3.638 11 3.756 11.049 3.854 11.146C3.953 11.246 4.003 11.364 4.003 11.5C4.003 11.636 3.953 11.754 3.854 11.854L2.854 12.854ZM7.5 12C7.641 12 7.759 12.048 7.856 12.144C7.952 12.241 8 12.359 8 12.5L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 12.5C7 12.359 7.048 12.241 7.144 12.144C7.241 12.048 7.359 12 7.5 12Z" />
    </svg>
  );
}
Vue
Vue: see /icons/sun.md
Svelte
Svelte: see /icons/sun.md
HTML img
HTML img: see /icons/sun.md
CSS
CSS: see /icons/sun.md
Data URL
Data URL: see /icons/sun.md
Sprite
Sprite: see /icons/sun.md
SwiftUI
SwiftUI: see /icons/sun.md
Compose
Compose: see /icons/sun.md
Android XML
Android XML: see /icons/sun.md
Flutter
Flutter: see /icons/sun.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { SunIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
light mode, day, sunny, light theme, daytime, daylight, sunshine, clear sky, clear day
Alternatives
  • sun-moon: a theme switcher: light, dark or system
  • cloud-sun: partly cloudy or partly sunny
Don’t confuse with
  • sun-dim: sun-dim is screen brightness
Also fits
  • theme: light mode alone
  • solar panel: sunny weather or light mode
  • summer: sunny weather or light mode
  • sunrise: day or daytime
  • uv index: sunny weather
Not for
  • brightness (use sun-dim): the sun motif means light mode or day, not brightness
Tags
sun, weather, clear, daytime, light
Category
Weather
Component name
SunIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 54

More weather icons

For agents

Metadata: /icons/sun.json · Markdown: /icons/sun.md · SVG: https://gentleface.com/svg/{style}/16/sun.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/sun.png