How to set own colours such as $primary ?
See original GitHub issueAfraid to ask such a very newbew question… but: How to set my own theme colors, for example, I would like $primary = #121b38
Bootstrap suggests editing _custom.scss
, but if I create one, it does not seem to work:
<script>
import '@/assets/_custom.scss'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import Vue from 'vue'
import Navbar from '@/components/Navbar'
Vue.component('navbar', Navbar)
export default {
name: 'app'
}
</script>
And in src/assets/_custom.scss
$blue: #121b38 !default;
There must be something basic like this in the documentation, but I only see Color variants… maybe I need more sleep? ))
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Change a theme and make it the default in Word or Excel
On the Page Layout tab in Excel or the Design tab in Word, click Colors, and then click Customize Colors. Click the button...
Read more >Color Theory 101: A Complete Guide to Color Wheels & Color ...
There are three secondary colors: orange, purple, and green. You can create each one using two of the three primary colors. Here are...
Read more >5 Ways to Decorate with Primary Colors for a Retro-Inspired ...
3. Tone down primary colors with neutrals. ... Balance the brightness of primary colors with soft neutrals. "I like to pair them with...
Read more >How to change the bootstrap primary color? - Stack Overflow
To change the primary, or any of the theme colors in Bootstrap 4 SASS, set the appropriate variables before importing bootstrap.scss . This...
Read more >Color Basics | Usability.gov
Color wheel with Three Primary Colors (Ps): Red, Yellow, Blue; ... To find additive colors, start with black and change each pair to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s a common thing in bootstrap, and it documented as I know. So there isn’t need to add this into our project documentation.
Indeed that worked, thank you. Still, wondering why nobody wrote anything in the documentation:
To use your own theme and colors in
bootstrap-vue
, you can include this in yourApp.vue
:The possible contents for this
_custom.scss
you will find innode_modules/bootstrap/scss/_variables.scss
. Do not forget to applynpm install --save-dev node-sass sass-loader
to use scss in Vue.