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

@skybaer0804/pui

v1.1.5

Published

Pui is a Preact UI library for building web applications.

Readme

PUI - Preact UI Library

Preact 기반의 UI 컴포넌트 라이브러리입니다.

설치

npm install @skybaer0804/pui
# 또는
yarn add @skybaer0804/pui
# 또는
pnpm add @skybaer0804/pui

사용 방법

전체 라이브러리 import

import { Button, Card, ThemeProvider } from '@skybaer0804/pui';
import '@skybaer0804/pui/styles.css';

function App() {
    return (
        <ThemeProvider>
            <Card>
                <Button>클릭하세요</Button>
            </Card>
        </ThemeProvider>
    );
}

개별 컴포넌트 import (Tree-shaking 지원)

MUI처럼 특정 컴포넌트만 import하여 사용할 수 있습니다:

import { Button } from '@skybaer0804/pui/Button';
import { Card } from '@skybaer0804/pui/Card';
import { ThemeProvider } from '@skybaer0804/pui/ThemeProvider';
import '@skybaer0804/pui/styles.css';

디자인 토큰 오버라이드

ThemeProvidertokenOverrides prop을 사용하여 디자인 토큰을 커스터마이징할 수 있습니다:

import { ThemeProvider } from '@skybaer0804/pui';
import type { DesignTokenOverrides } from '@skybaer0804/pui';

const tokenOverrides: DesignTokenOverrides = {
    '--color-interactive-primary': '#ff0000',
    '--primitive-space-4': '20px',
    '--primitive-radius-md': '8px',
};

function App() {
    return <ThemeProvider tokenOverrides={tokenOverrides}>{/* ... */}</ThemeProvider>;
}

스타일 유의사항

⚠️ 필수: 스타일 import

PUI 라이브러리는 A-plan 구조를 사용합니다. 모든 컴포넌트 스타일은 JS 번들에 포함되지 않으며, 별도의 CSS 파일로 제공됩니다.

반드시 프로젝트의 시작점(예: main.tsx, app.tsx)에서 한 번만 스타일을 import해야 합니다:

// ✅ 올바른 사용법
import '@skybaer0804/pui/styles.css';

// 또는
import '@skybaer0804/pui/styles';

중요 사항

  • 스타일은 JS 번들에 포함되지 않습니다: 각 컴포넌트 파일에는 스타일 import가 없습니다.
  • 한 번만 import: 전체 라이브러리 import든 개별 컴포넌트 import든 상관없이 styles.css프로젝트 시작점에서 한 번만 import하면 됩니다.
  • 스타일 없이는 동작하지 않습니다: styles.css를 import하지 않으면 컴포넌트가 제대로 렌더링되지 않습니다.
  • Tree-shaking과 무관: 개별 컴포넌트만 사용하더라도 전체 스타일을 import해야 합니다. (모든 스타일이 pui.scss에서 통합되어 있기 때문)

예시

// main.tsx 또는 app.tsx
import '@skybaer0804/pui/styles.css'; // ✅ 여기서 한 번만 import

// 다른 파일들에서는 컴포넌트만 import
import { Button } from '@skybaer0804/pui/Button';
import { Card } from '@skybaer0804/pui/Card';

주요 기능

  • ✅ Preact 기반의 경량 UI 컴포넌트
  • ✅ Tree-shaking 지원 (개별 컴포넌트 import)
  • ✅ 디자인 토큰 시스템
  • ✅ 다크 모드 지원
  • ✅ 반응형 디자인
  • ✅ TypeScript 지원
  • ✅ 디자인 토큰 오버라이드 지원

컴포넌트 목록

  • Layout: Box, Flex, Stack, Container, Grid
  • Button: Button, IconButton, ButtonGroup, FloatingActionButton
  • Form: Input, TextField, Select, Checkbox, Radio, RadioGroup, Switch
  • Navigation: Tabs, BottomNavigation, Breadcrumbs, Stepper, Pagination
  • Feedback: Alert, CircularProgress, Loading, Skeleton
  • Data Display: Typography, Avatar, Badge, StatusChip, Table, List
  • Surface: Paper, Divider, Card
  • Overlay: Dialog, Drawer, Tooltip
  • Disclosure: Accordion, Collapsible
  • Navigation: SpeedDial

라이선스

MIT