-
Notifications
You must be signed in to change notification settings - Fork 6
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
rgb(from <color> R G B / A) syntax seems losing original alpha channel #7
Comments
Thank you for this issue! Nice catch. But I don't think there is good way to fix this? I think we should probably: a. revert this change? What do you think? |
Maybe just revert those codes where the colors are in rgba format. I checked Mantine Default CSS variables list
Of course this solution still cannot prevent users from defining custom color variables in |
This should be fixed in tailwind v4 and sdk |
Environment
@mantine/core
: 7.14.0tailwind-preset-mantine
: 1.3.0tailwindcss
: 3.4.14Description
After upgrading to version 1.3.0,
tailwind-preset-mantine
brings new features, which is support alpha-value. So we can use syntax liketext-gray-700/50
to get the color with a alpha value. The principle of this feature is to wrap css color variables througth syntaxrgb(from <color> R G B / A)
. This change seems to have caused a bug where the alpha channel in original css variable color was lost.You can see the comparison between the two pictures below
Using

rgb(from <color> R G B / A)
syntax. The color calculation result iscolor(srgb 0.133333 0.545098 0.901961)
Using css variables

The text was updated successfully, but these errors were encountered: