项目介绍

ditdot-dev/dark-mode-example 是一个托管在 GitHub 上的开源项目,主要使用 CSS 编写,采用 MIT License 许可证,目前获得 41 个 Star、7 次 Fork。

仓库全名
ditdot-dev/dark-mode-example

README 摘要

Dark Mode with prefers-color-scheme 🌗 Enable Dark Mode with prefers-color-scheme media query in JavaScript. Includes a switch to override the mode. Animated example of dark mode feature implemented with prefers-color-scheme and checked programatically with window.matchMedia() JavaScript method. Features detects the preferred mode based on the color scheme preference set at the system level using JavaScript colors…

完整内容见 GitHub 原始 README 或本页 。

常见问题

dark-mode-example 用什么语言开发?

主要使用 CSS 编写,采用 MIT License 许可证,目前有 41 个 Star。

dark-mode-example 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 dark-mode-example 的源码?

可以直接克隆仓库:git clone https://github.com/ditdot-dev/dark-mode-example.git,默认分支为 master;安装与运行步骤见仓库 README。

dark-mode-example 最近还在维护吗?

仓库最近一次更新为 2021年11月18日,当前没有未关闭的 Issue;Star 数为 41,可作为社区活跃度的参考。

关于

Simple and fun dark-mode detection. JavaScript with a user mode toggle.

描述来自项目方在 GitHub 上的公开说明,中文内容由 GitRead 中文社区 整理。

简要分析

热度分
57
价值分
26
活跃状态
活跃

语言占比

CSS
HTML
JavaScript