Skip to content

--sizing-* is not allowed to be used when generating functional utilities #18061

Answered by wongjn
AiSirachcha21 asked this question in Help
Discussion options

You must be logged in to vote

You can use --spacing(x) which is syntactic sugar for calc(var(--spacing) * x): https://play.tailwindcss.com/5mgZeqBdhX?file=css
This also enables intellisense suggestions of the predefined spacing scale.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@AiSirachcha21
Comment options

@AiSirachcha21
Comment options

@wongjn
Comment options

wongjn May 16, 2025
Collaborator

Answer selected by AiSirachcha21
@AiSirachcha21
Comment options

@wongjn
Comment options

wongjn May 16, 2025
Collaborator

# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #18060 on May 16, 2025 14:37.