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

Feature Request: Add Option to Avoid color-mix #9

Open
GreenBabyBorn opened this issue Oct 24, 2024 · 0 comments
Open

Feature Request: Add Option to Avoid color-mix #9

GreenBabyBorn opened this issue Oct 24, 2024 · 0 comments

Comments

@GreenBabyBorn
Copy link

Currently, tailwindcss-primeui uses the color-mix() function to calculate colors, like in the following code:

const convert = (color) => {
    return `color-mix(in srgb, ${color} calc(100% * <alpha-value>), transparent)`;
};

While this approach allows for more flexible color management, color-mix() has limited browser support, which leads to inconsistencies across different environments.

Suggestion:
Could we introduce a configuration option that allows users to opt out of using color-mix()? This would be beneficial for projects that need broader browser compatibility, particularly on older browsers or platforms where color-mix() is not well supported.

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