ICONYZ
English
Dark Mode icon from IconPark Solid

Dark Mode icon

icon-park-solid:dark-mode

The Dark Mode icon (icon-park-solid:dark-mode) is a free SVG icon from the IconPark Solid set by ByteDance. It is drawn on a 48 × 48 grid. IconPark Solid 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
IconPark Solid
Author
ByteDance
License
Apache-2.0
Size
48 × 48
Category
Edit
Tags
darkmode
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><defs><mask id="SVGh8KaKdEb"><g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="4"><path fill="#fff" stroke="#fff" d="m24.003 4l5.27 5.27h9.457v9.456l5.27 5.27l-5.27 5.278v9.456h-9.456L24.004 44l-5.278-5.27H9.27v-9.456L4 23.997l5.27-5.27V9.27h9.456z"/><path fill="#000" stroke="#000" d="M27 17c0 8-5 9-10 9c0 4 6.5 8 12 4s2-13-2-13"/></g></mask></defs><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#SVGh8KaKdEb)"/></svg>

How to use the Dark Mode icon

React

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

<Icon icon="icon-park-solid:dark-mode" width="24" />

Vue

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

<template>
  <Icon icon="icon-park-solid:dark-mode" width="24" />
</template>

Svelte

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

<Icon icon="icon-park-solid:dark-mode" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="icon-park-solid:dark-mode"></iconify-icon>

HTML image

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

Dark Mode icon in other icon sets

Dark Mode icon FAQ

Is the Dark Mode icon free for commercial use?

Yes. IconPark Solid 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="icon-park-solid: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/icon-park-solid/dark-mode.svg" alt="Dark Mode icon">, or paste the SVG code inline to style it with CSS.

Browse all IconPark Solid icons →