# 2.7.0.beta5에서 색상 팔레트가 잘못 로드됩니다

**URL:** https://meta.discourse.org/t/color-palettes-loading-incorrectly-with-2-7-0-beta5/183223
**Category:** Bug
**Created:** [3월 14, 2021, 5:32오후 UTC](https://meta.discourse.org/t/color-palettes-loading-incorrectly-with-2-7-0-beta5/183223 "2021-03-14T17:32:30Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [3월 18, 2021, 3:39오전 UTC](https://meta.discourse.org/t/color-palettes-loading-incorrectly-with-2-7-0-beta5/183223/12 "2021-03-18T03:39:41Z")

</div>

네, @pmusaraj 님이 자세히 살펴본 결과 버그를 발견했습니다… 해당 문제는 여기에서 수정되었습니다:

> <https://github.com/discourse/discourse/pull/12423>
>
> Component SCSS compilation should use the current theme's SCSS color
> variables …as a fallback before using the default core colors.
> 
> This is mostly a backwards-compatibility fix, new themes and components
> should use CSS custom properties, which offer better support for on-the-fly
> color scheme changes (dark mode support, etc.).

…따라서 사이트를 다시 업데이트하면 문제가 해결될 것입니다.

만약 여러분이 직접 만든 테마 컴포넌트라면, SCSS 변수 대신 CSS 커스텀 프로퍼티를 사용하도록 업데이트하는 것을 권장합니다. 이렇게 하면 자동 다크 모드를 사용할 수 있고 색상 오버라이드도 더 쉬워집니다. 자세한 내용은 여기에서 확인하세요:

> [@다크 모드 자동 지원하도록 테마 및 플러그인 업데이트](https://meta.discourse.org/t/updating-themes-and-plugins-to-support-automatic-dark-mode/161595):
>
> 이전에는 Discourse의 모든 색상이 SCSS 변수로 저장되었습니다. [자동 다크 모드 색상 스킴 전환](https://meta.discourse.org/t/automatic-dark-mode-color-scheme-switching/161593)을 지원하기 위해 코어에서 이러한 색상을 커스텀 CSS 프로퍼티로 변환했습니다. 이제 인스펙터에서 전체 목록을 쉽게 확인할 수 있습니다: 테마와 플러그인은 스타일시트에서 사용된 모든 $color SCSS 변수를 --color CSS 프로퍼티 대응 항목으로 전환해야 합니다. 대부분의 경우 이는 단순한 찾기 및 치환 작업입니다: - background-color: $primary-very-low; + background-color: var(--primary-very-low); 그러나 테마나 플러그인이 SCSS 색상 함수를 사용하여 색상을 어둡게 하거나 밝게 하는 등 더 복잡한 색상 변형을 사용하는 경우가 있습니다. 이러한 경우 더 복잡한 리팩터링이 필요하며, 이를 위해 테마와 플러그인에서 색상 정의를 확장할 수 있는 기능을 추가했습니다. 플러그인에서 d…

---

_[View the full topic](https://meta.discourse.org/t/color-palettes-loading-incorrectly-with-2-7-0-beta5/183223)._
