How to change the default background color white to something else in twitter bootstrap

后端 未结 9 2037
再見小時候
再見小時候 2021-01-31 15:47

I am building a web application where I have set my default color to navy blue using css. But when i added the twitter bootstrap css\'s in my page I did not find my navy blue co

9条回答
  •  抹茶落季
    2021-01-31 16:20

    Bootstrap 4 provides standard methods for this, fully described here: https://getbootstrap.com/docs/4.3/getting-started/theming

    Eg. you can override defaults simply by setting variables in the SASS file, where you import bootstrap. An example from the docs (which also answers the question):

    // Your variable overrides
    $body-bg: #000;
    $body-color: #111;
    
    // Bootstrap and its default variables
    @import "../node_modules/bootstrap/scss/bootstrap";
    

提交回复
热议问题