You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tailwind-typography

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-typography

A Tailwind CSS plugin for automatically styling plain HTML content with beautiful typographic defaults.

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
541
21.85%
Maintainers
1
Weekly downloads
 
Created
Source

Tailwind CSS Typography Tailwind CSS Typography

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.

Why

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...

Installation

npm install -D tailwind-typography

Documentation

For full documentation, visit tailwindcss.com/docs/typography-plugin.

Community

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:

Join the Tailwind CSS Discord Server

Keywords

tailwindcss

FAQs

Package last updated on 24 Aug 2022

Did you know?

Socket

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.

Install

Related posts