Skip to content

Show pixel values for v4 spacing #1089

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

Closed
rijk opened this issue Nov 12, 2024 · 4 comments · Fixed by #1092
Closed

Show pixel values for v4 spacing #1089

rijk opened this issue Nov 12, 2024 · 4 comments · Fixed by #1092
Assignees

Comments

@rijk
Copy link

rijk commented Nov 12, 2024

In Tailwind v4, the spacing scale is now tweakable using a --spacing variable.

image

This is cool but a downside is the intellisense no longer shows the pixel values:

image

instead of:

image

It would be nice if the extension could calculate these.

What version of VS Code are you using?

v1.94.2

What version of Tailwind CSS IntelliSense are you using?

For example: v0.12.13

What version of Tailwind CSS are you using?

For example: v4.0.0-alpha.33

What package manager are you using?

pnpgm

What operating system are you using?

macOS

@thecrypticace
Copy link
Contributor

Yep, this one is on my list to fix up.

@thecrypticace
Copy link
Contributor

I've made changes for this so things should be a lot better. The changes will go into the pre-release for now but I plan on tagging a proper stable release either tomorrow or Friday.

@rijk
Copy link
Author

rijk commented Dec 11, 2024

Awesome!

@lvzhenbo
Copy link

When I don't configure any variables, the problem still occurs and the plugin doesn't show the default values
image
image
image
image
@thecrypticace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants