Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
get the colors from pallet lab tab in chrome
var colors = document.querySelectorAll('.sweet-color');
colors.forEach(e => {
let styles = window.getComputedStyle(e);
console.log(styles["background-color"]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.