Yeeeeah… sometimes Axure does inline styling which then requires jQuery to overcome. I wrote a plugin that converts prototype colors into predefined CSS Variables, and in order to do that I had to figure out waaaaay more about how Axure actually renders a page than I ever cared to know. Scary scary stuff of nightmares.
Basically, you can still style everything like normal in Axure, but you then have to iterate over the DOM setting the inline styles accordingly.
I would strip out the jQuery workhorses here, but I have some prototypes to knock out by morning HA! But here’s the the function I’m running in Axure to find specific inline styles then replaces with whatever I want. In this case, its CSS Variables. Its not the prettiest code so don’t judge
javascript:
var lib = [ ['var(--primary-text)', 'rgb(87, 86, 89)', 'rgb(55, 55, 55)'], ['var(--white)', 'rgb(255, 255, 255)'], ['var(--primary)', 'rgb(0, 114, 207)'], ['var(--chroma-2)', 'rgb(229, 229, 229)', 'rgb(248, 248, 248)']];
var lookOut = ['color', 'background-color'];
for(i = 0; i < lib.length; i++){
for(j = 0; j < lookOut.length; j++){
$('*').css(lookOut[j], function(index, value) {
for(x = 1; x < lib[i].length; x++){
if(value.includes(lib[i][x])) {
$(this).css(lookOut[j], lib[i][0]);
}
}
}
);
}
}