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

@touch-grass-ds/tokens

v1.0.1

Published

Brutalist design tokens. CSS variables, Tailwind v4 theme, Figma W3C JSON, and Swift constants from one source.

Readme

@touch-grass-ds/tokens

Design tokens for Touch Grass — the open-source brutalist design system. Built on Style Dictionary 4, emits one set of primitive tokens across four targets so web, Figma, and iOS stay in lockstep.

src/*.json                                       (source of truth, JSON)
         │
         ▼  style-dictionary
    ┌─────────────────────────────────────────┐
    │  dist/tokens.css           CSS variables │
    │  dist/tailwind.theme.css   Tailwind v4   │
    │  dist/figma-tokens.json    W3C format    │
    │  Sources/TouchGrassTokens/*.swift        │
    └─────────────────────────────────────────┘

Install

npm install @touch-grass-ds/tokens
# or
pnpm add @touch-grass-ds/tokens

Usage

Plain CSS

@import "@touch-grass-ds/tokens";

.card {
  background: var(--color-bg);
  color: var(--color-fg);
  padding: var(--space-4);
  border: 1px solid var(--color-hairline);
}

Tailwind CSS v4

@import "tailwindcss";
@import "@touch-grass-ds/tokens/tailwind";

Then use token-named utilities in your markup: bg-bg, text-ink, border-hairline, p-4, etc. Tailwind reads the @theme block from the imported CSS.

Figma

# generate once
pnpm --filter @touch-grass-ds/tokens build
# import dist/figma-tokens.json into the Figma variables panel

The JSON follows the W3C Design Tokens Community Group format — any tool that understands $value / $type / $description will consume it.

iOS / Swift (SPM)

Package.swift at the repo root exposes the Swift constants as a package. Add the repo URL to your Xcode project as a Swift Package Manager dependency:

https://github.com/thiagoxikota/touch-grass

Then:

import TouchGrassTokens

let accent = TouchGrassTokens.Color.earned     // "#a6ff00"
let spacing = TouchGrassTokens.Space.space4    // 16

The Swift source is regenerated every time you run pnpm --filter @touch-grass-ds/tokens build.

Token categories

| Category | What it covers | |---|---| | color | 4 primary colors (bg, fg, earned, danger) + 2 structural (hairline, bg-alt) | | space | 0, 1, 2, 3, 4, 6, 8, 12, 16 — no speculative scale, just what's used | | size | Fixed sizes (tap target 48, icon 16/20/24, hairline 1/2) | | radius | Exactly one token: 0. Intentional. | | font | geist-mono + geist-sans families, weight scale 400/600/700/800/900 | | type | Role-based type tokens (label, body, heading, stat, timer) |

Development

pnpm --filter @touch-grass-ds/tokens build    # regenerate all outputs
pnpm --filter @touch-grass-ds/tokens test     # verify output integrity

Token sources live in src/*.json. Edit those, then rebuild. Never hand-edit dist/ or Sources/.

License

MIT © Thiago Xikota