sass / dart-sass

The reference implementation of Sass, written in Dart.
https://sass-lang.com/dart-sass
MIT License
3.97k stars 360 forks source link

Q&A: How to prevent color names being transformed to hex values #2163

Closed LordSimal closed 9 months ago

LordSimal commented 9 months ago

Hey all,

in the scenario of the -apple-pay-button-style CSS attribute, it is necessary that the value is actually black and not #000 as you can see here

Is this possible with the current 1.70 dart-sass package?

ntkme commented 9 months ago
.apple-pay-button-black {
    -apple-pay-button-style: unquote("black");
}
LordSimal commented 9 months ago

Thanks you for your quick response!

My problem seems to be related to laravel mix or something it uses since this unfortunately doesn't work in my setup. But of course this doesn't concern you 😉