[!IMPORTANT]
This requires Tailwind v4.
Like the official Tailwind Typography package but:
Just drop and drop the typography.css
file into
your your project and import it like so into the base
layer.
@import 'typography' layer(base);
You can check out the demo here.. The demo is based on the original by Tailwind Labs
[!NOTE]
I think I got everything whilst porting this. If you think something is missing or broken, please submit an issue. Thanks!
.prose
no longer has a container by defaultUse the .prose-container
class for that.
.prose-invert
doesn't workHavn't built a tailwind only dark theme yet. But it's coming. It's really easy to make one yourself in the meantime:
.dark:root {
--prose-color: var(--color-slate-500);
...
...
}
.lead
is no longer a thingYou can easily add this back in though:
.prose :where(.lead):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
color: var(--prose-lead-color);
font-size: var(--prose-lead-size);
margin-top: var(--prose-lead--margin-top);
margin-bottom: var(--prose-lead-margin-bottom);
line-height: var(--prose-lead-leading);
letter-spacing: var(--prose-lead-tracking);
}