Skip to content

Instantly share code, notes, and snippets.

@Klooven
Last active August 1, 2024 06:26
Show Gist options
  • Save Klooven/39e0143d63b5f4efca34c994e94770fa to your computer and use it in GitHub Desktop.
Save Klooven/39e0143d63b5f4efca34c994e94770fa to your computer and use it in GitHub Desktop.
Customize Bootstrap 4
/*! You can insert a comment here. It will be included in the CSS. */
//Custom SCSS can be placed in here, for example
//Required
@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/mixins";
//Components - remove any that you don't need
@import "bootstrap/scss/root";
@import "bootstrap/scss/reboot";
@import "bootstrap/scss/type";
@import "bootstrap/scss/images";
@import "bootstrap/scss/code";
@import "bootstrap/scss/grid";
@import "bootstrap/scss/tables";
@import "bootstrap/scss/forms";
@import "bootstrap/scss/buttons";
@import "bootstrap/scss/transitions";
@import "bootstrap/scss/dropdown";
@import "bootstrap/scss/button-group";
@import "bootstrap/scss/input-group";
@import "bootstrap/scss/custom-forms";
@import "bootstrap/scss/nav";
@import "bootstrap/scss/navbar";
@import "bootstrap/scss/card";
@import "bootstrap/scss/breadcrumb";
@import "bootstrap/scss/pagination";
@import "bootstrap/scss/badge";
@import "bootstrap/scss/jumbotron";
@import "bootstrap/scss/alert";
@import "bootstrap/scss/progress";
@import "bootstrap/scss/media";
@import "bootstrap/scss/list-group";
@import "bootstrap/scss/close";
@import "bootstrap/scss/toasts";
@import "bootstrap/scss/modal";
@import "bootstrap/scss/tooltip";
@import "bootstrap/scss/popover";
@import "bootstrap/scss/carousel";
@import "bootstrap/scss/spinners";
@import "bootstrap/scss/utilities";
@import "bootstrap/scss/print";
@Klooven
Copy link
Author

Klooven commented Jan 21, 2021

Spinner and toast components are now added to the SCSS - everything should now be up to date (Bootstrap 4.6.0)! 🎊

@gusbemacbe
Copy link

@Klooven

The container and max-width breakpoints components are not listed.

@Klooven
Copy link
Author

Klooven commented May 21, 2021

@gusbemacbe

Are you using Bootstrap 5? Everything should be included and up-to date for Bootstrap 4 in this Gist. I'll probably create a separate Gist for Bootstrap 5 at some moment. I can add a link to it when I've created it.

@gusbemacbe
Copy link

Yes, I do, @Klooven, I want to use max-width instead of min-width for both breakpoint and container.

@Klooven
Copy link
Author

Klooven commented May 22, 2021

@gusbemacbe

Ok, that explains it. I'll create a similar Gist for Bootstrap 5 in the coming weeks. In the meantime, feel free to look at Bootstrap's docs or repo as a reference: https://github.com/twbs/bootstrap/blob/v5.0.1/scss/bootstrap.scss 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment