Skip to content

Adding a bootstrap color in bootstrap/scss/_bs_variables #749

Answered by justinkruit
kreincke asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately you can't properly modify Bootstrap variables with other Bootstrap variables. This happens because our variables file is loaded before the Bootstrap variables, so they can't access them. This done according to the documentation from Bootstrap.

So to answer your question: the best way is to again define the variables you want to use in the Bootscore variables file, and then call them.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by crftwrk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants