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

sunui-design

v0.0.39

Published

<div align="center">

Readme

Sun UI Design

一個具有精美動畫效果和可自定義組件的現代 React UI 組件庫。使用 React、TailwindCSS 和 TypeScript 構建,完美適配任何 React 項目。

特點

  • 🎨 現代化且精美的 UI 組件
  • 📱 完全響應式設計
  • 🌈 基於 TailwindCSS 構建
  • 🎯 TypeScript 支持
  • ⚡ 輕量且高性能
  • 🔧 易於自定義
  • 📦 支持 Tree-shaking 導出
  • 🎁 提供獨立包或整體打包
  • 🔌 適用於任何 React 項目(Next.js、Create React App、Vite 等)

組件

Sun UI Design 提供了一系列現代化且可自定義的組件。每個組件都可以作為獨立包使用。

可用組件

安裝

整體包安裝

npm install @sunui-design/all
# 或
yarn add @sunui-design/all
# 或
pnpm add @sunui-design/all

獨立包安裝

# 核心樣式和工具
npm install @sunui-design/core

# 獨立組件
npm install @sunui-design/card
npm install @sunui-design/file-upload
npm install @sunui-design/filter
npm install @sunui-design/floating
npm install @sunui-design/gradient
npm install @sunui-design/side-panel
npm install @sunui-design/social

開發設置

開發環境設置

  1. 克隆項目:
git clone https://github.com/yourusername/sun-ui-design.git
cd sun-ui-design
  1. 安裝依賴:
npm install
# 或
npx lerna bootstrap
  1. 構建所有包:
npm run build:packages
  1. 啟動開發服務器:
npm run dev
  1. 啟動 Storybook:
npm run storybook

開發工作流程

  1. 創建新包:
cd packages
mkdir your-package-name
cd your-package-name
npm init
  1. 開發包:
npm run dev
  1. 構建包:
npm run build
  1. 打包:
npm run pack
  1. 發布包:
npm run publish

常用命令

  • npm run dev - 啟動開發服務器
  • npm run build - 構建項目
  • npm run build:packages - 構建所有包
  • npm run storybook - 啟動 Storybook
  • npm run build-storybook - 構建 Storybook
  • npm run pack:all - 打包所有包
  • npm run publish - 發布包
  • npm run clean - 清理構建文件
  • npm run lint - 運行代碼檢查

故障排除

如果遇到模塊未找到錯誤:

  1. 清理並重新安裝依賴:
npm run clean
npm install
  1. 重新構建包:
npm run build:packages
  1. 如果問題持續,檢查包版本:
npm ls @sunui-design/core
npm ls @sunui-design/social

基本用法

import '@sunui-design/core/styles/base.css';
import {
  Card,
  FileUpload,
  FilterGrid,
  FloatingButton,
  GradientBackground,
  SidePanel,
  SocialButton
} from '@sunui-design/all';

export default function App() {
  return (
    <div>
      <GradientBackground>
        <Card>
          <FilterGrid>
            {/* 您的內容 */}
          </FilterGrid>
        </Card>
        <FloatingButton />
        <SocialButton href="https://github.com" />
      </GradientBackground>
    </div>
  );
}

文檔

每個組件都附帶全面的文檔,包括示例和屬性說明。要查看文檔,請查看各個包的 README 或運行 Storybook 以查看實時示例:

npm run storybook
# 或
yarn storybook
# 或
pnpm storybook

貢獻

歡迎提交 Issue 和 Pull Request!提交 PR 前請閱讀我們的貢獻指南。

授權

MIT 授權

Copyright (c) 2024 Sun UI Design

特此免費授予任何獲得本軟件副本和相關文檔文件(下稱"軟件")的人不受限制地處理本軟件的權利, 包括不受限制地使用、複製、修改、合併、發布、分發、再授權和/或出售本軟件副本, 以及再授權被配發了本軟件的人如上的權利,須在下列條件下:

上述版權聲明和本許可聲明應包含在本軟件的所有副本或實質成分中。

本軟件是"按原樣"提供的,不做任何明示或暗示的保證,包括但不限於對適銷性、特定用途適用性和非侵權性的保證。 在任何情況下,作者或版權持有人都不對任何索賠、損害或其他責任負責,無論這些追責來自合同、侵權或其它行為中, 還是產生於、源於或有關於本軟件以及本軟件的使用或其它處置。