A custom element that allows you to easily put a Dark Mode 🌒 toggle or switch on your site:
prefers-color-scheme 开源项目推荐(73 个)
prefers-color-scheme 话题在 GitHub 上没有填写简介,这里按 Star 数汇总最相关的热门仓库。
热门项目 前 20
按 Star 数排序展示前 20 个 · GitHub 共 73 个仓库🌑 Dark mode made easy
CSS-variables-based swappable themes for Tailwind CSS
Utility package for managing Dark Mode on the web
🌑 Enable dark mode for Next.js apps
Bulma prefers dark theme
Media-query- or JavaScript-based theme variants with fallback for Tailwind CSS
Detect system color scheme changes on the web (Dark Mode)
A component that helps to implement dark mode and other color modes in your Vue application.
add prefers-color-scheme for vuepress default theme
一个语义化、轻量级的 CSS(PostCSS)框架,用于构建快速、无障碍的用户界面。支持基于类或无类、浅色或深色模式,具备 agent-skills 能力。七种构建版本。适用于任何技术栈。
Support dark mode in your Svelte apps
Simple and fun dark-mode detection. JavaScript with a user mode toggle.
🪝 React hook for subscribing to user's color scheme preference.
React hook for determining the preferred color scheme
Portfolio template created strictly with HTML and CSS
Lightweight, customizable theme provider and UI handle for the SolidJS Library
🌓 Simple dark-mode/light-mode logic for any website.
Theme switcher for Svelte & TailwindCSS
🌓 Add dark mode/night mode custom elements to your website.
关于这个话题
- 清单按 Star 数挑选该话题下最热门的 20 个项目,对应的话题主页见 https://github.com/topics/prefers-color-scheme。
- 该话题在 GitHub 上共有 73 个仓库, 这里呈现的是其中最具代表性的 20 个,不是全量列表。
- 星标与复刻数以 GitHub 上的实时数字为准。
- 当前 20 个项目累计 3867 Star,覆盖 6 种主要语言。
- 中文简介由本站编译整理,可点「查看原文」对照项目方提供的原始说明。