0.0.3-alpha.4 • Published 11 months ago

unocss-ui v0.0.3-alpha.4

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

unocss-ui

This is a Vue3 component library based on Unocss. Its simplicity is its biggest feature, as almost all components rely only on a single .vue file, without depending on too much other code.

⚠️ This component library is still under construction and is currently only suitable for learning purposes.

Usage

pnpm add unocss unocss-ui @unocss/reset

Add unocss-ui in your main entry file.

import '@unocss/reset/tailwind.css'
import 'unocss-ui/style.css'
import 'uno.css'

import unocssui from 'unocss-ui'
import { createApp } from 'vue'
import App from './App.vue'

createApp(App).use(unocssui).mount('#app')

Customization

You can customize the theme of the component library by passing in the theme option.

Currently, only customization of colors is supported, and you must use the colors of the palette.

// uno.config.ts
import { defineConfig, presetUno } from 'unocss'
import { colors } from 'unocss/preset-mini'

import { presetUnocssUI } from 'unocss-ui'

export default defineConfig({
  theme: {
    colors: {
      primary: colors.red,
      secondary: colors.orange,
      accent: colors.yellow,
      success: colors.green,
      info: colors.blue,
      warning: colors.indigo,
      error: colors.violet,
    },
  },
  presets: [
    presetUno(),
    presetUnocssUI(),
  ],
})

Development

git clone https://github.com/cherryful/unocss-ui
cd unocss-ui
pnpm install

Develop and preview components.

pnpm dev:example
0.0.2-alpha.8

12 months ago

0.0.2-alpha.7

12 months ago

0.0.2-alpha.9

12 months ago

0.0.1-alpha.9

12 months ago

0.0.2-alpha.2

12 months ago

0.0.2-alpha.1

12 months ago

0.0.2-alpha.4

12 months ago

0.0.2-alpha.3

12 months ago

0.0.2-alpha.6

12 months ago

0.0.3-alpha.3

11 months ago

0.0.3-alpha.2

11 months ago

0.0.3-alpha.4

11 months ago

0.0.3-alpha.1

11 months ago

0.0.1-alpha.6

12 months ago

0.0.1-alpha.7

12 months ago

0.0.1-alpha.4

12 months ago

0.0.1-alpha.5

12 months ago

0.0.1-alpha.2

12 months ago

0.0.1-alpha.3

12 months ago

0.0.1-alpha.1

12 months ago

0.0.1-alpha.8

12 months ago

0.0.0

2 years ago

1.0.0

2 years ago