Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new color functions #105

Open
blfpd opened this issue Feb 4, 2025 · 0 comments
Open

Support new color functions #105

blfpd opened this issue Feb 4, 2025 · 0 comments

Comments

@blfpd
Copy link

blfpd commented Feb 4, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant