237005722 / darkMode

darkMode,利用-webkit-filter: invert(100%) 实现网页深色模式

Home Page:https://237005722.github.io/darkMode/

Repository from Github https://github.com237005722/darkModeRepository from Github https://github.com237005722/darkMode

darkMode

纯css3实现网页深色模式:-webkit-filter: invert(100%)

Reference

Google Chrome plugin: Dark Mode for Chrome

Demo

You can test on: https://237005722.github.io/darkMode/

Documentation

Just copy-paste this code to end of body tag:

<button onclick="switchDarkStyle('light')">浅色模式</button>
<button onclick="switchDarkStyle('dark')">深色模式</button>

<script src="./darkMode.js"></script>

About

darkMode,利用-webkit-filter: invert(100%) 实现网页深色模式

https://237005722.github.io/darkMode/

License:Apache License 2.0


Languages

Language:JavaScript 53.7%Language:HTML 46.3%