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

New opacity shortcut not working with custom colors #4716

Closed
lilnoes opened this issue Jun 19, 2021 · 1 comment
Closed

New opacity shortcut not working with custom colors #4716

lilnoes opened this issue Jun 19, 2021 · 1 comment

Comments

@lilnoes
Copy link

lilnoes commented Jun 19, 2021

What version of Tailwind CSS are you using?

v2.2.2

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

tailwindcss cli

What version of Node.js are you using?

v16.3.0

What browser are you using?

Chrome

What operating system are you using?

Ubuntu 20

Reproduction repository

https://github.com/lilnoes/tailwindbug

Describe your issue

tailwindcss v2.2 introduced a new way to add opacity to color utilities like
bg-white/20, but "bg-[wheat]/20" is not working, background color is not changing. I expected "bg-[wheat]/20" to work like "bg-[wheat] bg-opacity-20"

@adamwathan
Copy link
Member

Hey, should be fixed here!

#4723

Can test it out using npm install tailwindcss@insiders, fix will land in v3.

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