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 error when using theme() in css #8824

Closed
VarinderS opened this issue Jul 11, 2022 · 1 comment · Fixed by #8831
Closed

Tailwind error when using theme() in css #8824

VarinderS opened this issue Jul 11, 2022 · 1 comment · Fixed by #8831
Assignees

Comments

@VarinderS
Copy link

Adding following styles to css leads to an error:

.test {
  --shadow: theme("boxShadow.glow-8/28/20");
  box-shadow: var(---shadow);
}

error:

'boxShadow.glow-8/28' does not exist in your theme config. Did you mean 'boxShadow.glow-8/28/20'?

What version of Tailwind CSS are you using?

v3.1.5

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

NextJS 12.1.0

What version of Node.js are you using?

v16.2.0

What browser are you using?

N/A

What operating system are you using?

Windows

Reproduction URL

https://play.tailwindcss.com/xlki3pMe9n?file=css

Describe your issue

Adding styles that contain more than one forward slash / returns an error when it's used via theme() function, for example: theme("boxShadow.glow-6/30/40")

@thecrypticace
Copy link
Contributor

Hey, thanks for the report. I've fixed this and will be tagging a release today with this fix!

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