Skip to content

Fastest way to override gutenberg components. #83

Answered by gregsullivan
phrizm asked this question in Q&A
Discussion options

You must be logged in to vote

This part of the Tailwind Typography documentation should give you most of what you need:

https://tailwindcss.com/docs/typography-plugin#element-modifiers

So if you want them yellow, you'd add this:

prose-h1:text-yellow

If you wanted green and bold in dark mode, you'd add this:

dark:prose-h1:text-green dark:prose-h1:font-bold

(The above assumes you have colours set for yellow and green.)

In terms of where to put these in _tw, there's a constant for Tailwind Typography class modifiers towards the top of functions.php.

Hope that helps!

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@gregsullivan
Comment options

Answer selected by phrizm
@phrizm
Comment options

@gregsullivan
Comment options

@phrizm
Comment options

@phrizm
Comment options

Comment options

You must be logged in to vote
2 replies
@phrizm
Comment options

@gregsullivan
Comment options

Comment options

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

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