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

@gugbab/tokens

v1.0.0

Published

Design tokens for @gugbab/* — static token snapshots (MUI / Radix lookalike) → CSS variables. No external library dependencies.

Readme

@gugbab/tokens

@gugbab/*에서 쓰이는 디자인 토큰 모음. 외부 디자인 라이브러리 의존성 0 — MUI / Radix Themes 형태의 토큰을 정적 객체로 박제해 제공합니다.

  • 추상 ThemeTokens 타입 + 두 가지 정적 스냅샷 (MUI, Radix)
  • light / dark 변종 동시 제공
  • 빌드 산출물: dist/{mui,radix}.css:root / [data-theme="dark"] 셀렉터 + var(--gugbab-*) 변수
  • ESM + CJS 듀얼 빌드, 타입 정의 포함

설치

pnpm add @gugbab/tokens

사용 — CSS 변수 import

번들러 입구(앱 진입점)에서 한 번만 import 하면 <html> 전역에 변수가 주입됩니다.

// 앱 entrypoint (예: main.tsx, _app.tsx)
import '@gugbab/tokens/mui.css';   // 또는
import '@gugbab/tokens/radix.css';

dark 모드는 <html data-theme="dark">로 토글합니다.

/* 컴포넌트 CSS에서는 변수만 참조 */
.my-button {
  background: var(--gugbab-color-accent-base);
  color: var(--gugbab-color-accent-fg);
  padding: var(--gugbab-space-3) var(--gugbab-space-4);
  border-radius: var(--gugbab-radius-md);
}

사용 — TypeScript 객체 import

ThemeTokens 타입과 정적 스냅샷이 필요하면 직접 import.

import { muiTokensLight, muiTokensDark, radixTokensLight, type ThemeTokens } from '@gugbab/tokens';

const accent = muiTokensLight.color.accent.base;

토큰 카테고리

| 카테고리 | 키 | 예시 | | --- | --- | --- | | color.bg | app, surface, elevated, inset | --gugbab-color-bg-app | | color.fg | primary, secondary, muted, disabled, onAccent | --gugbab-color-fg-primary | | color.accent | base, hover, active, subtle, fg | --gugbab-color-accent-base | | color.{success,warning,danger,info} | base, fg, subtle | --gugbab-color-success-base | | color.border | subtle, base, strong, focus | --gugbab-color-border-base | | space | 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24 | --gugbab-space-3 | | radius | none, sm, md, lg, xl, full | --gugbab-radius-md | | font.size | xs, sm, md, lg, xl, 2xl, 3xl, 4xl | --gugbab-font-size-md | | font.weight | normal, medium, semibold, bold | --gugbab-font-weight-semibold | | font.family | sans, mono | --gugbab-font-family-sans | | lineHeight | tight, normal, relaxed | --gugbab-line-height-normal | | shadow | sm, md, lg, xl | --gugbab-shadow-md | | z | dropdown, overlay, modal, popover, tooltip, toast | --gugbab-z-modal | | breakpoint | sm, md, lg, xl, 2xl | --gugbab-breakpoint-md | | duration / easing | fast/normal/slow / default/in/out/inOut | --gugbab-duration-normal |

전체 키 목록은 src/types.ts 참조.

정적화 정책

토큰은 외부 라이브러리(@mui/material, @radix-ui/colors)를 빌드 타임에서도 참조하지 않습니다. 외부 디자인 변경에 자동 추적되지 않으며 의도적 갱신 시점에만 변경됩니다.

라이선스

MIT