Skip to content

Conversation

@zyyv
Copy link
Member

@zyyv zyyv commented Oct 31, 2025

close #4965, close #4968

New syntax for bracket, in the bracket syntax, it will automatically detect whether it is a theme function and automatically use the value in the theme key.

const cases = [
  'm-[--spacing]',
  'm-[--spacing(2)]',
  'px-[--spacing.sm(2.5)]',
  'text-[--colors.blue,#000]',
  'text-[--colors.red.200,#fff]',
  '[--foo:--bar(8)]',
]

@zyyv zyyv requested a review from antfu as a code owner October 31, 2025 02:55
@netlify
Copy link

netlify bot commented Oct 31, 2025

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 5bc8a82
🔍 Latest deploy log https://app.netlify.com/projects/unocss/deploys/690dbc20f32d6000081f9141
😎 Deploy Preview https://deploy-preview-4970--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

pkg-pr-new bot commented Oct 31, 2025

Open in StackBlitz

commit: 5bc8a82

@zyyv zyyv marked this pull request as draft October 31, 2025 02:59
@zyyv zyyv marked this pull request as ready for review November 7, 2025 08:54
@zyyv
Copy link
Member Author

zyyv commented Nov 7, 2025

@copilot

Copy link
Contributor

Copilot AI commented Nov 7, 2025

@zyyv I've opened a new pull request, #4984, to work on those changes. Once the pull request is ready, I'll request review from you.

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