# SCSS variable theme issue after update

**URL:** https://meta.discourse.org/t/scss-variable-theme-issue-after-update/103836
**Category:** Support
**Created:** [December 9, 2018, 3:06pm UTC](https://meta.discourse.org/t/scss-variable-theme-issue-after-update/103836 "2018-12-09T15:06:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![artur-shaik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/artur-shaik/32/99836_2.png) [@artur-shaik](https://meta.discourse.org/u/artur-shaik)
#### Post date: [December 9, 2018, 3:06pm UTC](https://meta.discourse.org/t/scss-variable-theme-issue-after-update/103836/1 "2018-12-09T15:06:12Z")

</div>

Just did internal update, and then rebuild with `launcher`.

And now have this stacktrace on screen instead of my site:

```plaintext
Error: argument `$color` of `red($color)` must be a color
Backtrace:
app/assets/stylesheets/common/foundation/variables.scss:145, in function `red`
app/assets/stylesheets/common/foundation/variables.scss:145, in function `dc-color-brightness`
app/assets/stylesheets/common/foundation/variables.scss:180, in function `dark-light-diff`
app/assets/stylesheets/common/foundation/variables.scss:207 on line 145 of 
app/assets/stylesheets/common/foundation/variables.scss
(red($color) * 0.299) + (green($color) * 0.587) + (blue($color) * 0.114)\

```

Where can be issue?

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [December 9, 2018, 10:24pm UTC](https://meta.discourse.org/t/scss-variable-theme-issue-after-update/103836/2 "2018-12-09T22:24:21Z")

</div>

I did a few upgrades last night, so even though it mentions this file : [discourse/app/assets/stylesheets/common/foundation/variables.scss at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/app/assets/stylesheets/common/foundation/variables.scss)

I doubt it’s an issue with core.

Could you try the [safe mode](https://meta.discourse.org/t/53504?silent=true) in your forum [yourforum.com/safe-mode](http://yourforum.com/safe-mode) and disable one thing at a time?

> ![image](https://global.discourse-cdn.com/meta/original/3X/3/5/355a93c02b20b36df07f68c8fd7e687476a08cb6.png)

I’m not an expert but it could help you find the source of the issue

---

<div class="post-metadata">

### Author: ![artur-shaik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/artur-shaik/32/99836_2.png) [@artur-shaik](https://meta.discourse.org/u/artur-shaik)
#### Post date: [December 10, 2018, 1:42am UTC](https://meta.discourse.org/t/scss-variable-theme-issue-after-update/103836/3 "2018-12-10T01:42:50Z")

</div>

Yeah, I already tryed it. But have the same issue on `safe-mode` page, too.  
Can I somehow disable my theme?

---

<div class="post-metadata">

### Author: ![artur-shaik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/artur-shaik/32/99836_2.png) [@artur-shaik](https://meta.discourse.org/u/artur-shaik)
#### Post date: [December 10, 2018, 4:05am UTC](https://meta.discourse.org/t/scss-variable-theme-issue-after-update/103836/4 "2018-12-10T04:05:54Z")

</div>

Strange, but it works only if I choose “Simple Dark” colorscheme. Any other give me this issue. Even if I copy “Simple Dark” scheme.

---

<div class="post-metadata">

### Author: ![artur-shaik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/artur-shaik/32/99836_2.png) [@artur-shaik](https://meta.discourse.org/u/artur-shaik)
#### Post date: [February 22, 2019, 3:06pm UTC](https://meta.discourse.org/t/scss-variable-theme-issue-after-update/103836/5 "2019-02-22T15:06:06Z")

</div>

Seems like it was fixed recently. Thanks.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 24, 2019, 3:06pm UTC](https://meta.discourse.org/t/scss-variable-theme-issue-after-update/103836/6 "2019-03-24T15:06:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
