Dark Mode icon

Dark Mode is a Google Material Symbol from the Android category. It's one of the 500 most used Material Symbols. It comes in outlined, rounded and sharp styles, filled or unfilled, at seven weights from 100 to 700. Download it as SVG or PNG, or copy code for HTML, React, Vue, Angular, Flutter and Android — it's free to use under the Apache License 2.0.

Outlined

SVG

Outlined, filled

SVG

Every style, fill and weight

Material Symbols are variable: each icon comes in three styles, with or without fill, at seven weights. Pick a combination to preview it, download it, or copy the code for your platform.

Outlined, unfilled, weight 400

dark_mode_outlined_fill0_wght400.svg

Dark Mode icon in HTML

Load the Material Symbols font from Google Fonts (this link loads just this icon), then use the icon's name as text.

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&icon_names=dark_mode" />

<span class="material-symbols-outlined">dark_mode</span>

Dark Mode icon in React

// With the font from the HTML tab:
export function DarkModeIcon() {
  return (
    <span className="material-symbols-outlined">
      dark_mode
    </span>
  );
}

// Or as an SVG component (Vite + vite-plugin-svgr) instead:
//   npm install @material-symbols/svg-400
//   import DarkModeIcon from "@material-symbols/svg-400/outlined/dark_mode.svg?react";

Dark Mode icon in Vue

<!-- With the font from the HTML tab -->
<template>
  <span class="material-symbols-outlined">dark_mode</span>
</template>

<!-- Or as an SVG component (Vite + vite-svg-loader):
     npm install @material-symbols/svg-400
     import DarkModeIcon from "@material-symbols/svg-400/outlined/dark_mode.svg?component"; -->

Dark Mode icon in Angular

With Angular Material and the font from the HTML tab:

<mat-icon fontSet="material-symbols-outlined">dark_mode</mat-icon>

Dark Mode icon in Flutter

Uses the community material_symbols_icons package.

flutter pub add material_symbols_icons

import 'package:material_symbols_icons/symbols.dart';

Icon(Symbols.dark_mode, fill: 0, weight: 400)

Dark Mode icon in Android

A vector drawable of the selected style, fill and weight:

<!-- res/drawable/dark_mode.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24"
    android:tint="?attr/colorControlNormal">
        <path android:fillColor="@android:color/white" android:pathData="M12 21q-3.75 0-6.375-2.625T3 12q0-3.75 2.625-6.375t6.375-2.625q.2 0 .425 .013t.575 .037q-.9 .8-1.4 1.975t-.5 2.475q0 2.25 1.575 3.825t3.825 1.575q1.3 0 2.475-.462t1.975-1.288q.025 .3 .038 .488t.012 .362q0 3.75-2.625 6.375T12 21Zm0-1.5q2.725 0 4.75-1.687T19.275 13.85q-.625 .275-1.342 .413Q17.217 14.4 16.5 14.4q-2.867 0-4.883-2.016Q9.6 10.367 9.6 7.5q0-.6 .125-1.287t.45-1.563q-2.45 .675-4.062 2.738T4.5 12q0 3.125 2.188 5.313T12 19.5Zm-.1-7.425Z" />
</vector>

Dark Mode icon in SVG

npm install @material-symbols/svg-400

import icon from "@material-symbols/svg-400/outlined/dark_mode.svg";

<!-- or load it from a CDN -->
<img src="https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/dark_mode.svg" width="24" height="24" alt="Dark Mode">

Dark Mode icon in Power Apps

Paste into an Image control's Image property. The Copy button copies the full formula with this icon's SVG.

"data:image/svg+xml;utf8, " & EncodeUrl("<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'>…</svg>")

Details

NameDark Mode
Ligaturedark_mode
Code pointU+E51C
CategoryAndroid
StylesOutlined, Rounded, Sharp — each unfilled or filled
Weights100, 200, 300, 400, 500, 600, 700
Files@material-symbols/svg-400/outlined/dark_mode.svg, dark_mode-fill.svg
FlutterSymbols.dark_mode
LicenseApache License 2.0 (© Google LLC)

Keywords

androidsettingsviewgraphicelementtogglevisualswitchaccessibilitycomfortcontrastnightmoon

Related icons