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

Tailwind incorrect generate CSS variables as minus sign #8079

Closed
bakura10 opened this issue Apr 10, 2022 · 1 comment · Fixed by #8091
Closed

Tailwind incorrect generate CSS variables as minus sign #8079

bakura10 opened this issue Apr 10, 2022 · 1 comment · Fixed by #8091
Assignees

Comments

@bakura10
Copy link
Contributor

What version of Tailwind CSS are you using?

3.0.23

Hi,

I am not sure if this issue is linked to the other problems I have reported in #7874 and #7884 as the output issue seems different. I am therefore opening a new issue.

If I use the following CSS:

.prose h1 {
    @apply tw-text-[length:var(--heading-h1-font-size)];
  }

Tailwind will generate the following code:

.prose h1 {
  font-size: var(--heading-h1 - font-size);
}

For some reason the dash after the -h1 part is considered as a minus (maybe due to the number ?). In all cases this seems like a bug.

Thanks :)

@adamwathan
Copy link
Member

Definitely seems like a bug and I think you’re right it’s probably because of the number! Will try to look at this this week 👍🏻

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