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

@tennantite/tokens

v0.1.3

Published

Tennantite design tokens — Minecraft-style Tailwind v4 theme variables

Readme

@tennantite/tokens

npm version github

Design tokens for Minecraft-style interfaces, exposed as Tailwind CSS v4 theme variables.

@tennantite/tokens is the base layer of the Tennantite component family. It provides the --color-mc-* color palette, Minecraft GUI metrics (GUI pixel scale, text size), small utility classes such as mc-text and mc-scale-scope, the bundled Minecraft pixel font, and TypeScript constants that mirror the CSS values. The visual baseline is the vanilla Minecraft Java Edition GUI. This package contains no React components.

Installation

npm install @tennantite/tokens

or with pnpm:

pnpm add @tennantite/tokens

Styles

Import the tokens stylesheet inside your Tailwind CSS entry, after Tailwind itself:

@import "tailwindcss";
@import "@tennantite/tokens/css/tokens.css";

This registers the --color-mc-* theme variables (so utilities like bg-mc-panel and text-mc-text-main are generated), the GUI pixel scale variables (--mc-scale, --mc-gui), the @font-face rules for the Minecraft font, and utility classes such as mc-text, mc-text-shadow, mc-border, and mc-scale-scope.

Overriding variables

Because everything is plain Tailwind v4 @theme CSS, you can override tokens in your own entry file after the import:

@import "tailwindcss";
@import "@tennantite/tokens/css/tokens.css";

@theme {
  /* Re-theme the palette for your own mod UI */
  --color-mc-accent-green: #7ec850;
  --color-mc-panel: #d8d0c0;
}

Usage

The JS entry exports the same palette as typed constants, so you can read token values in code:

import { mcColors, mcFonts } from "@tennantite/tokens";

export function StatusLine() {
  return (
    <span style={{ color: mcColors.gold, fontFamily: mcFonts.mc }}>
      Ready
    </span>
  );
}

Exports

  • mcColors — sampled Minecraft GUI colors (panel, buttons, slots, tooltips, chat colors, etc.), keyed by camelCase name
  • mcFonts — font stack constants, keyed by name (mc)
  • McColorToken — type of the mcColors keys

Subpath exports:

  • @tennantite/tokens/css/* — stylesheets (css/tokens.css)
  • @tennantite/tokens/fonts/* — the bundled Minecraft pixel font (Minecraft.otf, Minecraft-Bold.otf), loaded automatically by tokens.css

Font license

The bundled Minecraft font (by Idrees Hassan) is distributed under the SIL Open Font License 1.1; see the license file in the repository: packages/tokens/fonts/LICENSE-Minecraft-Font.txt.

Related packages