How do I pull in scss variables using @use from Bootstrap 5? #32458
-
Hi, I have a simple stylesheet for a component in my site and I'm trying to pull in the My stylesheet looks like: @use "~bootstrap/scss/variables";
.playerBar {
position: fixed;
left: 0px;
bottom: 0px;
height: 90px;
min-width: 620px;
width: 100%;
z-index: variables.$zindex-fixed;
background: #1e1e1e;
} I'm getting the following error:
This is using Bootstrap 5.0.0-beta1 with sass 1.30.0. Please let me know if I can provide more info to help diagnose! |
Beta Was this translation helpful? Give feedback.
Answered by
florianlacreuse
Dec 14, 2020
Replies: 1 comment 5 replies
-
You also need to import _functions.scss: |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
jgeurts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You also need to import _functions.scss:
https://getbootstrap.com/docs/5.0/customize/sass/#importing