Custom CSS Variables in Spacing utilities #17388
-
We've got a React application that attempts to set spacing based on CSS Variables. An example of this: The idea is that the application will apply The tailwind generator makes: .gap-carousel-slide {
gap: var(--spacing-carousel-slide);
} And, --spacing-carousel-slide: var(--carousel-slide-gap); in the theme ... however, If I use the syntax How would you be able to use custom variables with the spacing utilities? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Use |
Beta Was this translation helpful? Give feedback.
Use
@theme inline
: https://play.tailwindcss.com/s746N4pUgm?file=css