New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dark-mode-toggle

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dark-mode-toggle - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "dark-mode-toggle",
"version": "0.1.0",
"version": "0.1.1",
"description": "Web Component that toggles dark mode 🌒",

@@ -5,0 +5,0 @@ "main": "./src/dark-mode-toggle.mjs",

@@ -6,6 +6,9 @@ [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/dark-mode-toggle)

A custom element that allows you to easily put a *Dark Mode 🌒* toggle
or switch on your site and that adds
[`prefers-color-scheme`](https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme)
support even to browsers that don't support the media feature natively.
or switch on your site, so you can initially adhere to your users' preferences according to
[`prefers-color-scheme`](https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme),
but also allow them to (optionally permanently) override their system setting for just your site.
📚 Read all(!) about dark mode in the related article
[Hello Darkness, My Old Friend](https://web.dev/prefers-color-scheme/).
## Installation

@@ -24,3 +27,3 @@

```
or
or

@@ -31,4 +34,2 @@ ```js

## Usage

@@ -35,0 +36,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc