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

Monochrome color special rule #3

Open
silverwind opened this issue Apr 10, 2020 · 0 comments
Open

Monochrome color special rule #3

silverwind opened this issue Apr 10, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@silverwind
Copy link
Owner

I imagine it would be nice to have a special rule that processes monochrome colors and either outputs a pure inversion or a hue-saturation-modified variant.

{
  "$color: $monochrome": "$invert", // pure inversion
  "$color: $monochrome": "$hue(220) $saturate(50)", // shift color to blue
  "$background: $monochrome": "$invert", // pure inversion
  "$background: $monochrome": "$hue(220) $saturate(50)", // shift color to blue
}

If another user rule is present that matches the same value, the user rule should have precedence.

@silverwind silverwind added the enhancement New feature or request label Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant