Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@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 947 weekly downloads. As such, @twind/preset-typography popularity was classified as not 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.