i tried to make a condition on my component with sass @if and @else which is if background == var(--bg-danger)
color return is white like this, but it just read white result not else condition
@mixin text-color
@if (background: var(--bg-danger))
color: var(--text-white)
@else
color: var(--text-dark)
hope you guys give me a solution, Thanks :)