- Issue created by @milos.kroulik
The ideal way would be to use
@use
instead of@import
for sure but Bootstrap is not yet supporting that, hopefully in bootstrap6.x
on the other hand
_init.scss
contains the following:@import "~bootstrap/scss/functions"; // Custom overrides @import "base/variables"; // Required @import "~bootstrap/scss/variables"; @import "~bootstrap/scss/variables-dark"; @import "~bootstrap/scss/maps"; @import "~bootstrap/scss/utilities"; @import "~bootstrap/scss/mixins"; @import "base/mixins"; @import "base/utilities"; // Optional if using rfs() @import "~bootstrap/scss/vendor/rfs";
So that's not with
_elements.scss
or_typography.scss
The main reason we are including init, is to make sure we have access to our variables, mixins and so on. It might not be ideal due to lack of
@use
but it can be just fine as is for now, you can always remove that manually.Unless you have a better suggestion, I think it is safe to keep it as is.
- 🇨🇿Czech Republic milos.kroulik
Perhaps we could import custom functions in
_init-scss
directly below@import "~bootstrap/scss/functions";
? Looking at https://getbootstrap.com/docs/5.3/customize/sass/#importing I believe it should be fine. Helpres probably aren't needed, after all. I suspect we should update the init, just noticed that we are not adding the
root
not sure if we can decide for each project what's needed or not. The idea is to ship with the features, people can opt-out and comment out what they don't need.
- Status changed to Fixed
2 months ago 8:15am 19 September 2024 Automatically closed - issue fixed for 2 weeks with no activity.