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

ssq-ui

v0.0.1

Published

A Vue 3 + TypeScript component library with overlay foundation, on-demand styles, and runtime theming.

Readme

ssq-ui

简介

ssq-ui 是一个基于 Vue 3 + TypeScript 构建的组件库项目,聚焦基础组件、弹层基础设施、运行时主题系统。项目当前包含 ButtonInputIconSpaceDialogSelectConfigProvideruseTheme 等能力。

特性概览

  • 基础组件与弹层能力并重,覆盖按钮、输入、间距、图标、对话框、选择器等常用场景。
  • 统一复用 --my-* 主题 token,支持浅色、深色、预设主题、主色、圆角和动效模式切换。
  • 支持全量安装与子路径按需导入,组件子路径默认自动携带对应样式。
  • DialogSelect 共享 overlay 基础设施,包含焦点管理、ESC 响应、滚动锁定和 Teleport 支持。

安装

npm install ssq-ui
pnpm add ssq-ui
yarn add ssq-ui

要求环境:

  • Node.js >= 18
  • Vue >= 3.3

快速开始

import { createApp } from 'vue'
import App from './App.vue'
import MyUI from 'ssq-ui'
import 'ssq-ui/style'

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

按需导入

推荐在业务项目中优先使用子路径导入,这样可以得到更好的 tree-shaking 效果,同时自动携带组件所需样式。

<template>
  <Button type="primary">提交</Button>
</template>

<script setup lang="ts">
import Button from 'ssq-ui/button'
</script>

如果希望显式控制样式入口,也可以单独引入:

import Button from 'ssq-ui/button'
import 'ssq-ui/button/style'

主题定制

运行时主题能力由 ConfigProvider + useTheme 提供,默认会把主题状态写入根节点,因此 DialogSelect 这类 Teleport 到 body 的弹层也能自动继承主题。

<script setup lang="ts">
import { ConfigProvider, useTheme } from 'ssq-ui'

const { setMode, setPreset, setPrimary } = useTheme()

setMode('dark')
setPreset('ocean')
setPrimary('#0f766e')
</script>

<template>
  <ConfigProvider>
    <App />
  </ConfigProvider>
</template>

也支持子路径导入:

import ConfigProvider from 'ssq-ui/config-provider'
import { useTheme } from 'ssq-ui/theme'

组件列表

  • 基础组件:ButtonIconSpace
  • 数据录入:InputSelect
  • 反馈组件:Dialog
  • 全局能力:ConfigProvideruseTheme

本地开发

npm install
npm run dev

文档站开发:

npm run docs:dev

构建与测试

npm run lint
npm run typecheck
npm test -- --run
npm run build
npm run docs:build
npm run perf:smoke

许可协议

MIT