Skip to content
JS
Package

contrast-js

Contrast.js is a tiny (4.26kb) library with no dependencies that adds responsiveness to the color or background attributes of DOM elements based on the section of background image behind the target element. The library analyzes the background behind the b

v0.0.3MITCommonJSTypes: None
$ npm install contrast-js

Key numbers

As of 25 Sept 2026
Weekly downloads
17
- over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
-
v0.0.3
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

No weekly download data in the snapshot.

17 downloads last week, 45 in the last month. No 52-week series has been fetched yet.

Releases, last 12 months
-
Latest version
0.0.3
First published
-
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
29 kB
Dependencies (0)
None
npm install contrast-js

CDN

jsDelivr: 186.9k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/contrast-js@0.0.3/
  • unpkghttps://unpkg.com/contrast-js@0.0.3/
  • esm.shhttps://esm.sh/contrast-js@0.0.3
Sources: npm registry, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 17 < 10000; GitHub data not fetched yet; no category.