
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@twind/preset-typography
Advanced tools
Twind v1 is still in beta. Expect bugs!
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.
Based on @tailwindcss/typography.
Install from npm:
npm install twind@next @twind/preset-typography@next
with twind
import { setup } from 'twind'
import presetTypography from '@twind/preset-typography'
setup({
presets: [presetTypography(/* options */)],
/* config */
})
<head>
<script
src="https://cdn.jsdelivr.net/combine/npm/twind@next,npm/@twind/preset-typography@next"
crossorigin
></script>
<script>
twind.setup({
presets: [twind.presetTypography(/* options */)],
/* config */
})
</script>
</head>
with Twind CDN — a drop-in replacement for Tailwind CSS Play CDN
<head>
<script
src="https://cdn.jsdelivr.net/combine/npm/@twind/cdn@next,npm/@twind/preset-typography@next"
crossorigin
></script>
<script>
twind.setup({
presets: [twind.presetTypography(/* options */)],
/* config */
})
</script>
</head>
TBD
Most features of the Tailwind CSSS › typography-plugin are implemented in the same way.
theme.colors
is available via prose-<color>
; the default color gray
can be changed via presetTypography({ defaultColor: '...'})
presetTypography({ extend: { /* CSS object */ } })
FAQs
A twind preset 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.
The npm package @twind/preset-typography receives a total of 1,345 weekly downloads. As such, @twind/preset-typography popularity was classified as popular.
We found that @twind/preset-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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.