Socket
Socket
Sign inDemoInstall

@unocss/preset-typography

Package Overview
Dependencies
Maintainers
0
Versions
252
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


Version published
Maintainers
0
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 24 Aug 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