# Sass variables are not being read in code

**URL:** <https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588>\
**Category:** Development\
**Created:** [February 28, 2023, 11:52pm UTC](https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588 "2023-02-28T23:52:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)\
**Post date:** [February 28, 2023, 11:52pm UTC](https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588/1 "2023-02-28T23:52:09Z")

</div>

Hello,

When adding more settings to my theme, it started to become apparent Discourse was ignoring them.

Code:

```scss

#main-outlet-wrapper .sidebar-wrapper {
  @if $Full_Width == true {
    left: 10px;
  }
}

@if $Full_Width == true {
  :root {
    --d-max-width: 95%;
  }
  #main-outlet {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    margin-bottom: 50px;
  }
}

```

This code doesn’t do anything, no matter the value of the setting.

However, if I remove `== true`, it’ll always be enabled no matter what.

This also seems to be the issue with any other bool? I read the sass docs and my code matches and it still does not work.

```scss

div#main-outlet.wrap.not-found-container,
#main-outlet-wrapper {

  #main-outlet,
  .sidebar-wrapper {
    @if $Is_Background_Blurred {
      backdrop-filter: blur(3rem) !important;
      background-color: #0a0a0aa6 !important;

      input[type],
      .select-kit.combo-box .select-kit-header,
      .d-editor-textarea-wrapper,
      div.ac-wrap {
        background: transparent;
      }
    }

    @else {
      backdrop-filter: none !important;
      background-color: var(--secondary) !important;

      input[type],
      .select-kit.combo-box .select-kit-header,
      .d-editor-textarea-wrapper,
      div.ac-wrap {
        background: transparent;
      }
    }
  }
}

```

Thanks for any help.

---

_[View the full topic](https://meta.discourse.org/t/sass-variables-are-not-being-read-in-code/256588)._
