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

chameleon.js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chameleon.js

Find the right contrasting colors, great for automatically selecting text colors based on user supplied color values for background UI elements. For example:

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Chameleon.js

Find the right contrasting colors, great for automatically selecting text colors based on user supplied color values for background UI elements. For example:

color changing text

Installation

Via npm:

npm install chameleon.js

Usage

Use in Node.js / Titanium:

var C = require("chameleonjs");
console.log( C('black') );
console.log( C('#000000') );
console.log( C(0, 0, 0) );

What Chameleon.js does

  • Get the contrasting value of a Hexadecimal color.
  • Get the contrasting value of an RGB color.
  • Get the contrasting value of a css named color.

What Chameleon.js will do

  • Get the complementary value of a Hexadecimal color.
  • Get the complementary value of an RGB color.
  • Get the complementary value of a css named color.
  • Get the contrasting value for a Titanium mobile Status bar.

What Chameleon.js MIGHT do down the road

  • Get the colors from images and return the contrasting / complementary colors

Keywords

FAQs

Package last updated on 03 Sep 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc