helloflask / bootstrap-flask

Bootstrap 4 & 5 helper for your Flask projects.
https://bootstrap-flask.readthedocs.io
Other
1.12k stars 190 forks source link

How to override bootstrap variables. #220

Closed Guillaume-Tnk closed 2 years ago

Guillaume-Tnk commented 2 years ago

Hi, It's probably simple but I can't figure what's the way to customize my theme with bootstrap-flask. If for example, I want to redefine the color: "$primary", how I'm I suppose to do it? I have been looking at https://getbootstrap.com/docs/5.1/customize/sass/ but since I don't have the @import "../node_modules/bootstrap/*, it will not work, or am I supposed to import the bootstrap files locally in parallel with using bootstrap-flask?

edit: I actually did just that, import bootstrap with npm and followed this to override, it's working. If this is the correct approach, disregard my question, if there's a better one please let me know, thank you.

greyli commented 2 years ago

This project is just a helper for rendering Bootstrap markup HTML in the Jinja template. Please refer to Bootstrap docs for issues like this, thanks.

Guillaume-Tnk commented 2 years ago

@greyli As I said in the edit, that's exactly what I did. At first, I was wondering if there was a defined way to do it inside bootstrap-flask.