]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update the custom Sass import docs (#34573)
authorMark Otto <markd.otto@gmail.com>
Mon, 26 Jul 2021 15:41:43 +0000 (10:41 -0500)
committerGitHub <noreply@github.com>
Mon, 26 Jul 2021 15:41:43 +0000 (18:41 +0300)
Now includes mentino of the two utilities stylesheets, plus how and why to include the API stylesheet last

Fixes #34397

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
site/content/docs/5.0/customize/sass.md

index 4039bd67cc150ad386e4c22373f1ff2f37e8b52d..c99b6142cb65550e56f50c4e911be2f588dfc550 100644 (file)
@@ -61,15 +61,20 @@ In your `custom.scss`, you'll import Bootstrap's source Sass files. You have two
 @import "../node_modules/bootstrap/scss/variables";
 @import "../node_modules/bootstrap/scss/mixins";
 
-// 4. Include any optional Bootstrap components as you like
+// 4. Include any optional Bootstrap CSS as needed
+@import "../node_modules/bootstrap/utilities";
 @import "../node_modules/bootstrap/scss/root";
 @import "../node_modules/bootstrap/scss/reboot";
 @import "../node_modules/bootstrap/scss/type";
 @import "../node_modules/bootstrap/scss/images";
 @import "../node_modules/bootstrap/scss/containers";
 @import "../node_modules/bootstrap/scss/grid";
+@import "../node_modules/bootstrap/helpers";
 
-// 5. Add additional custom code here
+// 5. Optionally include utilities API last to generate classes based on the Sass map in `_utililies.scss`
+@import "../node_modules/bootstrap/utilities/api";
+
+// 6. Add additional custom code here
 ```
 
 With that setup in place, you can begin to modify any of the Sass variables and maps in your `custom.scss`. You can also start to add parts of Bootstrap under the `// Optional` section as needed. We suggest using the full import stack from our `bootstrap.scss` file as your starting point.