0.5.0 • Published 8 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
8 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.3.0

8 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.4.5

8 months ago

0.1.8

11 months ago

0.4.4

8 months ago

0.5.0

8 months ago

0.4.1

8 months ago

0.2.3

11 months ago

0.4.0

8 months ago

0.2.2

11 months ago

0.4.3

8 months ago

0.2.5

11 months ago

0.4.2

8 months ago

0.2.4

11 months ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.0

2 years ago