Socket
Socket
Sign inDemoInstall

a11y-color

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

2

lib/color.es6.js

@@ -116,3 +116,3 @@ "use strict";

/**
* Combine the two given color according to alpha blending.
* Combine the two given colors according to alpha blending.
*

@@ -119,0 +119,0 @@ * @param {Color} fgColor - the foreground color.

@@ -136,3 +136,3 @@ "use strict";

/**
* Combine the two given color according to alpha blending.
* Combine the two given colors according to alpha blending.
*

@@ -139,0 +139,0 @@ * @param {Color} fgColor - the foreground color.

{
"name": "a11y-color",
"description": "",
"version": "0.0.5",
"description": "Color evaluation and manipulation tools",
"version": "0.0.6",
"author": "Jesse Beach <jesse.r.beach@gmail.com>",

@@ -6,0 +6,0 @@ "license": "Apache License 2.0",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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