/invert.js

Invert all colors on your page in one line of code

Primary LanguageTypeScriptMIT LicenseMIT

At a Glance

invert.js makes it super easy to switch your website from light color scheme to dark and back.

How to Get Started

Type in Terminal:

npm install --save @russo-programmisto/invert

or, if you prefer yarn over npm, type:

yarn add @russo-programmisto/invert

Requirements

TypeScript.

Usage

Import library:

import { invert } from "@russo-programmisto/invert"

Then simply call:

invert({
    defaultColorScheme: "light",
    watchForSchemeChange: true
})

License

invert.js is available under the MIT license. See the LICENSE file for more info.