is-dark-theme
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

/is-dark-theme/

    Package Sidebar

    Install

    npm i is-dark-theme

    Weekly Downloads

    3

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4.13 kB

    Total Files

    6

    Last publish

    Collaborators

    • iamjjc