0.1.7 • Published 11 months ago

@bryce-loskie/unocss-preset-mini v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Unocss Preset Mini

Introduction

Unocss Preset Mini is a preset support uniapp mini program.

Install

To get started with Unocss Preset Mini, follow these simple steps:

1. Install Unocss

pnpm i -D unocss

2. Install Unocss Preset Mini

pnpm i -D @bryce-loskie/unocss-preset-mini

3. Configure Unocss to use the Mini preset.

In your project's Unocss configuration file (usually named ), import the preset and add it to the section:unocss.config.js

// uno.config.ts
import { presetMini } from '@bryce-loskie/unocss-preset-mini'
import { defineConfig } from 'unocss'

export default defineConfig({
  presets: [
    presetMini(),
    // ...custom presets
  ],
})

4. More rules

  1. wh-xx / hw-xx -> w-xx h-xx

  2. fc -> flex justify-center items-center

  3. safe-area-top / safe-area-bottom

  4. ellipsis-[number]

License

MIT License © 2024-PRESENT guygubaby

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.0

1 year ago