Assorted Nuggets
Assorted Nuggets

Reputation: 153

Flask-Bootstrap custom theme

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?

Upvotes: 5

Views: 8737

Answers (1)

lord63. j
lord63. j

Reputation: 4670

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:

Upvotes: 12

Related Questions