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

Extending multiple color plugins using the same color name causes incorrect colors. #6503

Closed
stefanfisk opened this issue Dec 14, 2021 · 2 comments · Fixed by #6546
Closed

Comments

@stefanfisk
Copy link
Contributor

What version of Tailwind CSS are you using?

3.0.2

What build tool (or framework if it abstracts the build tool) are you using?

Playground

What version of Node.js are you using?

n/a

What browser are you using?

n/a

What operating system are you using?

n/a

Reproduction URL

https://play.tailwindcss.com/v7qgUeljBK?file=config

Describe your issue

Extending multiple color plugins using the same color name causes incorrect colors.

See https://play.tailwindcss.com/v7qgUeljBK?file=config for a failing case.

It works when using the same name multiple times directly https://play.tailwindcss.com/qaS9VP8AHE?file=config

@EdwinFajardoBarrera
Copy link

EdwinFajardoBarrera commented Dec 14, 2021

I would like to work on this, can you assign to me?

@thecrypticace
Copy link
Contributor

I've worked on a fix but want to do some testing before we merge & release it. In the mean time you should be able to work around this problem by making colors a function that returns an object instead of just a plain object: https://play.tailwindcss.com/QmDTUap8m2?file=config

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 a pull request may close this issue.

3 participants