Greasy Fork is available in English.

Dark Mode

Add a Dark Mode / Night Mode to your website in a few seconds

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
theabbie
1日のインストール数
0
累計インストール数
1,578
評価
1 0 2
バージョン
1
作成日
2021/11/19
更新日
2021/11/19
ライセンス
MIT
対象サイト
すべてのサイト

Darkmode.js

🌓 Add a Dark Mode / Night Mode to your website in a few seconds

This library uses the CSS mix-blend-mode to bring Dark Mode to any of your websites. Just copy-paste the snippet and you will get a widget to turn on and off the Dark Mode. You can also use it without the widget programmatically. The plugin is lightweight, built-in Vanilla. It also uses local storage by default, so your last setting will be remembered!

Features

  • Widget appears automatically
  • Saving users choice
  • Automatically shows Darkmode if the OS preferred theme is dark (if the browsers support prefers-color-scheme)
  • Can be used programmatically without widget