Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unocss/preset-typography

Package Overview
Dependencies
Maintainers
2
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unocss/preset-typography

Typography preset for UnoCSS

  • 0.65.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
175K
decreased by-17.91%
Maintainers
2
Weekly downloads
 
Created

What is @unocss/preset-typography?

@unocss/preset-typography is a preset for UnoCSS that provides a set of typography-related utilities. It helps in styling text content with ease, offering a variety of features such as responsive typography, text alignment, and more.

What are @unocss/preset-typography's main functionalities?

Responsive Typography

This feature allows you to create text elements that adjust their size based on the screen size, ensuring readability across different devices.

```html
<div class="prose lg:prose-xl">
  <h1>Responsive Heading</h1>
  <p>This is a paragraph that adjusts its size based on the screen size.</p>
</div>
```

Text Alignment

This feature provides utilities for aligning text content, such as centering text within a container.

```html
<div class="prose text-center">
  <h1>Centered Heading</h1>
  <p>This paragraph is centered.</p>
</div>
```

Custom Font Styles

This feature allows you to apply custom font styles to your text content, such as using serif or sans-serif fonts.

```html
<div class="prose font-serif">
  <h1>Serif Heading</h1>
  <p>This paragraph uses a serif font style.</p>
</div>
```

Other packages similar to @unocss/preset-typography

Keywords

FAQs

Package last updated on 02 Dec 2024

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