Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flask-Bootstrap custom theme

Tags:

css

flask

I made a flask app with flask-bootstrap. I am using virtualenv as well. Where would I find the stylesheet that I edit to customize the colors? Or is there another way to have custom colors?

like image 545
Assorted Nuggets Avatar asked Dec 19 '22 20:12

Assorted Nuggets


1 Answers

Add you custom colors to a css file, e.g. mystyle.css, put it under the static folder, then add your custom css file to your template.

{% block styles %}
{{super()}}
  <link rel="stylesheet" href="{{url_for('.static', filename='mystyle.css')}}">
{% endblock %}

Check the documentation here: Adding a custom CSS file:

like image 190
lord63. j Avatar answered Feb 09 '23 13:02

lord63. j