Coder Social home page Coder Social logo

russoedu / font-color-contrast Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 2.0 1.53 MB

Application to use black or white font according to the given background color

Home Page: https://russoedu.github.io/font-color-contrast-demo/

License: MIT License

JavaScript 4.14% TypeScript 95.86%

font-color-contrast's People

Contributors

dguo avatar franciscohanna92 avatar russoedu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

font-color-contrast's Issues

Accept rgb string as input

If the input string is rgb, then filter it through a lib like https://www.npmjs.com/package/rgb-hex before computing the font color.
This way clients can assume any valid CSS color string is also a valid input to this lib and clients can avoid having logic in their own code which checks the color string's contents.

Cannot upgrade to v10 in typescript project

I am currently on version ^1.1.1 in a typescript project. After updating the version to 10.0.0 in my package.json file and then running yarn install I get the following error:

error /node_modules/font-color-contrast: Command failed.
Exit code: 127
Command: tsc
Arguments: 
Directory: /node_modules/font-color-contrast
Output:

I have enjoyed this library so far and look forward to updating to the new version! Let me know if there is any more information that I can provide to help diagnose the issue, thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.