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

@cocrepo/design-system

v1.0.11

Published

Design system with HeroUI theme, tokens, and providers

Downloads

9

Readme

@cocrepo/design-system

HeroUI 기반 디자인 시스템 패키지입니다. 테마 설정, 디자인 토큰, Provider를 제공합니다.

설치

pnpm add @cocrepo/design-system

주요 기능

DesignSystemProvider

애플리케이션 루트에 디자인 시스템 Provider를 설정합니다:

import { DesignSystemProvider } from '@cocrepo/design-system';

function App() {
  return (
    <DesignSystemProvider>
      <YourApp />
    </DesignSystemProvider>
  );
}

테마 설정

HeroUI 테마를 커스터마이징합니다:

import { DesignSystemProvider } from '@cocrepo/design-system';

function App() {
  return (
    <DesignSystemProvider
      theme="dark"
      defaultTheme="system"
    >
      <YourApp />
    </DesignSystemProvider>
  );
}

디자인 토큰

일관된 디자인을 위한 토큰 값을 제공합니다:

import { tokens } from '@cocrepo/design-system';

// 색상 토큰
const primaryColor = tokens.colors.primary;
const backgroundColor = tokens.colors.background;

// 간격 토큰
const spacing = tokens.spacing.md;

// 타이포그래피 토큰
const fontSize = tokens.typography.fontSize.lg;

HeroUI 설정

커스텀 HeroUI 설정을 제공합니다:

import { heroUIConfig } from '@cocrepo/design-system';

// tailwind.config.js에서 사용
export default {
  plugins: [heroUIConfig],
};

기본 스타일

전역 CSS 스타일을 포함합니다:

// 애플리케이션 진입점에서 import
import '@cocrepo/design-system/styles/base.css';

파일 구조

src/
├── provider/
│   ├── index.ts
│   └── DesignSystemProvider.tsx  # 메인 Provider
├── theme/
│   ├── index.ts
│   ├── tokens.ts                  # 디자인 토큰
│   └── heroui.config.ts           # HeroUI 설정
├── styles/
│   └── base.css                   # 기본 스타일
└── index.ts

사용 예시

전체 설정

// main.tsx
import React from 'react';
import ReactDOM from 'react-dom/client';
import { DesignSystemProvider } from '@cocrepo/design-system';
import '@cocrepo/design-system/styles/base.css';
import App from './App';

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <DesignSystemProvider>
      <App />
    </DesignSystemProvider>
  </React.StrictMode>
);

Tailwind CSS 통합

// tailwind.config.js
import { heroUIConfig } from '@cocrepo/design-system';

export default {
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}',
  ],
  theme: {
    extend: {},
  },
  darkMode: 'class',
  plugins: [heroUIConfig],
};

의존성

  • @heroui/react - UI 컴포넌트
  • @heroui/use-theme - 테마 훅
  • react (peer)
  • react-dom (peer)
  • tailwindcss (peer)