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

dotmatrix.css

v0.2.0

Published

Classless pixel-art CSS framework with textures and bevels — write semantic HTML, get a retro CRT interface for free.

Readme

dotmatrix.css

Classless pixel-art CSS framework — write semantic HTML, get a retro CRT interface for free.

Version Size License

Features

  • Classless — zero classes required, styles semantic HTML directly
  • Lightweight — ~5KB gzipped, no JavaScript
  • Retro aesthetic — pixel-art UI with CRT terminal vibes
  • Themeable — CSS variables for full customization
  • Textured — 8 paper/grain/dot patterns via data-texture attribute
  • Beveled — 3D pressed/raised surfaces via data-bevel attribute
  • Accessible — proper focus states, semantic structure, captions on tables, labeled navs
  • Responsive — desktop-first, collapses gracefully on smaller screens

Quick Start

CDN

<link rel="stylesheet" href="https://unpkg.com/[email protected]/dotmatrix.css">

npm

npm install dotmatrix.css
import 'dotmatrix.css/dotmatrix.css';

Manual

Download dotmatrix.css and link it:

<link rel="stylesheet" href="dotmatrix.css">

Usage

Just write semantic HTML:

<!DOCTYPE html>
<html lang="en">
<head>
  <link rel="stylesheet" href="dotmatrix.css">
</head>
<body>
  <header>
    <h1>My Retro App</h1>
    <nav>
      <ul>
        <li><a href="#home">Home</a></li>
        <li><a href="#about">About</a></li>
      </ul>
    </nav>
  </header>
  
  <main>
    <article>
      <h2>Welcome</h2>
      <p>This is a paragraph with <strong>bold</strong> and <em>italic</em>.</p>
      <button>Click me</button>
    </article>
  </main>
</body>
</html>

That's it. No classes, no JavaScript, no build step.

Textures

Apply any of 8 texture patterns to any element with a single attribute:

<article data-texture="paper">...</article>     <!-- recycled paper grain -->
<section data-texture="dots">...</section>      <!-- graph paper -->
<div data-texture="halftone">...</div>          <!-- newsprint photo -->
<aside data-texture="hatch">...</aside>         <!-- cross-hatch weave -->
<header data-texture="stripes">...</header>     <!-- 45° stripes -->
<footer data-texture="noise">...</footer>       <!-- xerox grain -->
<div data-texture="carbon">...</div>            <!-- gradient + grain -->
<main data-texture="phosphor">...</main>       <!-- CRT RGB dots -->

Presets

Quick combos for common aesthetics:

<body data-texture-preset="vintage">  <!-- strong brown grain -->
<body data-texture-preset="sepia">    <!-- subtle warm grain -->
<body data-texture-preset="phosphor"> <!-- for dark themes -->
<body data-texture-preset="subtle">   <!-- barely there -->
<body data-texture-preset="strong">   <!-- pronounced -->

Bevels

3D pressed or raised look with a single attribute:

<button data-bevel="out">Raised button</button>
<input data-bevel="in" type="text">          <!-- sunken input -->
<div data-bevel="out">Raised panel</div>

Themes

Light (default)

<body>
  <!-- Light theme is automatic -->
</body>

Dark

<body data-theme="dark">
  <!-- Dark theme activated -->
</body>

Customization

Override CSS variables to create your own theme:

:root {
  --dm-bg: #1a1a2e;
  --dm-accent: #ff6b6b;
  --dm-text: #eaeaea;
  --dm-font-size: 14px;
  --dm-texture: 1;
  --dm-texture-color: rgba(255, 100, 100, 0.15);
}

All available variables:

:root {
  /* Colors */
  --dm-bg: #f0f0e8;
  --dm-surface: #e8e8e0;
  --dm-surface-2: #dcdcd0;          /* NEW: deeper surface variant */
  --dm-border: #b0b0a0;
  --dm-border-light: #d0d0c0;      /* NEW: bevel highlight */
  --dm-border-dark: #808070;       /* NEW: bevel shadow */
  --dm-text: #1a1a1a;
  --dm-text-muted: #666655;
  --dm-accent: #006600;
  --dm-accent-dim: #004400;
  --dm-accent-alt: #aa6600;
  --dm-danger: #cc0000;
  --dm-success: #006600;

  /* Typography */
  --dm-font: 'Courier New', monospace;
  --dm-font-size: 13px;
  --dm-line-height: 1.6;
  --dm-heading-font: 'Courier New', monospace;

  /* Spacing */
  --dm-space-xs: 4px;
  --dm-space-sm: 8px;
  --dm-space-md: 16px;
  --dm-space-lg: 24px;
  --dm-space-xl: 32px;
  --dm-space-2xl: 48px;

  /* Borders */
  --dm-border-width: 2px;
  --dm-radius: 0px;
  --dm-pixel: 2px;                  /* stepped shadow offset */

  /* Effects */
  --dm-scanlines: 1;                /* 0-2, scanline intensity */
  --dm-texture: 0;                  /* 0-2, texture intensity */
  --dm-texture-color: rgba(0,0,0,0.08);
  --dm-emoji-style: text;           /* text | emoji | unicode */
  --dm-max-width: 800px;
}

Demos

See dotmatrix.css in action across 10 real-world apps:

  1. Landing page — marketing site
  2. Auth flows — sign-in / sign-up / 2FA
  3. SaaS dashboard — CRM with sidebar + KPI + charts
  4. Pricing — tiered plans + comparison
  5. Long-form essay — blog/article with TOC
  6. Library catalog — book grid with filters
  7. Bakery — pastry shop with order form
  8. IRC / BBS social — chat + forum threads
  9. Encyclopedia — Encarta-style article
  10. Running tracker — GPS map + stats + training calendar

Showcase hub: showcase/index.html — links all 10 with texture/bevel previews.

Each demo uses a different theme via CSS variable overrides. Same HTML semantics, radically different vibes.

Browser Support

  • Chrome/Edge (last 2 versions)
  • Firefox (last 2 versions)
  • Safari (last 2 versions)

data-texture and data-bevel use only standard CSS (gradients, box-shadow) — works everywhere.

font-variant-emoji: text requires Chrome 131+, Firefox 132+, Safari 18.2+. Falls back gracefully to native emoji on older browsers.

Inspiration

  • Spidey Tracker — Sony/Samsung promotional site with CRT terminal aesthetic
  • NES.css — 8-bit CSS framework (requires classes)
  • Pico CSS — classless CSS framework
  • Water.css — minimal classless stylesheet

Philosophy

Less is more. You shouldn't need to add class="btn btn-primary" to every button. Your HTML tags already have semantic meaning — let them style themselves.

dotmatrix.css exists because:

  1. Existing pixel-art frameworks (NES.css) require verbose class names
  2. Classless frameworks (Pico, Water) lack retro aesthetics
  3. Building retro UIs from scratch wastes tokens and time
  4. No other framework combines classless + pixel-art + textures + bevels in one small file

Development

# View the main demo
open demo.html

# View the showcase hub
open showcase/index.html

# View individual demos
open demos/03-dashboard.html

No build step. It's just CSS.

Contributing

Issues and PRs welcome. Keep it simple, keep it classless.

License

MIT © 2026