# Maybe an scss editor limitation?

**URL:** <https://forum.bootstrapstudio.io/t/maybe-an-scss-editor-limitation/7797>\
**Category:** Bug Reports\
**Created:** [September 11, 2021, 4:01pm UTC](https://forum.bootstrapstudio.io/t/maybe-an-scss-editor-limitation/7797 "2021-09-11T16:01:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wizzy](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/wizzy/32/1459_2.png) [@Wizzy](https://forum.bootstrapstudio.io/u/Wizzy)\
**Post date:** [September 11, 2021, 4:01pm UTC](https://forum.bootstrapstudio.io/t/maybe-an-scss-editor-limitation/7797/1 "2021-09-11T16:01:57Z")

</div>

Hi,  
I imported the bootstrap scss and I created my custom.scss.  
In my custom.scss file I want to assign this

```auto
$headings-font-weight: $font-weight-bold;

```

but I got this error: “Undefined variable”

It works only in this way

```auto
$headings-font-weight: 700;

```

Am I wrong some setting?

---

<div class="post-metadata">

**Author:** ![jo-r](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/jo-r/32/1926_2.png) [@jo-r](https://forum.bootstrapstudio.io/u/jo-r)\
**Post date:** [September 11, 2021, 5:00pm UTC](https://forum.bootstrapstudio.io/t/maybe-an-scss-editor-limitation/7797/2 "2021-09-11T17:00:13Z")

</div>

Is the variable defined? Your $font-weight-bold needs to be defined before it can be used.

Also, I don’t think you need to import the Bootstrap SCSS file, unless you are just wanting to have access to it for building of course since we cannot always see the “full” CSS and SCSS directly in BSS I’m pretty sure they are already included? Someone correct me if I’m wrong here as I don’t do a lot with it yet.

---

<div class="post-metadata">

**Author:** ![Wizzy](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/wizzy/32/1459_2.png) [@Wizzy](https://forum.bootstrapstudio.io/u/Wizzy)\
**Post date:** [September 11, 2021, 6:02pm UTC](https://forum.bootstrapstudio.io/t/maybe-an-scss-editor-limitation/7797/3 "2021-09-11T18:02:37Z")

</div>

It should be defined because I imported all the bootstrap.scss file

```auto
@import "./Bootstrap-SCSS/bootstrap.scss";

```

I’ll try without have bootstrap scss folder imported, but I do not think it can work without.

---

<div class="post-metadata">

**Author:** ![a.sassermann](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/a.sassermann/32/1527_2.png) [@a.sassermann](https://forum.bootstrapstudio.io/u/a.sassermann)\
**Post date:** [September 15, 2021, 7:56pm UTC](https://forum.bootstrapstudio.io/t/maybe-an-scss-editor-limitation/7797/4 "2021-09-15T19:56:45Z")

</div>

Is think that bootstrap is already compiled and therefore you don’t have the compiletime variables available in your scss files. This may also be the reason why you can’t easily change the themes.

---

<div class="post-metadata">

**Author:** ![dickykreedz](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/dickykreedz/32/1627_2.png) [@dickykreedz](https://forum.bootstrapstudio.io/u/dickykreedz)\
**Post date:** [September 16, 2021, 8:59am UTC](https://forum.bootstrapstudio.io/t/maybe-an-scss-editor-limitation/7797/5 "2021-09-16T08:59:38Z")

</div>

That what are you trying to do is incredible bad practice, don’t do that. Assigning existing variable to a new variable doesn’t make any kind of sense at all.

---

<div class="post-metadata">

**Author:** ![Wizzy](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/wizzy/32/1459_2.png) [@Wizzy](https://forum.bootstrapstudio.io/u/Wizzy)\
**Post date:** [September 16, 2021, 11:39am UTC](https://forum.bootstrapstudio.io/t/maybe-an-scss-editor-limitation/7797/6 "2021-09-16T11:39:23Z")

</div>

It is in bootstrap documentation…

> **[Maps and loops - Sass](https://getbootstrap.com/docs/5.1/customize/sass/#maps-and-loops)**
>
> Utilize our source Sass files to take advantage of variables, maps, mixins, and more. | Utilize our source Sass files to take advantage of variables, maps, mixins, and functions to help you build faster and customize your project.
