5.0.0-alpha.1713441610050 β€’ Published 1 year ago

@zhangmo8/ui v5.0.0-alpha.1713441610050

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Intro

Varlet is a Material design mobile component library developed based on Vue3, developed and maintained by varletjs community team.

Features

  • πŸš€ Β  Provide 60+ high quality general purpose components
  • πŸš€ Β  Components are very lightweight
  • πŸ’ͺ Β  Developed by Chinese, complete Chinese and English documentation and logistics support
  • πŸ› οΈ Β  Support on-demand introduction
  • πŸ› οΈ Β  Support theme customization
  • 🌍 Β  Support internationalization
  • πŸ’‘ Β  Support WebStorm syntax highlighting
  • πŸ’ͺ Β  Support the SSR
  • πŸ“¦ Β  Support Nuxt Module
  • πŸ’‘ Β  Support the Typescript
  • πŸ’ͺ Β  Make sure more than 90 percent unit test coverage, providing stability assurance
  • 🎨 Β  Supports both Material Design 2 and Material Design 3 design systems
  • πŸ› οΈ Β  Support dark mode
  • πŸ”§ Β  Provide official VSCode extension
  • ⌨️ Β  Support Accessibility (still improving)

Install

CDN

varlet.js contain all the styles and logic of the component library, and you can import them.

<div id="app"></div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
 <!-- Desktop Adaptation -->
<script src="https://cdn.jsdelivr.net/npm/@zhangmo8/touch-emulator/iife.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@zhangmo8/ui/umd/varlet.js"></script>
<script>
  const app = Vue.createApp({
    template: '<var-button>Button</var-button>'
  })
  app.use(Varlet).mount('#app')
</script>

Webpack / Vite

# Install with npm or yarn or pnpm

# npm
npm i @zhangmo8/ui -S

# yarn
yarn add @zhangmo8/ui

# pnpm
pnpm add @zhangmo8/ui
import App from './App.vue'
import Varlet from '@zhangmo8/ui'
import { createApp } from 'vue'
import '@zhangmo8/ui/es/style'

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

Official Ecosystem

The following projects are maintained by the official team for a long time.

NameDescription
@zhangmo8/cliVue3 component library rapid prototyping tool
@zhangmo8/touch-emulatorDesktop adapter, so that the mobile component library can run on the desktop
@zhangmo8/ui-playgroundVarlet component library online editing tool
@zhangmo8/import-resolverA resolver for unplugin-vue-components used to implement Varlet and import it on demand
@zhangmo8/preset-unocssUnoCss presets for varlet
@zhangmo8/preset-tailwindcsstailwindcss presets for varlet
varlet-theme-builderTheme generator for generating theme variables for varlet Material Design 3
varlet-vscode-extensionVarlet Component Library VSCode Plugin
vscode-theme-varletVarlet VSCode Theme
varlet-app-exampleVarlet component library app template
varlet-install-exampleCase collection of Varlet component library and various ecosystem integration

Community Ecosystem

The following projects are maintained by community personnel, welcome to add.

NameDescription
vue-h5-templateVue-based mobile template scaffolding, providing mobile presets for Varlet component library
create-vite-appA desktop template scaffolding based on Vue3, providing desktop presets for Varlet component library
vscode-common-intellisenseA VS Code extension that provides better intellisense to Varlet developers

Playground

See Varlet UI Playground.

Contribution

See Contributing Guide.

Community

We recommend that issue be used for problem feedback, or others:

  • Wechat group

Thanks to contributors

Thanks to the following sponsors

Sponsor this project

Sponsor this project to support our better creation. It is recommended to use afdian to subscribe, and your avatar will appear in this project.

Afdian

https://afdian.net/a/haoziqaq

Wechat / Alipay