Extending @tailwindcss/typography to Custom Elements in Tailwind 4 #16826
Unanswered
raffazizzi
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to extend the @tailwindcss/typography plugin so that the styles applied to
.prose p
also apply to a custom element.I tried
but in Tailwind 4, this results in an error:
Cannot apply unknown utility class: prose-p
Since prose-p is not a standalone utility, I now need to manually replicate the styles.
Is there an official or recommended way to find and reuse typography styles in Tailwind 4 without manually copying them? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions