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

@unocss/preset-mini

Package Overview
Dependencies
Maintainers
1
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unocss/preset-mini

The minimal preset for UnoCSS

  • 0.52.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
229K
decreased by-0.39%
Maintainers
1
Weekly downloads
 
Created

What is @unocss/preset-mini?

@unocss/preset-mini is a utility-first CSS framework that provides a set of predefined classes to help you build responsive and modern web interfaces quickly. It is part of the UnoCSS ecosystem and offers a wide range of utilities for styling your web applications.

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

Responsive Design

This feature allows you to apply different styles based on the screen size. In this example, the background color changes from blue on medium screens to green on large screens.

```html
<div class="md:bg-blue-500 lg:bg-green-500">
  Responsive Background Color
</div>
```

Flexbox Utilities

Flexbox utilities help you to easily create flexible and responsive layouts. This example centers the content both horizontally and vertically.

```html
<div class="flex justify-center items-center">
  Centered Content
</div>
```

Spacing Utilities

Spacing utilities allow you to add padding and margin to elements. In this example, the box has padding of 4 units and margin of 2 units.

```html
<div class="p-4 m-2">
  Padded and Margined Box
</div>
```

Typography Utilities

Typography utilities help you to style text elements. This example makes the text large and bold.

```html
<p class="text-lg font-bold">
  Large Bold Text
</p>
```

Color Utilities

Color utilities allow you to easily apply colors to text and backgrounds. This example sets the text color to red and the background color to yellow.

```html
<div class="text-red-500 bg-yellow-200">
  Colored Text and Background
</div>
```

Other packages similar to @unocss/preset-mini

Keywords

FAQs

Package last updated on 26 May 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc