Socket
Socket
Sign inDemoInstall

a11y-color

Package Overview
Dependencies
1
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    a11y-color

Color evaluation and manipulation tools


Version published
Weekly downloads
20
increased by150%
Maintainers
3
Install size
1.08 MB
Created
Weekly downloads
 

Readme

Source

Build Status

Accessibility Color Tools (a11y-color)

Utilities

Color Parsing

parseColor: Parses a color string in rgb or rgba format into a Color object.

Color suggestions for specific contrast ratios

suggestedColors: Suggests alternative color suggestions to meet a given contrast ratio.

Contrast ratio calculation

calculateContrastRatio: Calculate the contrast ratio between the two given colors. Returns the ratio to 1, for example for two two colors with a contrast ratio of 21:1, this function will return 21.

Flatten colors

flattenColors: Combine the two given colors according to alpha blending.

FAQs

Last updated on 23 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc