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

@pop-ui/foundation

v0.0.35

Published

Pop UI의 디자인 토큰, 아이콘, 이미지 등 기본 요소를 제공하는 패키지입니다.

Readme

@pop-ui/foundation

Pop UI의 디자인 토큰, 아이콘, 이미지 등 기본 요소를 제공하는 패키지입니다.

설치

npm install @pop-ui/foundation
# or
yarn add @pop-ui/foundation

구성 요소

1. Design Tokens

디자인 시스템의 색상, 타이포그래피 등의 토큰을 제공합니다.

import { ColorGray900, ColorAqua500, ColorRed500 } from '@pop-ui/foundation';

const MyComponent = () => {
  return <div style={{ color: ColorGray900 }}>Hello</div>;
};

사용 가능한 색상 팔레트

  • Gray: Gray0 ~ Gray1000 (11단계)
  • Aqua: Aqua50 ~ Aqua900 (9단계)
  • Red: Red50 ~ Red900 (9단계)
  • Orange: Orange50 ~ Orange900 (9단계)
  • Yellow: Yellow50 ~ Yellow900 (9단계)
  • Green: Green50 ~ Green900 (9단계)
  • Blue: Blue50 ~ Blue900 (9단계)
  • Purple: Purple50 ~ Purple900 (9단계)
  • Grape: Grape50 ~ Grape900 (9단계)

시맨틱 색상

import {
  SemanticColorPrimary,
  SemanticColorWarning,
  BgColorButtonBgPrimaryDefault
} from '@pop-ui/foundation';

2. 아이콘

React 컴포넌트로 제공되는 아이콘들입니다.

import { IcChevronDown, IcChevronUp } from '@pop-ui/foundation';

function MyComponent() {
  return (
    <div>
      <IcChevronDown size={24} color="#1971C2" />
      <IcChevronUp size={20} />
    </div>
  );
}

아이콘 Props

모든 아이콘은 다음 props를 지원합니다:

  • size?: number - 아이콘 크기 (기본값: 원본 크기)
  • color?: string - 아이콘 색상 (기본값: ColorGray900 = #333333)
  • className?: string - CSS 클래스
  • style?: CSSProperties - 인라인 스타일
  • 기타 표준 SVG 속성들

현재 제공되는 아이콘

  • IcChevronDown - 아래 화살표 (24x24)
  • IcChevronUp - 위 화살표 (24x24)
  • IcChevronLeft - 왼쪽 화살표 (8x14)
  • IcChevronRight - 오른쪽 화살표 (8x14)

더 많은 아이콘이 추가될 예정입니다.

아이콘 사용 예시

import { IcChevronDown, ColorGray900 } from '@pop-ui/foundation';

// 기본 사용 (기본 색상: ColorGray900)
<IcChevronDown />

// 크기 조정
<IcChevronDown size={32} />

// 색상 변경
<IcChevronDown color="#1971C2" />

// CSS 클래스 사용
<IcChevronDown className="my-icon" />

// 스타일 조합
<IcChevronDown
  size={20}
  color="#FF0000"
  style={{ cursor: 'pointer' }}
  onClick={() => console.log('clicked')}
/>

3. Theme Utilities

런타임에서 색상을 조회하거나 CSS Variables를 생성하는 유틸리티를 제공합니다.

import {
  colors,
  getColorValue,
  getCSSVariableRef,
  colorNames
} from '@pop-ui/foundation';

// 색상 팔레트 객체
console.log(colors.gray[900]); // "#333333"
console.log(colors.aqua[500]); // "#0fd3d8"

// 헬퍼 함수
const grayValue = getColorValue('gray', '900'); // "#333333"
const cssVar = getCSSVariableRef('gray', '900'); // "var(--color-gray-900)"

// 사용 가능한 모든 색상 이름
console.log(colorNames); // ['gray', 'aqua', 'red', ...]

개발

Token 생성

디자인 토큰은 token.json에서 자동 생성됩니다:

# 1. token.json을 transformed-token.json으로 변환
yarn token-transform

# 2. style-dictionary로 TypeScript/SCSS 생성
yarn token-build

# 3. 패키지 빌드
yarn build

참고: Token 파일을 수정한 후에는 반드시 위 과정을 거쳐 재생성해야 합니다.

타입 정의

IIconProps

import type { IIconProps } from '@pop-ui/foundation';

interface IIconProps extends SVGProps<SVGSVGElement> {
  size?: number;
  color?: string;
}

ColorPalette

import type { ColorName, ColorShade, ColorPalette } from '@pop-ui/foundation';

// ColorName: 'gray' | 'aqua' | 'red' | ...
// ColorShade: '0' | '25' | '50' | '100' | ...
// ColorPalette: { [colorName: string]: { [shade: string]: string } }

라이선스

MIT

관련 패키지