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

cqw in arbitrary values #10080

Closed
maylogger opened this issue Dec 14, 2022 · 2 comments · Fixed by #10100
Closed

cqw in arbitrary values #10080

maylogger opened this issue Dec 14, 2022 · 2 comments · Fixed by #10100
Assignees

Comments

@maylogger
Copy link

Hi

I use Tailwind CSS v3.2.4

the container query is very popular and I am trying something.

I found this problem: if I use cqw units in arbitrary values, they will turn cqw into color.

Example:

text-[4cqw]

Result:

.text-\[4cqw\] {
  color: 4cqw;
}
@thecrypticace
Copy link
Contributor

We should definitely adjust things to detect this automatically but you can work round this issue today by using arbitrary value types: text-[length:4cqw]

@thecrypticace
Copy link
Contributor

Hey, I've merged in the fix for this (as well as added a handful other new length units that we were missing).

This will be available in the next release — but in the meantime you can test it using our insiders build which should be published in the next few minutes: npm install tailwindcss@insiders.

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.

2 participants