Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 425 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 425 Bytes

ColorContrastExample

A sample lightning web component that handles chosing text color based upon a background color.

How to

  1. Add brainJs.min.js to your Salesforce Org's static resources with the name "brain." https://unpkg.com/[email protected]/dist/brain-browser.min.js
  2. Deploy the component colorContrastExample to your org.
  3. Place the component on a page or within another exposed lightning web component.