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/textures

v0.1.3

Published

Tennantite pixel textures — vanilla Minecraft GUI PNG sprites, redrawn nine-slices and vanilla item/status icons

Readme

@tennantite/textures

npm version github

Vanilla Minecraft GUI textures and item/status icons as CSS sprite stylesheets with typed sprite metadata.

@tennantite/textures is the texture layer of the Tennantite component family. It ships pixel-perfect vanilla Minecraft GUI sprites (buttons, panels, slots, scrollbars) redrawn as nine-slice border-image textures, plus item, HUD, and block icons embedded as PNG data URIs. All texture classes render with image-rendering: pixelated and scale with the GUI pixel variable from @tennantite/tokens. This package contains no React components.

Installation

npm install @tennantite/textures

or with pnpm:

pnpm add @tennantite/textures

Styles

The package publishes one stylesheet per sprite layer under css/. Each mod stylesheet already @imports its generated sprite data, so importing a single file per layer is enough. Import in this order: tokens first, then vanilla textures, then any mod texture layers.

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

/* Optional per-mod sprite layers, e.g.: */
@import "@tennantite/textures/css/mekanism-textures.css";
@import "@tennantite/textures/css/farmersdelight-textures.css";

Usage

Texture classes such as mc-tex-btn become available as soon as the CSS is imported, and the JS entry exposes typed sprite metadata and icon data URIs:

import { guiSpriteMeta, isBlockIconName, pixelIcons } from "@tennantite/textures";

export function VanillaButton({ children }: { children: React.ReactNode }) {
  return <button className="mc-tex-btn">{children}</button>;
}

export function AppleIcon() {
  // pixelIcons maps icon names to PNG data URIs
  return <img src={pixelIcons.apple} width={16} height={16} alt="Apple" />;
}

export function GuiSpriteExample() {
  // Sprite metadata includes the generated CSS class and variable for each sprite
  const meta = guiSpriteMeta["advancements/backgrounds/adventure.png"];
  return <div className={meta.className} />;
}

export function isBlock(name: string) {
  return isBlockIconName(name as Parameters<typeof isBlockIconName>[0]);
}

Exports

Per-mod sprite metadata (typed name → class/variable/scaling data):

  • guiSpriteMeta, GuiSpriteName, GuiSpriteMeta — vanilla GUI sprites
  • mekanismSpriteMeta, MekanismSpriteName, MekanismSpriteMeta, MekanismSpriteScaling
  • ae2SpriteMeta, Ae2SpriteName, Ae2SpriteMeta
  • createSpriteMeta, CreateSpriteName, CreateSpriteMeta, CreateSpriteScaling
  • ic2SpriteMeta, Ic2SpriteName, Ic2SpriteMeta
  • ieSpriteMeta, IeSpriteName, IeSpriteMeta, IeSpriteScaling
  • thermalSpriteMeta, ThermalSpriteName, ThermalSpriteMeta, ThermalSpriteScaling
  • eioSpriteMeta, EioSpriteName, EioSpriteMeta
  • industrialForegoingSpriteMeta, IndustrialForegoingSpriteName, IndustrialForegoingSpriteMeta
  • farmersDelightSpriteMeta, FarmersDelightSpriteName, FarmersDelightSpriteMeta

Icons and layouts:

  • pixelIcons, FlatIconName — flat item/HUD icon data URIs
  • blockFaces, BlockIconName — isometric block icon data
  • PixelIconName — union of all icon names
  • isBlockIconName — narrows an icon name to a block icon
  • iconNames — all icon names, sorted alphabetically
  • guiIcons, GuiIconName — vanilla GUI/hud icons
  • containerSlots, ContainerSpriteName — vanilla container slot layouts

Assets

Interface textures are redrawn from the original GUI assets of Minecraft and the respective mods and remain the property of their authors. See LICENSE-ASSETS.md.

Related packages