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

color scale appears to be inverted #64

Closed
Nicolas-Labbe opened this issue Sep 2, 2024 · 2 comments
Closed

color scale appears to be inverted #64

Nicolas-Labbe opened this issue Sep 2, 2024 · 2 comments

Comments

@Nicolas-Labbe
Copy link

Screenshot_1

When using the text- or bg-, the color scale appears to be inverted. Specifically, lower numbers (e.g., text-red-50) should represent lighter colors, and higher numbers (e.g., text-red-800) should represent darker colors. However, in my case, the lower numbers are displaying darker colors, and the higher numbers are displaying lighter colors.

theron-wang added a commit that referenced this issue Sep 3, 2024
@theron-wang
Copy link
Owner

theron-wang commented Sep 3, 2024

@Nicolas-Labbe Thanks for reporting - I wasn't able to reproduce the issue in my editor (VS Community v17.1.1), but I changed some code which may fix it. Basically, VS tries to invert colors when dark mode is active, and a pixel needs to be added to the resulting image (in this case, the individual colors) to prevent this behavior. In your case, the pixel might have been added in an incorrect location, causing these inverted colors.

If this issue still isn't resolved (fix should be in 1.5.1), please let me know your VS version and what themes you are using, if any. If it's resolved, great - feel free to close this!

@Nicolas-Labbe
Copy link
Author

image

working like a charm! thanks you

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

2 participants