Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set own colours such as $primary ?

See original GitHub issue

Afraid 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:

  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'

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:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

mosinvecommented, Nov 22, 2017

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.

tvldcommented, Nov 22, 2017

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 your App.vue:

<style lang="scss">

  @import "assets/_custom.scss";
  @import "~bootstrap/scss/bootstrap.scss";
  @import '~bootstrap-vue/dist/bootstrap-vue.css';

  body {
    margin: 0;
 // ...

The possible contents for this _custom.scss you will find in node_modules/bootstrap/scss/_variables.scss. Do not forget to apply npm install --save-dev node-sass sass-loader to use scss in Vue.

Read more comments on GitHub >

github_iconTop 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 |
Color wheel with Three Primary Colors (Ps): Red, Yellow, Blue; ... To find additive colors, start with black and change each pair to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found