Skip to content

Upgrading v3 custom classes to v4 not working when using screen breakpoints #17111

Answered by wongjn
richardshephard1 asked this question in Help
Discussion options

You must be logged in to vote

Yep! Use @utility:

@utility desktop-heading-small-bold {
  …
}

https://play.tailwindcss.com/Y7c46z7J0y?size=1290x720&file=css

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@richardshephard1
Comment options

Answer selected by richardshephard1
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