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

Show color decorators when utility has an opacity modifier in v4 #969

Merged
merged 5 commits into from
May 29, 2024

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented May 17, 2024

We use color-mix to apply alpha values to colors — because of this we don't show color decorators for any utility with an opacity modifier in a v4 project.

We remove the wrapping color-mix and apply the alpha value to the color so we end up parsing a valid color string into their separate r, g, b, and a channels.

Also made sure that gradient utilities show their color swatches — they were being excluded because we were looking at declarations inside @property and then throwing stuff out.

@thecrypticace thecrypticace merged commit bbd7b5b into master May 29, 2024
@thecrypticace thecrypticace deleted the feat/remove-color-mix branch May 29, 2024 13:21
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

Successfully merging this pull request may close these issues.

None yet

2 participants