Help forum

Background color of page?

  • Jonesy

    1 year ago

    Is there a native way to change the background color every page without div elements?

    Or do i have to use CSS, if so how exactly would i do that?
  • Armand

    1 year ago

    You could either create a component where you set the background color. And add a slot to it. Then make that the root element on every page.

    Or you can set the background color on every page with a theme style variable.
  • Andreas Møller

    1 year ago

    At the moment you have to add custom css, we are planning on a way to let you style the body element.
  • Jonesy

    1 year ago

    Thank you, how would i do that?
  • Lucas G

    1 year ago

    Style tag element (can find it in catalog)
  • body { background-color: color; }
  • Jonesy

    1 year ago

    Perfect Thank you!!