0.0.1 • Published 2 years ago

is-color-dark v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Check if color is dark or light

Supported color formats: RGB, HEX and HSL.

Installation

npm install is-color-dark

Usage

import { isColorDark } from "is-color-dark";

console.log(isColorDark("#000000")); //true
console.log(isColorDark("#FFFFFF")); //false

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.