Socket
Socket
Sign inDemoInstall

@unocss/preset-typography

Package Overview
Dependencies
2
Maintainers
1
Versions
242
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unocss/preset-typography


Version published
Maintainers
1
Install size
582 kB
Created

Package description

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

Readme

Source

@unocss/preset-typography

Typography Preset for UnoCSS

Documentation

Please refer to the documentation.

Acknowledgement

License

MIT License © 2021-PRESENT Anthony Fu

MIT License © 2021-PRESENT Jeff Yang

Keywords

FAQs

Last updated on 19 Aug 2023

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc