JSPM

is-dark-theme

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q44799F
  • License MIT

Detect if the user has requested the system use a light or dark color theme

Package Exports

  • is-dark-theme

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-dark-theme) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-dark-theme

Detect if the user has requested the system use a light or dark color theme.

npm package

Build Status NPM version NPM Downloads Install Size

Installation

Install the package using npm or yarn.

use npm:

npm install is-dark-theme

or use yarn:

yarn add is-dark-theme

Usage

import isDarkTheme from 'is-dark-theme'

isDarkTheme() // true | false

Credits

License

is-dark-theme is released under the MIT License. See the bundled LICENSE file for details.