This project was made for the class Security Engineering (SSC0547 ) at ICMC/USP

DO NOT INSTALL IT IN YOUR PROJECT


Color Variation

Get a lighter or darker variant of your color and a font color based on our background focusing on maximum contrast.

  • calculateColorVariation(color: string, amount: number): string

    • color: hex format
    • number: percentage of variation, positive is lighter and negative is darker
  • calculateFontColor(backgroundColor: string)

    • backgroundColor: hex format