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
- Host: GitHub
- URL: https://github.com/simplisticated/invert.js
- Owner: simplisticated
- License: mit
- Created: 2022-08-06T22:31:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T17:43:46.000Z (over 3 years ago)
- Last Synced: 2024-04-24T19:02:28.578Z (almost 2 years ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.