How do apply tailwind classes across multiple pages without duplication? #11535
redonkulus
started this conversation in
General
Replies: 2 comments 2 replies
-
Generally, I'd only want a "general" Otherwise, I'd create a "Paragraph" component or re-useable function. Another option without using |
Beta Was this translation helpful? Give feedback.
1 reply
-
Could you use the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, say I want all
p
tags to have a specificmargin-top
. Instead of adding<p class="mt-3">Blah</p>
to every tag, I'd like to apply that class more generally.I know there is the
@apply
solution to do it in CSS, but I read that using@apply
is not really recommended. I could create a "Paragraph" component or re-useable function in my app, but that seems like overkill.I'm curious how others are solved this very simple problem with Tailwind?
Beta Was this translation helpful? Give feedback.
All reactions