So I have buttons with MANY different background colors and I want to be able to have a single source of truth for the color. If I change the color at the SOURCE it will apply to all the emails that have that button and I know that you can use ampscript to do this.
I was thinking of having different content block's with just the color code as text inside, then calling the ID of that content block to insert into the HTML like below so if I want to change the original color - I can just go to the content block and edit the text. Is this a good route to go?
<table style="background-color:%%=ContentBlockbyId("384201")=%%" bgcolor="%%=ContentBlockbyId("384201")=%%">Button Text </table>