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

TW 3 - DEFAULT on text and background colors #6138

Closed
mgibas opened this issue Nov 19, 2021 · 5 comments
Closed

TW 3 - DEFAULT on text and background colors #6138

mgibas opened this issue Nov 19, 2021 · 5 comments

Comments

@mgibas
Copy link

mgibas commented Nov 19, 2021

What version of Tailwind CSS are you using?

v3.0.0-alpha.2

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

Tailwind play

What version of Node.js are you using?

Tailwind play

What browser are you using?

Chrome, Safari

What operating system are you using?

macOS

Reproduction URL
https://play.tailwindcss.com/s4D4akwztn

Describe your issue

Setting DEFAULT on text/background colors seems to override each other WHEN same color is defined under colors. Not sure that description is clear but in the repro you can clearly see that background should have a light variant of disabled colors, but its dark instead.

@adamwathan
Copy link
Member

Ah yeah definitely looks like a bug! Here's another demo that made it more obvious to me:

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

Seems like we're mutating a reference somewhere that should be on a copy.

@florianbouvot
Copy link
Contributor

I discover the DEFAULT setting, is there more info in the documentation about that?

@mgibas
Copy link
Author

mgibas commented Nov 21, 2021

@AdrienLemaire
Copy link

Looks like DEFAULT got removed from the doc, strange that it wasn't mentioned in release notes and the upgrade guide.

@thecrypticace
Copy link
Contributor

Just took a look and this is no longer a problem as of Tailwind v3.0.7. It was resolved here: #6546

Thanks for the report!

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

5 participants