contrastrast
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "contrastrast", | ||
"description": "A library to determine text contrast based on WCAG Standards", | ||
"description": "A lightweight tool that parses color strings and recommends text contrast based on WCAG Standards", | ||
"license": "MIT", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"type": "module", | ||
@@ -13,2 +13,19 @@ "main": "./dist/contrastrast.umd.cjs", | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ammuench/contrastrast.git" | ||
}, | ||
"keywords": [ | ||
"wcag", | ||
"text color", | ||
"text contrast", | ||
"constrast", | ||
"readability", | ||
"legible", | ||
"a11y", | ||
"colors", | ||
"accessibility", | ||
"color contrast" | ||
], | ||
"author": "Alex Muench <ammuench@gmail.com> (https://alexmuen.ch/)", | ||
"exports": { | ||
@@ -15,0 +32,0 @@ ".": { |
@@ -5,3 +5,3 @@  | ||
A library to recommend text contrast based on [WCAG Standards](http://www.w3.org/TR/AERT#color-contrast) | ||
A lightweight tool that parses color strings and recommends text contrast based on [WCAG Standards](http://www.w3.org/TR/AERT#color-contrast) | ||
@@ -27,3 +27,3 @@ ## Installation | ||
```ts | ||
```tsx | ||
import { textContrastForBGColor } from "contrastrast"; | ||
@@ -82,2 +82,4 @@ | ||
hsl(121deg, 90%, 61%) | ||
hsl(298, 90, 61) | ||
@@ -84,0 +86,0 @@ ``` |
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
12301
1
107
0