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

smart-web-ui

v1.0.0

Published

---

Downloads

18

Readme

Smart Web Ui 🚀


📦 安装

# 选择你喜欢的包管理器
npm install smart-web-ui vue@^3 ant-design-vue@^3
# 或
yarn add smart-web-ui vue@^3 ant-design-vue@^3
# 或
pnpm add smart-web-ui vue@^3 ant-design-vue@^3

🚀 快速使用

全量引入(推荐用于快速原型开发)

// main.js
import { createApp } from 'vue'
import SmartWebUI from 'smart-web-ui'
import 'smart-web-ui/dist/style.css'
const app = createApp(App)
app.use(SmartWebUI)

按需引入(推荐用于生产环境)

// 组件文件中
import {MyButton,MyInput} from 'smart-web-ui'
// vite.config.js 配置自动导入
import AutoImport from 'unplugin-auto-import/vite'

export default {
  plugins: [
    AutoImport({
      imports: ['smart-web-ui']
    })
  ]
}

🎨 主题定制

通过 CSS 变量覆盖

/* 在你的全局 CSS 中 */
:root {
  --s-primary-color: #1677ff;
  --s-border-radius: 6px;
  --s-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

通过 SCSS 变量(需要配置构建工具)

// vite.config.js
export default {
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@import "smart-web-ui/src/styles/variables";`
      }
    }
  }
}

🛠 开发指南

本地开发

git clone xxxxx/smart-web-ui.git
cd smart-web-ui
npm install
npm dev

生产构建

npm build

组件测试

npm test

❓ 常见问题

Q: 样式与 Ant Design 冲突?

确保 ant-design-vue 的样式在 smart-web-ui 之后导入

Q: 如何支持 SSR?

组件库已提供 SSR 兼容版本,使用默认导入方式即可

Q: 为什么需要 peerDependencies?

我们保持与 vue/ant-design-vue 的解耦,让您可以灵活控制版本