-
Notifications
You must be signed in to change notification settings - Fork 287
Can you @apply 'prose h1' somehow? #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think most of the prose headings are expressible with Tailwind text sizes, especially now that Tailwind includes default line heights for text sizes. I'd love to see prose match those styles exactly so it's easy to match prose styles with default Tailwind. Maybe this is on @adamwathan's plan for the Prose plugin's Tailwind V2 plan. |
Hey! Thank you for your question! You can only apply classes. So you could apply
Example: https://play.tailwindcss.com/H8hM5dA5CU?file=css This is of course a very silly example. But this is one way on how you can "sync" the styles inside prose and non-prose components. |
@RobinMalfait Thanks! I guess I was looking for the other way. Extract the h1 styles from prose into my project so I can use just the prose h1 styles on an h1 and not the rest of the prose classes. |
I see, you can't do that dynamically currently. But you could copy the resulting css and apply it to all h1's if you want to. |
I would like the same for all heading globally, so ideally:
And sometimes just pinpoint something:
|
I adding prose to some content (not too high because of something like #73 missing) but this is leaving other places where I would like to use it.
At first, I would like to know if there's a way to
@apply
a prose styling on my own css.Like:
or something like that.
The text was updated successfully, but these errors were encountered: