npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ky-ui-vue

v0.1.0

Published

一个空灵、悠远风格的 Vue 3 组件库

Readme

KY UI Vue

一个空灵、悠远风格的 Vue 3 组件库

特性

  • 🎨 空灵、悠远的设计风格
  • 🚀 基于 Vue 3 + TypeScript 4.1
  • ⚡️ Vite 构建,快速开发
  • 📦 按需加载,优化包体积
  • 🌓 支持亮色/暗色主题切换
  • 📱 完整的 H5 移动端适配
  • 👆 触摸手势支持
  • 📐 响应式布局系统
  • 🎯 完整的 TypeScript 类型定义

安装

npm install ky-ui-vue

快速开始

import { createApp } from 'vue'
import KyUI from 'ky-ui-vue'
import 'ky-ui-vue/dist/style.css'

const app = createApp(App)
app.use(KyUI)
app.mount('#app')

按需引入

import { KyButton, KyInput } from 'ky-ui-vue'

组件列表

基础组件

  • Button 按钮
  • Input 输入框
  • Form 表单

布局组件

  • Grid 栅格系统
  • Flex 弹性布局

动态组件

  • Modal 模态框
  • Tabs 标签页
  • Accordion 手风琴

移动端组件

  • Swiper 轮播
  • PullRefresh 下拉刷新

开发

# 安装依赖
npm install

# 启动开发服务器(自动识别设备类型)
npm run dev

# 构建
npm run build

# 运行测试
npm run test

# 代码检查
npm run lint

H5 移动端适配

项目已完整支持 H5 移动端,包含:

  • ✅ 视口配置和安全区域适配
  • ✅ 触摸优化和手势支持
  • ✅ 1px 边框解决方案
  • ✅ rem 自适应布局
  • ✅ 防止滚动穿透
  • ✅ 屏幕旋转监听
  • ✅ 移动端组件(Swiper、PullRefresh)

查看 H5_ADAPTATION.md 了解详细适配方案。

移动端工具

import { 
  isMobile, 
  isIOS, 
  isAndroid,
  setRemUnit,
  useMobile,
  useTouch 
} from 'ky-ui-vue'

// 设备检测
if (isMobile()) {
  console.log('移动设备')
}

// rem 适配
setRemUnit(750)

// Composables
const { isMobileDevice, orientation } = useMobile()

主题定制

使用 CSS Variables 自定义主题:

:root {
  --ky-primary-color: #4a90e2;
  --ky-text-color: #333;
  --ky-bg-color: #fff;
  --ky-border-radius: 8px;
}

License

MIT