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 used for fill #52

Closed
xabatar opened this issue May 4, 2024 · 3 comments
Closed

color used for fill #52

xabatar opened this issue May 4, 2024 · 3 comments

Comments

@xabatar
Copy link

xabatar commented May 4, 2024

Without the plugin we can use fill-color in Tailwind and the system will generate css like:
.fill-color { fill: #b9d7fd; }
But using the plugin for the same color will result in the following css entry:
.fill-color { fill: color-mix(in srgb,var(--colors-color),#0000 0); }
where the --colors-color variable is #b9d7fd;
The resulting color is a mix between black and the variable color, which is not the expected result.
It should output the simple color as the fill and not use color-mix. Or if it can't be done without color mix, then the mixing color should be white and not black.

@crswll
Copy link
Owner

crswll commented May 4, 2024

That looks like it's being minified by something and that's causing issues. Do you know what it's being minified by?

https://play.tailwindcss.com/xBaMPVhPtJ
Screenshot 2024-05-04 at 9 44 58 AM

@crswll
Copy link
Owner

crswll commented May 4, 2024

I created #53 to see if that helps with the minification issue (if it is a minification issue). Want to make sure here first. Can you try npm install crswll/tailwindcss-theme-swapper#simplify-transparency and let me know if that helps the situation?

@xabatar
Copy link
Author

xabatar commented May 4, 2024

Thanks for your help.
You are right. Is a minifying issue.
I use VS Code with Tailwind installed with npm, and run the task with:
"npx tailwindcss -i ./pricing/Content/css/dex-style-source.css -o ./pricing/Content/css/style.css --watch --minify"

I took out the minifying command the issue is gone.

Had this extension for minify: https://marketplace.visualstudio.com/items?itemName=olback.es6-css-minify. I seems is not maintained. Will look for a different solution.

@crswll crswll closed this as completed May 4, 2024
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