Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alex-page/rainbow

🌈 Find the accessible spectrum of light with a URL
https://github.com/alex-page/rainbow

a11y accessibility api color contrast contrast-ratio

Last synced: about 2 months ago
JSON representation

🌈 Find the accessible spectrum of light with a URL

Awesome Lists containing this project

README

        

# Rainbow

> 🌈 Find the accessible spectrum of light with a URL

## Usage

The URL takes a foreground color that will be changed to make a 4.5 contrast on the background color:

[https://a11ycolor.now.sh/red/red](https://a11ycolor.now.sh/red/red)
```json
{
"a11ycolor": "#000000"
}
```

[https://a11ycolor.now.sh/000/000](https://a11ycolor.now.sh/000/000)
```json
{
"a11ycolor": "#757575"
}
```

## Getting started

To get started locally make sure you have `node` and `npm` installed:

```
npm install && npm run dev
```

Then you can open [https://localhost:3000/red/000](https://localhost:3000/red/000) to see the API running locally.

## Release History

* v2.0.0 - New RESTful API published on Zeit Now
* v1.0.1 - Update dependencies
* v1.0.0 - First release