Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@tailwindcss/typography
Advanced tools
A Tailwind CSS plugin for automatically styling plain HTML content with beautiful typographic defaults.
The @tailwindcss/typography plugin provides a set of prose classes that 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. It's designed to make the text in your applications look good out of the box.
Prose styling
Automatically styles the text within the <article> tag according to the Tailwind Typography defaults. The 'prose' class applies base styles, and 'lg:prose-xl' applies larger styles at the 'lg' breakpoint and above.
<article class='prose lg:prose-xl'>...</article>
Customizing Typography
Allows customization of the default typography styles. In this example, the base text color is set to '#333', and anchor (<a>) tags are styled with a default color of '#3178c6', which changes to '#0550ae' on hover.
theme: { extend: { typography: { DEFAULT: { css: { color: '#333', a: { color: '#3178c6', '&:hover': { color: '#0550ae', }, }, }, }, }, }, },
Dark mode support
Enables dark mode styles within the <article> tag when the parent or root element has the 'dark' class. The 'prose-dark' class applies dark mode styles to the text.
<article class='prose dark:prose-dark'>...</article>
A powerful toolkit for building websites with beautiful design. Typography.js provides a set of themes and plugins to manage typography in CSS-in-JS applications. It differs from @tailwindcss/typography by offering a more JavaScript-centric approach, allowing for dynamic theme adjustments and integration with React components.
A tool for creating presentation decks using MDX (Markdown + JSX), which allows for the use of JSX components within markdown. While not a direct competitor to @tailwindcss/typography, mdx-deck can be used to style markdown content for presentations and includes its own set of themes and layouts for typography. It's more specialized for presentation purposes compared to the broad HTML content styling offered by @tailwindcss/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.
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:
FAQs
A Tailwind CSS plugin for automatically styling plain HTML content with beautiful typographic defaults.
The npm package @tailwindcss/typography receives a total of 1,287,414 weekly downloads. As such, @tailwindcss/typography popularity was classified as popular.
We found that @tailwindcss/typography demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.