Socket
Socket
Sign inDemoInstall

@unocss/preset-wind

Package Overview
Dependencies
6
Maintainers
1
Versions
273
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @unocss/preset-wind

Tailwind / Windi CSS compact preset for UnoCSS


Version published
Weekly downloads
285K
decreased by-17.68%
Maintainers
1
Created
Weekly downloads
 

Package description

What is @unocss/preset-wind?

@unocss/preset-wind is a preset for UnoCSS that provides utility-first CSS inspired by Tailwind CSS. It allows developers to use a wide range of utility classes to style their applications efficiently.

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

Utility Classes

This feature allows you to use utility classes to style elements. In this example, the div element is styled with a blue background, white text, padding, and rounded corners.

<div class="bg-blue-500 text-white p-4 rounded-lg">Hello, World!</div>

Responsive Design

This feature provides responsive design utilities. The example shows how padding changes based on the screen size: 4 units for small screens, 8 units for medium screens, and 12 units for large screens.

<div class="p-4 md:p-8 lg:p-12">Responsive Padding</div>

Hover and Focus States

This feature allows you to define styles for different states like hover and focus. The button changes its background color when hovered over or focused.

<button class="bg-green-500 hover:bg-green-700 focus:bg-green-900">Hover and Focus</button>

Flexbox Utilities

This feature provides flexbox utilities to create flexible and responsive layouts. The example centers the content both horizontally and vertically within the viewport.

<div class="flex justify-center items-center h-screen">Centered Content</div>

Other packages similar to @unocss/preset-wind

Readme

Source

@unocss/preset-wind

Tailwind / Windi CSS compact preset for UnoCSS.

Documentation

Please refer to the documentation.

License

MIT License © 2021-PRESENT Anthony Fu

Keywords

FAQs

Last updated on 19 Nov 2023

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.

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