项目介绍

saadeghi/theme-change 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 1.7k 个 Star、48 次 Fork。

仓库全名
saadeghi/theme-change

README 摘要

🎨 CSS Theme Change Tiny helper for CSS themes. One HTML attribute data-set-theme to set theme theme. Works with button, select, and checkbox Persists theme in localStorage Syncs all matching data-set-theme controls Demo CodePen: https://codepen.io/saadeghi/pen/OJypbNM?editors=1000 Quick start CDN NPM Use themeChange(false) when controls are mounted after initial page load. Framework snippets React Vue Svelte Astro…

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

常见问题

theme-change 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 1.7k 个 Star。

theme-change 可以免费商用吗?

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

如何获取 theme-change 的源码?

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

theme-change 最近还在维护吗?

仓库最近一次更新为 6月14日,当前没有未关闭的 Issue;Star 数为 1.7k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Change CSS theme with toggle, buttons or select using CSS custom properties and localStorage

以下为仓库作者撰写的原始描述。

简要分析

热度分
1818
价值分
1045
活跃状态
活跃

语言占比

HTML
JavaScript