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

@x-plat/tokens-default

v0.2.10

Published

XPLAT Design System - Default Color Tokens

Readme

@x-plat/tokens-default

XPLAT 디자인 시스템의 기본 브랜드 토큰 패키지. 색상은 blue 계열 primary 기반.

설치

npm install @x-plat/tokens-default

사용법

1. CSS 변수 import (가장 일반적)

import "@x-plat/tokens-default/tokens.css";

:root 에 모든 토큰을 CSS 변수로 주입한다.

2. JS 객체 import (CSS 생성기 등에서)

import {
  brand,           // 색상 brand
  system,          // 색상 system (success/error/warning/info/link)
  spacingBrand,    // spacing brand
  typoBrand,       // typography brand (default density)
  // core 재export
  primitive,
  semantic,
  spacingPrimitive,
  spacingSemantic,
  typoPrimitive,
  typoSemantic,
} from "@x-plat/tokens-default";

3. Figma 플러그인 (DTCG JSON)

https://unpkg.com/@x-plat/tokens-default/dist/tokens.dtcg.json

@x-plat/figma-plugin-init-tokens 플러그인이 이 URL 을 자동으로 fetch.

4-layer 구조

primitive    (tokens-core)   기초 팔레트 / 사이즈
   ↓
brand        (이 패키지)      primary=blue / secondary=light-blue / neutral
system       (이 패키지)      success=green / error=red / warning=yellow / info=blue / link=deep-purple
   ↓
semantic     (tokens-core)   text/surface/border/icon/emphasis/interaction

컴포넌트는 semantic 만 사용. brand/system 까지가 브랜드별 차별점.

CSS 변수 prefix

  • --primitive-* : 기초 팔레트
  • --brand-* : brand 계열
  • --system-* : system 계열 (success/error/warning/info/link)
  • --semantic-* : 의미 기반 매핑 (컴포넌트가 사용)
  • --spacing-* : 모든 spacing
  • --typo-* : typography (primitive)
  • --typo-brand-* : typography brand
  • --semantic-typo-* : typography semantic
  • .typo-display-1-b 등 utility class 도 함께 제공

라이선스

Private. XPLAT WOONG.