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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@nation-a/tokens

v0.4.3

Published

Nation-A 디자인 시스템의 디자인 토큰 패키지입니다. 색상, 타이포그래피, 간격, 그림자 등 디자인 시스템의 핵심 값들을 관리합니다.

Readme

@nation-a/tokens

Nation-A 디자인 시스템의 디자인 토큰 패키지입니다. 색상, 타이포그래피, 간격, 그림자 등 디자인 시스템의 핵심 값들을 관리합니다.

특징

  • 다양한 포맷 지원: JavaScript/TypeScript, CSS, JSON 등 다양한 포맷으로 토큰 변환
  • 타입 안전: TypeScript 타입 정의 포함
  • 피그마 연동: Tokens Studio에서 추출된 토큰 활용
  • PandaCSS 및 Emotion 지원: 주요 스타일링 라이브러리와 호환

설치

# npm
npm install @nation-a/tokens

# yarn
yarn add @nation-a/tokens

# pnpm
pnpm add @nation-a/tokens

사용법

PandaCSS에서 사용

// panda.config.ts
import { defineConfig } from '@pandacss/dev'
import { pandaTokens } from '@nation-a/tokens/pandacss'

export default defineConfig({
  theme: {
    extend: {
      tokens: pandaTokens.primitive,
      semanticTokens: pandaTokens.semantic,
      textStyles: pandaTokens.textStyles,
    },
  },
})

Emotion에서 사용

import { ThemeProvider } from '@emotion/react';
import { emotionTokens } from '@nation-a/tokens/emotion'

...
  <ThemeProvider theme={emotionTokens.dark}>
...

토큰 생성 프로세스

  1. 피그마에서 Tokens Studio 플러그인을 통해 토큰을 추출합니다.
  2. 추출된 JSON 파일은 프로젝트 루트의 tokens.json에 저장됩니다.
  3. 빌드 프로세스에서 이 JSON 파일을 다양한 포맷으로 변환합니다:
    • TypeScript 타입 정의 생성
    • PandaCSS 호환 포맷 생성
    • Emotion 호환 포맷 생성

개발

# 의존성 설치
pnpm install

# 토큰 빌드
pnpm build

라이선스

MIT 라이선스