New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@_tw/typography

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@_tw/typography

A Tailwind CSS plugin that adapts Tailwind Typography styles for the WordPress block editor.

  • 0.5.17
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
671
decreased by-3.03%
Maintainers
0
Weekly downloads
 
Created
Source

_tw Typography

A Tailwind CSS plugin created for _tw that improves support for Tailwind Typography within the WordPress block editor by:

  • Partially forking @tailwindcss/typography
  • Adding support for the is-style-lead class alongside lead so that it can be used as a block style
  • Tweaking a handful of CSS rules to add styles not otherwise handled by Tailwind Typography (like citations in quote blocks) and to improve Tailwind Typography support in the absence of Tailwind’s base styles from Preflight.

The version number of this plugin will be kept in sync with that of Tailwind Typography itself, as it will need to be tested for compatibility with each new Tailwind Typography release due to tight coupling with Tailwind Typography’s own code.

Usage

@_tw/typography must be included in place of @tailwindcss/typography, not alongside it:

// tailwind.config.js
plugins: [
    // Add Tailwind Typography.
    require('@_tw/typography'),
]

@_tw/typography supports the same options as @tailwindcss/typography:

// tailwind.config.js
plugins: [
    // Add Tailwind Typography styles with a custom class name.
    require('@_tw/typography')({
        className: 'wysiwyg',
    }),
]

FAQs

Package last updated on 20 Jan 2025

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc