ICONYZ
English
Sun icon from Material Design Iconic Font

Sun icon

zmdi:sun

The Sun icon (zmdi:sun) is a free SVG icon from the Material Design Iconic Font set by MDI Community. It is drawn on a 472 × 472 grid. Material Design Iconic Font icons are released under the Open Font 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
Material Design Iconic Font
Author
MDI Community
License
OFL-1.1
Size
472 × 472
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="472" height="472" viewBox="0 0 472 472"><path fill="currentColor" d="m123 95l-30 30l-39-38l30-30zM64 216v43H0v-43zM256 4v63h-43V4zm159 83l-38 38l-30-30l38-38zm-69 292l30-29l39 38l-30 30zm59-163h64v43h-64zM235 109q53 0 90.5 37.5T363 237t-37.5 90.5T235 365t-90.5-37.5T107 237t37.5-90.5T235 109m-22 362v-63h43v63zM54 388l39-39l30 30l-39 39z"/></svg>

How to use the Sun icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

<img src="https://iconyz.com/api/public/svg/zmdi/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. Material Design Iconic Font icons are released under the Open Font 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="zmdi: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/zmdi/sun.svg" alt="Sun icon">, or paste the SVG code inline to style it with CSS.

Browse all Material Design Iconic Font icons →