Skip to content

Instantly share code, notes, and snippets.

@danhollick
Last active February 3, 2020 16:41
Show Gist options
  • Save danhollick/65d1f88510dc063e54f9c9a505b90d68 to your computer and use it in GitHub Desktop.
Save danhollick/65d1f88510dc063e54f9c9a505b90d68 to your computer and use it in GitHub Desktop.
Send contrast info
function sendContrastInfo(contrast, foreground, backgound) {
figma.ui.postMessage({
type: 'selectionChange',
foreground,
background,
contrast,
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment