Replies: 3 comments 3 replies
-
How would you use those classes when you have no access to the markup for those sections though, since typically it looks like this:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
You can do everything you've described by adding new modifiers tailwindcss-typography#adding-new-modifiers typography: {
DEFAULT: { // styles `.prose`
css: {...},
},
'headings': { // styles `.prose-headings`
css: {...},
},
'article': { // styles `.prose-article`
css: {...},
},
'footer': { // styles `.prose-footer`
css: {...},
},
'color-inherit': { // styles `.prose-color-inherit`
css: {...},
},
'collapse-last-margin': { // styles `.prose-collapse-last-margin`
css: {...},
},
} A given element could have as many of those as you wanted. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
For a project I'm doing (not tailwind), I use the same principle. Create scoped areas for content styling.
The Tailwind Typography in current state is doing too much per class, in my opinion.
I have a good experience with separating stuff:
Even the table / images and others can be separated (and purged when not used)
Just food for thought.
Beta Was this translation helpful? Give feedback.
All reactions