
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived 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 470 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.