Bootstrap 4 Theme Customization (with Sass) | BOOTSTRAP 4 TUTORIAL

Academind · 220K views · 2018 · 17:12

Open on YouTube

Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when they need a walkthrough of changing Bootstrap's default theme through Sass, including setting up compilation and adding custom breakpoints.

Recommended by 2 people across 2 different months, 2020 to 2021.

What it is

A 17-minute Bootstrap 4 tutorial from Academind on customizing themes, colors and sizes by overriding Sass variables before importing Bootstrap's source files. It is part of the channel's Bootstrap 4 series and links to the official theming docs.

What people said

Recommends Sameer · 2021-05 · Stack Overflow · on “How to use CSS variables with Bootstrap 5?”

After inspecting the badge it looks like bootstrap doesn't apply background color using a variable. So you can't override CSS by changing bootstrap CSS variables, I think they added CSS variables to allow us to style our own elements. One way would be to override manually like .bg-primary { background-color: var(--bs-primary) !important; } But if you would use SASS, then it's easy to change the theme and colors. How to change bootstrap default theme using SASS [this video] Official Documentation [LINK] Update: Someone already requested this (See here) [LINK] , but the bootstrap team doesn't want to implement this for various reasons like support for old browsers, No plans to rearchitect all of th

Recommends Ross Symonds · 2021-08 · Stack Overflow · on “Add XXXL to Bootstrap”

I watched this tutorial [this video] on customising the default Boostrap code and read this post Adding XXL & XXXL breakpoints. What is container-max-widths? [LINK] . Unfortunately I can not get Google Chrome or Firefox to recognise XXL or XXXL. [LINK] main.scss [LINK] $grid-breakpoints: ( xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1440px, xxxl: 1600px ); $container-max-widths: ( sm: 540px, md: 720px, lg: 960px, xl: 1140px, xxl: 1380px, xxxl: 1560px ); @import "node_modules/bootstrap/scss/bootstrap"; main.css main.css is 9438 lines long so I have pasted it here - [LINK] .

Cites LeBron James · 2020-01 · Stack Overflow · on “Using Visual Studio 2019 having issues compiling SASS”

Forgive my inexperience, this is extremely new to me. Basically trying to customise themes in Bootstrap 4 (4.4.1) using SASS and when following along a tutorial for reference, it appears to not do anything at all when compiling the scss into the main.css file where you should have all of the bootstrap package, which should have been compiled. I am using Visual Studio 2019, rather than VS Code (which most of my searching, everyone seems to be using). I have the bootstrap source files included, but it is the SASS Compilation which is not providing anything into the compiled main.css. I have been following the following : [this video] for reference.