We can use a css file. To do this you add this code to the template.html file, we use as a base for all our pages.
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
This is the style.css
body { margin-left: 10%; margin-right: 10%; color: white; background-color: rgb(6, 14, 42); }