
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
tailwind-typography
Advanced tools
A Tailwind CSS plugin for automatically styling plain HTML content with beautiful typographic defaults.
A plugin that provides a set of prose
classes you can use to add beautiful typographic defaults to any vanilla HTML you don't control, like HTML rendered from Markdown, or pulled from a CMS.
This is a fork of the official @tailwindcss/typography.
Undoing style by not-prose
is not working with target: legacy
in official plugin @tailwindcss/typography
, See this issue for more info. In order to use not-prose
normally in lower version browsers, I fork it and add a new target: legacy-not-prose
.
In target legacy-not-prose
, the plugin will generate the code like this:
.prose strong:not([class~="not-prose"] *) {
color: var(--tw-prose-bold);
font-weight: 600;
}
.prose ol[type='A']:not([class~="not-prose"] *) {
list-style-type: upper-alpha;
}
.prose blockquote p:first-of-type:not([class~="not-prose"] *)::before {
content: open-quote;
}
The above code works fine in lower version browsers, except the CSS weights will be a bit of a problem...
npm install -D tailwind-typography
For full documentation, visit tailwindcss.com/docs/typography-plugin.
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
Discuss the Tailwind CSS Typography plugin on GitHub
For casual chit-chat with others using the framework:
[0.1.0] - 2020-07-14
FAQs
A Tailwind CSS plugin for automatically styling plain HTML content with beautiful typographic defaults.
The npm package tailwind-typography receives a total of 483 weekly downloads. As such, tailwind-typography popularity was classified as not popular.
We found that tailwind-typography demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.