Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Focus Ring variables aren't compiled #131

Closed
probwebdev opened this issue Mar 21, 2021 · 2 comments
Closed

Focus Ring variables aren't compiled #131

probwebdev opened this issue Mar 21, 2021 · 2 comments

Comments

@probwebdev
Copy link

What version of @tailwindcss/jit are you using?

v0.1.5

What version of Node.js are you using?

v14.16.0

What browser are you using?

Firefox, Chrome

What operating system are you using?

elementaryOS(Linux)

Reproduction repository

https://github.com/robertgorbul/detectify-coding-challenge/tree/feature/tailwind-jit

After switching to @tailwindcss/jit on Next.js, TailwindCSS project there're missing -tw-ring-* variables in dev mode (without purgecss)
Screenshot from 2021-03-21 17-16-34

@adamwathan
Copy link
Member

Hey! Sorry I can't really figure out what you mean, the repository you provided is way too big/complex for me to get set up and find the issue, but when I created my own project to test this out with Next, the focus:ring utilities work as I'd expect. I'm not sure what I should be looking at in your screenshot — it looks like all the classes are there with the correct CSS rules.

image

Going to close this because it appears to work as expected, but if this is still an issue for you please create a new issue that includes an isolated reproduction rather than a full project, as well as a complete description of the problem so I better understand what's being reported. I'm not sure what you mean by missing variables as the variables look like they are present in your screenshot. Sorry if I'm missing something obvious 🤦

@probwebdev
Copy link
Author

probwebdev commented Mar 22, 2021

Thanks for your response. I will try to investigate more and get back to you if I find anything helpful.
Basically when I'm switching to JIT those variables are missing for some reason:
image
In my first screenshot you can see that Firefox is greying them out and warns that those variables aren't set.
EDIT:
Found out the issue. I didn't include @import 'tailwindcss/base';. Oh my 🤦‍♂️️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants