Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

onu-ui

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onu-ui

Onu-UI for web glassmorphism components generate by UnoCSS.

  • 1.0.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
172
decreased by-45.22%
Maintainers
2
Weekly downloads
 
Created
Source

Onu UI (WIP)

Popular, beautiful and fast UnoCSS component library.

NPM version

🧑‍💻 Document Beta | 🤹‍♂️ Preview

Features

  • 🌈 Components Design - Onu provides neat & beautiful crafted UI components.
  • 🔥 On demand Import - Provide resolver to automatically import only used components.
  • 🎉 Typescript Supported - Support TypeScript & type checked & type inference.
  • 💎 Iconify Icons - Use any icon from the library you love.
  • 🍬 CSS Preset - Has UnoCSS preset package to use, rendered UI easily.
  • ⚙️ Theme Config - Use attribute mode like unocss to design. Support theme config to customize theme.

Usage

Full Import

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 UnoCSS config

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(),
  ],
})

On-demand Import:

You need to use an additional plugin to import components you used. First you need to install unplugin-vue-components and unplugin-auto-import.

npm install -D unplugin-vue-components unplugin-auto-import

Then add the code below into your Vite config file.

// vite.config.ts
import { defineConfig } from 'vite'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { OnuResolver } from 'onu-ui'

export default defineConfig({
  // ...
  plugins: [
    // ...
    AutoImport({
      resolvers: [OnuResolver()],
    }),
    Components({
      resolvers: [OnuResolver()],
    }),
  ],
})

Online Playground

You can try OnuUI out with the components built-in playground.

Try it with our built-in playground

Playground

Try it with stackblitz or codesandbox


Contributing

Developers interested in contributing should read the Code of Conduct and the Contributing Guide.

Thanks to everyone who has already contributed to OnuUI!

Discussions

Since OnuUI is under intensive development, we need your valuable comments and feature requirements of the component

Welcome to contact us at Discussions or Issues, we will be more than happy to reply to your message.

Credits

License

MIT License © 2022 chris-zhu

Keywords

FAQs

Package last updated on 23 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc