JavaScript for WordPress › Forums › Gutenberg Development › Getting the colour value from ColorPalette This topic has 3 replies, 2 voices, and was last updated 6 years, 7 months ago by alantucker. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts April 11, 2018 at 8:39 am #44882 alantuckerParticipant Hi I have a working ColorPalette control working in the inspector but I am unsure how to get the value and apply it to the background of my block when making changes etc? Thanks April 11, 2018 at 9:00 am #44892 alantuckerParticipant Don’t worry I have figured it out 🙂 April 11, 2018 at 10:06 am #44897 Zac GordonKeymaster Nice! Most likely using the style attribute on an element 👍 April 11, 2018 at 10:10 am #44899 alantuckerParticipant Using style={ { backgroundColor: colorPaletteControl } } seemed to work 😉 Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In