Skip to content
Discussion options

You must be logged in to vote

Damn, I just had to ask the question to find the answer myself...
Declaring CSS variables with the --spacing prefix inside @theme does the trick:

@theme {
  --spacing-small: 0.5rem;
}

Then just use mt-small, pb-small, .....

https://play.tailwindcss.com/MV8UbfAYBK?file=css

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zecka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant