Weather · Lucide

Sun Icon Generator

Turn the sun icon into a finished app icon or favicon: pick a background, a corner radius and a stroke weight, then download SVG, PNG or a full icon package.

Light mode, daytime or clear weather. The theme-switching meaning now outweighs the meteorological one in most apps.

Sun icon preview

Lucide's Sun at 2px stroke. Drag the icon to reposition it, then download.

What the sun icon means

Light mode, daytime or clear weather. The theme-switching meaning now outweighs the meteorological one in most apps.

Weather icons have a second life as interface controls: the sun and moon now mean light and dark theme far more often than they mean day and night. Both are excellent app icon shapes — a disc with rays and a crescent are simple, solid and instantly readable. The rest of the class is more fragile, since rain, snow and wind are all drawn with thin repeated strokes that merge into grey texture below about 24 pixels.

Where you will actually see it

  • light/dark theme toggles
  • weather forecasts
  • app icons for solar and outdoor products

Drawing the sun at 16 pixels

The eight rays are short thin strokes around a circle. They merge into a fuzzy halo; use four rays for small sizes.

Stroke weight is the control that matters most here. Lucide icons are drawn on a 24 × 24 grid with a 2px stroke, which means that when the icon is scaled down to 16px the stroke is effectively 1.33px — below one device pixel on a standard-density display. Raising the stroke to 2.5 or 3 before exporting keeps the shape solid; lowering it to 1.5 suits large app icons where a heavy stroke looks clumsy. The editor exposes this as a slider, so you can find the value that survives your smallest target size rather than guessing.

Using it in code

If you want the icon in a Vue project rather than as a downloaded asset, it is a named export of the lucide package:

import { Sun } from 'lucide-vue-next'

<Sun :size="24" :stroke-width="2" />

The download button above gives you something different: the icon composed onto a background with a corner radius, exported as a flat SVG path set. The exporter converts the icon out of its <foreignObject> wrapper first, because a foreign object taints an HTML canvas and would otherwise break PNG and ICO rasterisation.

Pair the sun with a letter

An icon and a letter in the same mark is a common lockup — the letter carries the brand, the icon carries the category. The editor lets you position both independently on the same canvas.

Build your sun icon set

Open the free editor to change the background, gradient, corner radius, icon size, rotation and stroke weight — then export SVG, PNG, ICO or a complete favicon package with manifest and HTML.

Open the sun icon editor

© 2026 AppIcons.dev. All rights reserved.