ICONYZ
English
Dark Mode icon from Material Symbols

Dark Mode icon

material-symbols:dark-mode

The Dark Mode icon (material-symbols:dark-mode) is a free SVG icon from the Material Symbols set by Google. It is drawn on a 24 × 24 grid. Material Symbols icons are released under the Apache 2.0 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 Symbols
Author
Google
License
Apache-2.0
Size
24 × 24
Category
Android
Tags
app, application, dark, device, interface, mode, moon, night, silent, theme, ui, ux, website, darkmode, dark mode sharp
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 21q-3.75 0-6.375-2.625T3 12t2.625-6.375T12 3q.35 0 .688.025t.662.075q-1.025.725-1.638 1.888T11.1 7.5q0 2.25 1.575 3.825T16.5 12.9q1.375 0 2.525-.613T20.9 10.65q.05.325.075.662T21 12q0 3.75-2.625 6.375T12 21"/></svg>

How to use the Dark Mode icon

React

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

<Icon icon="material-symbols:dark-mode" width="24" />

Vue

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

<template>
  <Icon icon="material-symbols:dark-mode" width="24" />
</template>

Svelte

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

<Icon icon="material-symbols:dark-mode" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[material-symbols--dark-mode]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/material-symbols -->
<div class="i-material-symbols:dark-mode"></div>

Web component

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

<iconify-icon icon="material-symbols:dark-mode"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/material-symbols/dark-mode.svg" alt="Dark Mode icon" width="24" height="24">

Related icons in Material Symbols

Dark Mode icon in other icon sets

Dark Mode icon FAQ

Is the Dark Mode icon free for commercial use?

Yes. Material Symbols icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.

How do I use the Dark Mode icon in React?

Install @iconify/react and render <Icon icon="material-symbols:dark-mode" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Dark Mode icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/material-symbols/dark-mode.svg" alt="Dark Mode icon">, or paste the SVG code inline to style it with CSS.

Browse all Material Symbols icons →