Replies: 4 comments 3 replies
-
There's no real consensus yet. You could consider using a mix of |
Beta Was this translation helpful? Give feedback.
-
Please could you link me to the docs that explain how https://github.com/tailwindlabs/tailwindcss-typography is now built in? I can't find any documentation, I had it working in v3 with:
|
Beta Was this translation helpful? Give feedback.
-
@utility prose {
max-width: none;
blockquote p {
&:first-of-type {
&::before {
content: none;
}
}
}
/* I guess you are using the below styles to kill your non-prose h1/h2 styles that are leaking into the prose scope? */
/* 🤔 There are no backticks for <pre><code>...</code></pre>, just <code>...</code> */
pre {
code {
&::before,
&::after {
content: none;
}
}
}
/* 🤔 There are no top margins by default on heading elements */
h1 { margin-top: 0; },
h2 { margin-top: 0; }
} As for me, I wanted to kill the auto backtick display on inline code <code>...</code> and you can do that with the below: @utility prose {
code {
&::before,
&::after {
content: none;
}
}
} |
Beta Was this translation helpful? Give feedback.
-
@import "tailwindcss";
+ @plugin "@tailwindcss/typography"; https://github.com/tailwindlabs/tailwindcss-typography?tab=readme-ov-file#installation |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What's the standard way to configure this plugin now that it is built in?
This is my config that I want to use.
Beta Was this translation helpful? Give feedback.
All reactions