# SCSSのcolorプロパティの変数に関する頭痛の種

**URL:** <https://meta.discourse.org/t/scss-color-property-variable-headaches/278711>\
**Category:** Development\
**Created:** [2023 年 9 月 12 日午後 12:37 UTC](https://meta.discourse.org/t/scss-color-property-variable-headaches/278711 "2023-09-12T12:37:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2023 年 9 月 12 日午後 12:37 UTC](https://meta.discourse.org/t/scss-color-property-variable-headaches/278711/1 "2023-09-12T12:37:00Z")

</div>

コードに詳しい方、このコードは `settings.yaml` の内容に関わらず常にエラーを発生させるように見えるのはなぜでしょうか？

```scss
.d-header {
    background: rgba($header_color, $transparency);
}

```

しかし、こちらのエラーは発生しません。

```scss
.d-header {
    background: rgba(darkslategrey, 0.5);
}

```

コードを `$header_color` を `rgb(47, 79, 79)` 形式で使用するように切り替えても、常に `$color` 要素に関連するエラーが発生します。 🤔

---

_[View the full topic](https://meta.discourse.org/t/scss-color-property-variable-headaches/278711)._
