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

pixel-bit

v1.0.13

Published

Retro pixel art UI components library.

Readme

🎮 Pixel Bit

Retro pixel-art UI component library inspired by classic 8-bit and 16-bit games

npm version npm downloads license

Bring the nostalgic feel of Game Boy, NES, and classic RPGs to your web projects with Pixel Bit – a lightweight CSS library featuring pixel-perfect components with retro gaming aesthetics.


✨ Features

  • 🎨 Authentic pixel-art styling inspired by classic games
  • 🎮 Game Boy Color palette with fire, water, electric, grass themes
  • Lightweight – Pure CSS, no JavaScript required
  • 📦 Easy to use – Just add classes
  • 🔧 Customizable – Multiple variants and sizes
  • 🌐 Framework agnostic – Works with React, Vue, vanilla HTML, etc.
  • Accessible – Semantic HTML compatible

📦 Installation

Via NPM

npm install pixel-bit
import "pixel-bit/dist/pixel-bit.css";

Via CDN

<link
  rel="stylesheet"
  href="https://unpkg.com/pixel-bit@latest/dist/pixel-bit.css"
/>

🚀 Quick Start

<!DOCTYPE html>
<html>
  <head>
    <link
      rel="stylesheet"
      href="https://unpkg.com/pixel-bit@latest/dist/pixel-bit.css"
    />
  </head>
  <body>
    <!-- Buttons -->
    <button class="pb-btn pb-fire pb-btn-lg">Fire Attack</button>
    <button class="pb-btn pb-water pb-btn-md">Water Splash</button>
    <button class="pb-btn pb-electric pb-btn-sm">Thunder Bolt</button>

    <!-- Input -->
    <input type="text" class="pb-input pb-grass" placeholder="Enter text..." />

    <!-- Progress Bar -->
    <div class="pb-bar hp-bar">
      <div class="pb-bar-fill" style="width: 75%;"></div>
    </div>
  </body>
</html>

📚 Components

Buttons

Classic pixel-art buttons with multiple themes and sizes.

<!-- Themes -->
<button class="pb-btn pb-fire">Fire</button>
<button class="pb-btn pb-water">Water</button>
<button class="pb-btn pb-electric">Electric</button>
<button class="pb-btn pb-grass">Grass</button>
<button class="pb-btn pb-ghost">Ghost</button>

<!-- Sizes -->
<button class="pb-btn pb-fire pb-btn-sm">Small</button>
<button class="pb-btn pb-water pb-btn-md">Medium</button>
<button class="pb-btn pb-electric pb-btn-lg">Large</button>

<!-- States -->
<button class="pb-btn pb-grass" disabled>Disabled</button>

Input Fields

Retro-styled text inputs with Game Boy aesthetics.

<input type="text" class="pb-input pb-fire" placeholder="Player name..." />
<input type="email" class="pb-input pb-water pb-input-lg" />

Progress Bars

HP, MP, XP bars with smooth animations.

<!-- HP Bar -->
<div class="pb-bar hp-bar">
  <div class="pb-bar-fill" style="width: 60%;"></div>
</div>

<!-- MP Bar -->
<div class="pb-bar mp-bar">
  <div class="pb-bar-fill" style="width: 80%;"></div>
</div>

<!-- XP Bar -->
<div class="pb-bar xp-bar">
  <div class="pb-bar-fill" style="width: 45%;"></div>
</div>

<!-- Loading Bar -->
<div class="pb-bar loading-bar">
  <div class="pb-bar-fill" style="width: 100%;"></div>
</div>

Select Dropdowns

<select class="pb-select pb-electric">
  <option>Pikachu</option>
  <option>Raichu</option>
  <option>Voltorb</option>
</select>

Textareas

<textarea
  class="pb-textarea pb-grass"
  placeholder="Write your message..."
></textarea>

Radio Buttons

<label class="pb-radio pb-radio-fire">
  <input type="radio" name="starter" />
  <span>Charmander</span>
</label>

<label class="pb-radio pb-radio-water">
  <input type="radio" name="starter" />
  <span>Squirtle</span>
</label>

Toggle Switches

<label class="pb-toggle pb-toggle-electric">
  <input type="checkbox" />
  <span class="slider"></span>
</label>

Range Sliders

<input
  type="range"
  class="range-slider range-fire"
  min="0"
  max="100"
  value="50"
/>

File Upload

<label class="file-upload file-water">
  Choose File
  <input type="file" />
</label>

🎨 Available Themes

  • pb-fire – Red/orange (🔥)
  • pb-water – Blue (💧)
  • pb-electric – Yellow (⚡)
  • pb-grass – Green (🌿)
  • pb-ghost – Purple (👻)

📏 Available Sizes

  • pb-btn-sm / pb-input-sm – Small
  • pb-btn-md / pb-input-md – Medium (default)
  • pb-btn-lg / pb-input-lg – Large

🎯 Use Cases

Perfect for:

  • 🎮 Retro game websites
  • 💼 Gaming portfolios
  • 🕹️ HTML5 game UIs
  • 📱 Nostalgic web apps
  • 🎨 Pixel-art themed projects
  • 🏆 Game jam projects

🌐 Browser Support

  • ✅ Chrome/Edge (latest)
  • ✅ Firefox (latest)
  • ✅ Safari (latest)
  • ✅ Mobile browsers

📖 Documentation

For detailed documentation and live examples, visit: GitHub Repository


🤝 Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest new components
  • Submit pull requests

📄 License

MIT © [Tu Nombre]


🎮 Inspired By

Classic games: Pokémon, Final Fantasy, Dragon Quest, and the golden era of 8-bit and 16-bit gaming.


⭐ Show Your Support

Give a ⭐️ if this project helped you!


Made with ❤️ for retro gaming lovers