invert.js
makes it super easy to switch your website from light color scheme to dark and back.
Type in Terminal:
npm install --save @russo-programmisto/invert
or, if you prefer yarn
over npm
, type:
yarn add @russo-programmisto/invert
TypeScript.
Import library:
import { invert } from "@russo-programmisto/invert"
Then simply call:
invert({
defaultColorScheme: "light",
watchForSchemeChange: true
})
invert.js
is available under the MIT license. See the LICENSE file for more info.