New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

contrastrast

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contrastrast - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

21

package.json
{
"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 @@ ".": {

6

README.md

@@ -5,3 +5,3 @@ ![contrastrast](https://github.com/ammuench/contrastrast/assets/2099658/8b7a90b0-3874-4650-a575-1170063d3462)

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 @@ ```

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc