Skip to content

html blocks from gutenberg are not styled #262

Answered by sidonaldson
zerdotre asked this question in Q&A
Discussion options

You must be logged in to vote

This is an issue with Tailwind as it uses "JUST IN TIME" method to collect all the classes used and then create the styles for them, if you use the HTML block from Gutenberg that's effectively data not code, tailwind has no idea what classes are there.

You can manually add the component as a template-part which tailwind will find or add the classes in the CSS file using @apply

Replies: 2 comments 2 replies

Comment options

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

@zerdotre
Comment options

Answer selected by zerdotre
Comment options

You must be logged in to vote
0 replies
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