Skip to content

Tailwind 3 to 4 migration: unclear how to replicate @apply functionality #16349

Answered by philipp-spiess
arman-h asked this question in Help
Discussion options

You must be logged in to vote

Oh yeah sorry I was confused here! @apply slightly changed and you are not able to use it with non Tailwind utilities anymore. What you want to do in your case is to converted the theme-mb and theme-mt to utility functions instead: https://play.tailwindcss.com/9D3EZs6skd?file=css

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@philipp-spiess
Comment options

Answer selected by arman-h
@arman-h
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants