Ensure there is one background color in Plotly dash

Hi,

How do I ensure same background color( the top one) in the image attached.

Thanks

Hi,

Probably the easiest way is to add a stylesheet to assets/ containing:

body {
  background-color: "black" /* or any other css color def */
}

Dash loads .css files automatically if they are located in assets/

1 Like

Hi,

Just curious… what do you mean by assets/

Is it a folder?

Thank you

Yes, it is. Here is the documentation about it.

1 Like