다크/라이트 모드 전환 기능이 이제 코어에서 사용 가능

예를 들어, Discourse를 다크 모드로 전환하면 일부 버튼 텍스트가 여전히 검은색으로 남아 있습니다. 텍스트가 흰색으로 표시되는 것이 더 합리적이라고 생각합니다. 하지만 이 문제를 해결하기 위해 CSS를 활용한 해결책을 찾았고, 잘 작동하는 것 같습니다.

$button-text-color: dark-light-choose(#ffffff, $primary);

:root {
  --button-text-color: #{$button-text-color};
}

.btn-primary {
  color: var(--button-text-color) !important;
  
  .d-icon {
    color: var(--button-text-color) !important;
  }
}
3개의 좋아요