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

@dg-design/tokens

v0.13.1

Published

Dogeol Design System(DDS)의 디자인 토큰 패키지. OKLCH 파생 팔레트를 CSS 변수·Tailwind v4 브릿지·타입으로 생성한다.

Readme

@dg-design/tokens

Dogeol Design System(DDS)의 토큰 패키지. OKLCH 파생 팔레트에서 생성한 CSS 변수와 Tailwind v4 브릿지를 제공한다.

설치

pnpm add @dg-design/tokens

사용법

tokens.css는 자동 로드되지 않는다. 앱 진입점에서 직접 import한다 — 수동 로드가 설계 의도이며, 로드 순서 제어권을 소비 앱에 둔다.

import "@dg-design/tokens/tokens.css";

다크 모드는 <html data-dds-theme="dark">로 전환한다. 시스템 감지는 소비 앱 책임이다. 하위 요소에 data-dds-theme="light"/"dark"를 붙이면 그 영역만 모드가 바뀌고, 중첩되면 가장 가까운 조상을 따른다(중첩 스코프).

모바일 밀도는 <html data-dds-density="mobile">로 전환한다. 역할 토큰(--dds-space-*·--dds-size-*·역할 radius 등)만 바뀌고 색·스케일은 그대로다. 루트에만 붙인다(밀도).

Tailwind v4 브릿지

tokens.css 선로드 후 브릿지를 @import한다 (값을 복제하지 않고 변수만 재바인딩).

@import "@dg-design/tokens/tokens.css";
@import "@dg-design/tokens/tailwind.css";

유틸 예시: <div class="bg-bg-brand-solid">, gap-field-gap, rounded-field, duration-fast, z-overlay (Tailwind 4.3.3에서 컴파일 확인)

토큰 문법

--dds-{category}-{role}-{intent}-{emphasis}[-{state}] (예: --dds-color-bg-brand-solid-hover). role마다 축이 달라 모든 조합이 존재하진 않는다.

--dds-color-palette-*는 내부 구현이며 공개 API가 아니다. 직접 참조하지 말 것.

공개 API (semver 대상)

| 공개 | 비공개 | |------|--------| | semantic 색 토큰 · dimension/radius/typography 스케일 · 역할 토큰 · data-dds-theme · data-dds-density · exports 경로 | --dds-color-palette-* |

커스터마이즈

브랜드 hex 하나로 전체 토큰 CSS를 새로 생성하는 createTheme(+ CLI), 토큰 오버라이드, @layer 규칙은 docs/customization.md에서 다룬다.