Urara-Blog/node_modules/.pnpm-store/v3/files/b1/ec4db339c8759923b06ccd42970f0191540c0d67425d161838da57b5cce63cf62f5088cbe0d822084dd8e374d64b9183bac4e402de0cd14ebd0e762ccf048b
2022-08-14 01:14:53 +08:00

44 lines
912 B
Text

# @unocss/preset-wind
Tailwind / Windi CSS compact preset for [UnoCSS](https://github.com/unocss/unocss).
> This preset inherits
> - [@unocss/preset-mini](https://github.com/antfu/unocss/tree/main/packages/preset-mini)
## Installation
```bash
npm i -D @unocss/preset-wind
```
```ts
import presetWind from '@unocss/preset-wind'
Unocss({
presets: [
presetWind(),
],
})
```
## Differences from Windi CSS
### `<sm` `@lg` Variants
- `<sm:p-1` -> `lt-sm:p-1`
- `@lg:p-1` -> `at-lg:p-1`
- `>xl:p-1` -> `gt-lg:p-1`
to have more consistent naming.
### Bracket Syntax Spaces
This preset uses `_` instead of `,` for respecting space in bracket syntax.
- `grid-cols-[1fr,10px,max-content]` -> `grid-cols-[1fr_10px_max-content]`
since some CSS rules require `,` as parts of the value, e.g. `grid-cols-[repeat(3,auto)]`
## License
MIT License &copy; 2021-PRESENT [Anthony Fu](https://github.com/antfu)