Light Dark icon
line-md:light-dark
The Light Dark icon (line-md:light-dark) is a free SVG icon from the Material Line Icons set by Vjacheslav Trushkin. It is drawn on a 24 × 24 grid. Material Line Icons are released under the MIT 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 Line Icons
- Author
- Vjacheslav Trushkin
- License
- MIT
- Size
- 24 × 24
- Category
- Interface
- Tags
- lightdark
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><defs><mask id="SVGPWNvGc7L"><circle cx="7.5" cy="7.5" r="5.5" fill="#fff"/><circle cx="11" cy="7.5" r="6.5"><animate fill="freeze" attributeName="cx" dur="0.4s" values="7.5;11"/><animate fill="freeze" attributeName="r" dur="0.4s" values="5.5;6.5"/></circle></mask><mask id="SVGOgqevdhu"><g fill="#fff"><circle cx="12" cy="9" r="5.5" transform="rotate(-45 12 12)"><animate fill="freeze" attributeName="cy" begin="0.9s" dur="0.5s" to="15"/></circle><path d="M12.62 20.62h3l-1.5 2.5Z" opacity="0" transform="rotate(-120 14.12 14.12)"><set fill="freeze" attributeName="opacity" begin="1.4s" to="1"/><animate fill="freeze" attributeName="d" begin="1.4s" dur="0.4s" values="M13.12 17.12h2l-1 2Z;M12.62 20.62h3l-1.5 2.5Z"/></path><path d="M12.62 20.62h3l-1.5 2.5Z" opacity="0" transform="rotate(-70 14.12 14.12)"><set fill="freeze" attributeName="opacity" begin="1.4s" to="1"/><animate fill="freeze" attributeName="d" begin="1.4s" dur="0.4s" values="M13.12 17.12h2l-1 2Z;M12.62 20.62h3l-1.5 2.5Z"/></path><path d="M12.62 20.62h3l-1.5 2.5Z" opacity="0" transform="rotate(-20 14.12 14.12)"><set fill="freeze" attributeName="opacity" begin="1.4s" to="1"/><animate fill="freeze" attributeName="d" begin="1.4s" dur="0.4s" values="M13.12 17.12h2l-1 2Z;M12.62 20.62h3l-1.5 2.5Z"/></path><path d="M12.62 20.62h3l-1.5 2.5Z" opacity="0" transform="rotate(30 14.12 14.12)"><set fill="freeze" attributeName="opacity" begin="1.4s" to="1"/><animate fill="freeze" attributeName="d" begin="1.4s" dur="0.4s" values="M13.12 17.12h2l-1 2Z;M12.62 20.62h3l-1.5 2.5Z"/></path></g><path d="M-4.97 12l18.38 -18.38l10.61 10.61l-18.38 18.38Z"/></mask></defs><g fill="currentColor"><path d="M0 0h24v24H0z" mask="url(#SVGPWNvGc7L)"/><path d="M0 0h24v24H0z" mask="url(#SVGOgqevdhu)"/></g><path fill="none" stroke="currentColor" stroke-dasharray="24" stroke-dashoffset="24" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M23 12h-22" transform="rotate(-45 12 12)"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.5s" dur="0.3s" to="0"/></path></svg>How to use the Light Dark icon
React
import { Icon } from "@iconify/react";
<Icon icon="line-md:light-dark" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="line-md:light-dark" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="line-md:light-dark" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[line-md--light-dark]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/line-md -->
<div class="i-line-md:light-dark"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="line-md:light-dark"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/line-md/light-dark.svg" alt="Light Dark icon" width="24" height="24">Related icons in Material Line Icons
Light Dark icon in other icon sets
Light Dark icon FAQ
Is the Light Dark icon free for commercial use?
Yes. Material Line Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Light Dark icon in React?
Install @iconify/react and render <Icon icon="line-md:light-dark" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Light Dark icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/line-md/light-dark.svg" alt="Light Dark icon">, or paste the SVG code inline to style it with CSS.