An open API service indexing awesome lists of open source software.

https://github.com/simplisticated/invert.js

Invert all colors on your page in one line of code
https://github.com/simplisticated/invert.js

Last synced: 6 months ago
JSON representation

Invert all colors on your page in one line of code

Awesome Lists containing this project

README

          











## 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:

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

Then simply call:

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

## License

`invert.js` is available under the MIT license. See the [LICENSE](./LICENSE) file for more info.