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

@dskripchenko/ui

v1.1.2

Published

Vue 3 component, token, and theme library on CSS custom properties

Readme

@dskripchenko/ui

基于 CSS Custom Properties 的 Vue 3 组件、token 与主题库。

English · Русский · Deutsch · 中文

npm bundle license

状态: 稳定。遵循 SemVer 保障——破坏性变更仅在主版本中发布。

📖 Storybook:dskripchenko.github.io/ui

亮点

  • 70+ 组件 — 表单、导航、浮层、数据展示、图表、Patterns、Layouts
  • Vue 3 + TypeScript — Composition API、<script setup>、完整类型
  • CSS 自定义属性 — 不用 CSS-in-JS、Tailwind 或预处理器;一切都是变量
  • Light / Dark 主题 — 通过 :root 上的 data-theme 切换,便于覆盖
  • 可 tree-shake — 按组件导入,ESM + CJS 构建
  • 无障碍:focus-visible、ARIA 属性、所有交互组件支持键盘
  • i18n — 内置 ru + en locale,UidLocaleProvider 支持部分覆盖与自定义 locale
  • ~1500 图标 — 底层使用 lucide-vue-next + 子导出 @dskripchenko/ui/icons
  • 零图表运行时依赖 — 内置 SVG 原语(Sparkline、ProgressRing、Gauge、Heatmap)

安装

pnpm add @dskripchenko/ui
# 或
npm install @dskripchenko/ui

快速开始

// main.ts
import { createApp } from 'vue'
import App from './App.vue'

import '@dskripchenko/ui/styles/tokens.css'
import '@dskripchenko/ui/styles/themes.css'

createApp(App).mount('#app')
<!-- App.vue -->
<script setup lang="ts">
import { UidButton, UidIcon, UidLocaleProvider, en } from '@dskripchenko/ui'
import { Check } from '@dskripchenko/ui/icons'
</script>

<template>
  <UidLocaleProvider :locale="en">
    <UidButton variant="primary">
      <UidIcon :icon="Check" /> 保存
    </UidButton>
  </UidLocaleProvider>
</template>

通过 <html> 上的属性切换主题:

<html data-theme="dark">

内容速览

精简列表 — 完整目录在 Storybook

表单与输入: Button、Input、Textarea、NumberInput、Checkbox、Radio、Switch、Label、FormField、Select、Combobox、TagsInput、DatePicker、DateRangePicker、TimePicker、ColorPicker、Slider、Rating、FileUpload、Mention、TreeSelect、Cascader

反馈: Spinner、Skeleton、Badge、Alert、Progress、Toast、Tour

浮层: Modal、Drawer、Tooltip、Popover、Menu、Command

导航: Tabs、Breadcrumb、Link、Pagination(+ Cursor / LoadMore / InfiniteScroll / PageSize)、BackTop、Affix、Anchor

数据展示: Card、Avatar、AvatarGroup、Tag、Divider、Accordion、Table、VirtualList、Stat、DescriptionList、Timeline、TreeView、Code、Watermark、Carousel、Calendar、NotificationBadge

布局辅助: Stack、Grid、Container、Splitter

图表: Sparkline、ProgressRing、Gauge、Heatmap

Wizards: Stepper、Wizard、WizardStep

Patterns: Header、Footer、Sidebar、PageHeader、EmptyState、ErrorState、Result

Layouts: SimpleLayout、SidebarLayout、AuthLayout、WizardLayout

Composables: useTheme、useLocale、useField、useToast、useWizard、useSidebar、useCommandPalette、useFocusTrap、useScrollLock、usePopover

文档

用户文档已译为四种语言 — 选择你的:

贡献者文档(仅英文):ArchitectureComponent guidelinesContributingRoadmap

主题

所有颜色、间距、字体都是 CSS 变量。覆盖主题——在 :root 或容器上设置 token:

:root[data-theme='dark'] {
  --uid-color-primary: #8b5cf6;
  --uid-color-bg: #0a0a0a;
}

详见 主题Tokens

图标

子导出 @dskripchenko/ui/icons re-export 了全部 ~1500 个 Lucide 图标:

import { UidIcon } from '@dskripchenko/ui'
import { Heart, Star } from '@dskripchenko/ui/icons'

详见 图标

开发

pnpm install
pnpm dev               # Storybook,端口 6006
pnpm test              # Vitest
pnpm build             # 库构建
pnpm build-storybook   # Storybook → storybook-static
pnpm build:analyze     # Bundle visualizer
pnpm changeset         # 描述下一次发布的变更

许可证

MIT