Custom background color durring intial anvil loading?

My anvil app has a dark grey background and is embedded inside an iframe in another website with the same dark background.

Is it possible to set the initial background color to something other than white while the anvil app is initially loading?

I’m trying to remove the “flash” of white to make the anvil app blend in to its “parent” site’s design and improve the perceived loading speed.

Thanks!
Erik

1 Like

Yes it is possible.

Go to your theme.css and search for ‘body’. When you find the css for your body, add this line to it

background-color: <your color>;
3 Likes