sondh0127 / onu-ui

Onu-UI for web glassmorphism components generate by UnoCSS

Home Page:https://onu.zyob.top

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Onu-UI (WIP)

Onu-UI for web glassmorphism components generate by UnoCSS.

NPM version

πŸ§‘β€πŸ’» Document Beta | πŸ€Ήβ€β™‚οΈ Preview

Features

  • 🌈 Glass Components - All components follow the glassmorphism style.
  • πŸ”₯ Introduce on demand - Provide resolver to automatically import only used components.
  • πŸŽ‰ Ts Supported - Support TypeScript & type checked & type inference.
  • πŸ’‘ Cli Build - Easy to create repo with Onu Cli.
  • 🍬 CSS Preset - Has UnoCSS preset package to use, rendered UI easily.
  • βš™οΈ Theme Config - Use attribute mode like unocss to desige. Support theme config to customize theme.

Usage

npm i onu-ui
npm i unocss -D

Add onu-ui in your main entry file.

// main.ts
import OnuUI from 'onu-ui'
import 'uno.css'
import 'onu-ui/dist/style.css'

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

Custom your UnoCSS config:

// uno.config.ts
import { defineConfig, presetAttributify, presetUno } from 'unocss'
import { presetOnu } from 'onu-ui'

export default defineConfig({
  presets: [
    // ...
    presetUno(),
    presetAttributify(),
    presetOnu(),
  ],
})

Preveiew

You can see the preview of the following commands:

npm run build

Then you can run playground to see the result.

npm run play

If you want start the dev server, you can run:

npm run dev

Credits

UnoCSS

@nuxt/ui

License

MIT License Β© 2022 chris-zhu

About

Onu-UI for web glassmorphism components generate by UnoCSS

https://onu.zyob.top

License:MIT License


Languages

Language:TypeScript 66.2%Language:Vue 33.0%Language:CSS 0.5%Language:HTML 0.2%Language:JavaScript 0.0%