Skip to content

fix(preset-wind4): add spacing property support and related CSS variables#4968

Closed
Simon-He95 wants to merge 1 commit intounocss:mainfrom
Simon-He95:preset-wind4-spacing
Closed

fix(preset-wind4): add spacing property support and related CSS variables#4968
Simon-He95 wants to merge 1 commit intounocss:mainfrom
Simon-He95:preset-wind4-spacing

Conversation

@Simon-He95
Copy link
Copy Markdown
Member

close: #4965

@Simon-He95 Simon-He95 requested review from antfu and zyyv as code owners October 29, 2025 03:50
@netlify
Copy link
Copy Markdown

netlify bot commented Oct 29, 2025

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 700d6d0
🔍 Latest deploy log https://app.netlify.com/projects/unocss/deploys/69018f22262f4e000846ccc0
😎 Deploy Preview https://deploy-preview-4968--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Oct 29, 2025

Open in StackBlitz

commit: 700d6d0

@zyyv
Copy link
Copy Markdown
Member

zyyv commented Oct 31, 2025

@Simon-He95 This isn't a good solution. I'll design a new syntax support based on this.

@Simon-He95
Copy link
Copy Markdown
Member Author

@Simon-He95 This isn't a good solution. I'll design a new syntax support based on this.这不是一个好的解决方案。我将基于此设计新的语法支持。

--spacing is a special case, used in the tailwind function.
There's no need to redo such a complex project for this specific case.
https://play.tailwindcss.com/9qzXzRenie

@zyyv
Copy link
Copy Markdown
Member

zyyv commented Oct 31, 2025

https://play.tailwindcss.com/qLmkzRCx0p

I'm not sure if spacing is the only special key, but I want to support multiple theme keys as a function.

And it should appear not only in arbitrary value rule, but also within all bracket syntax.

@Simon-He95 Simon-He95 closed this Nov 3, 2025
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 this pull request may close these issues.

tailwind v4: spacing not parsed right

2 participants