Skip to content

A light (0.1kb) library for detecting dark-mode preference in the browser.

Notifications You must be signed in to change notification settings

jds64/browser-prefers-dark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

browser-prefers-dark

A lightweight browser module for checking dark-mode preference.

Usage

import prefersDark from 'browser-prefers-dark'

if (prefersDark()) {
  // do cool stuff!
}

About

A light (0.1kb) library for detecting dark-mode preference in the browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published