grass icon indicating copy to clipboard operation
grass copied to clipboard

Support new color functions

Open blfpd opened this issue 10 months ago • 2 comments

Grass can build Bulma 1.0.2 but not 1.0.3 because of they use color.channel() function, and the $space argument of color.adjust() and color.scale().

See the SASS documentation on breaking changes

Being fully complient may be hairy, but as a first step we could alias:

@use "sass:color";
$color: #c71585;

color.channel($color, "red", rgb);
/* to: */
color.red($color);

color.channel($color, "green", rgb);
/* to: */
color.green($color);

color.channel($color, "blue", rgb);
/* to: */
color.blue($color);

As for color.adjust(…, $space) maybe assume rgb for now, with a warning?

blfpd avatar Feb 04 '25 22:02 blfpd

The color crate may useful for this. It implements CSS Color 4 as a standalone crate.

nicoburns avatar Feb 17 '25 20:02 nicoburns

This also affects PicoCSS since 2.1.0.

ISSOtm avatar Aug 06 '25 14:08 ISSOtm