Created
February 4, 2020 12:30
-
-
Save danhollick/71d77e9e9697961a1d29268ede43d6a8 to your computer and use it in GitHub Desktop.
send default values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let foregroundColor = [0, 0, 0] // black | |
let backgoundColor = [255, 255, 255] // white | |
let foregroundAlpha = 1 | |
let backgroundAlpha = 1 | |
// call on plugin start | |
figma.showUI(__html__, { width: 340, height: 405 }) | |
calculateAndSendContrast(foregroundColor, foregroundAlpha, backgoundColor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment