#Cleanest way to set the background of the page?

1 messages · Page 1 of 1 (latest)

toxic wedge
#

Just wondering what would be the best method to apply a background e.g. animated or gradient etc to the WHOLE page i.e. apply it under all the puck componenets. I figured out how to make the components transparent but not sure how to set a background underneath them all. i.e. possible to somehow have a background component under all of them or doing html injection etc whats the best practice?

in theory i could make each component have the same colour background, but if i want a single image underlying every component, or a animated background this doesnt work. only for solid colours this approach would work

I did try looking through previous discord conversations and couldn't find something on this. Thank you :)

cyan mason
#

Hello @toxic wedge!

Do you mean changing the background of the root? If that’s the case, then I think you should use the root config and provide your own background in the render function.

Does that make sense?