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

monospace-web-theme

v1.1.4

Published

A pure‐CSS + JS monospace grid theme for any static site

Readme

npm version License: MIT

monospace-web-theme

A pure CSS + JavaScript theme that enforces a character-aligned grid, monospace typography, and responsive design.

Live demo: CameronBrooks11.github.io/monospace-web-theme


Usage

Raw HTML

<head>
  <!-- …other tags… -->
  <link
    rel="stylesheet"
    href="https://cdn.jsdelivr.net/npm/[email protected]/dist/monospace.min.css"
  />
</head>
<body>
  <!-- your content… -->
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/monospace.min.js"></script>
</body>

npm / Bundler

npm install monospace-web-theme

In your JavaScript entrypoint (e.g. index.js):

import "monospace-web-theme/dist/monospace.min.css";
import "monospace-web-theme/dist/monospace.min.js";

🌈 Theme Flavours

The default style is high-contrast black-on-white (and inverted in dark mode). To try some different colour styles, set a data-theme attribute on <html>:

<html data-theme="twilight"></html>

Supported themes:

  • rose – romantic pinks
  • ocean – cool aquas
  • forest – soft greens
  • desert – warm sands
  • twilight – dusky purples
  • sepia – editorial browns
  • glacier – icy blues
  • clay – muted earth
  • midnight – dark mode primary
  • sandstone – soft red earth

All themes support prefers-color-scheme: dark automatically.

Demo

A standalone demo page is included under demo/demo.html. To preview locally:

  1. Clone this repo and install dependencies:
git clone https://github.com/CameronBrooks11/monospace-web-theme.git
cd monospace-web-theme
npm install
npm run build
  1. Serve from the project root so that ../dist/… paths resolve:
live-server --open=demo/demo.html
  1. Open http://127.0.0.1:8080/demo/demo.html in your browser.

Advanced Pandoc-driven Example

If you’re looking for a more turnkey Markdown → HTML workflow (Pandoc + GitHub Actions), check out the-monospace-web. It uses this theme as an npm dependency and publishes a fully responsive, character-aligned site from your .md files.

Build & Publish

  1. Install dependencies
npm install
  1. Build the CSS/JS
npm run build
  • dist/monospace.css – concatenated (unminified) CSS
  • dist/monospace.min.css – minified CSS (cssnano, calc disabled)
  • dist/monospace.js – compiled ES5 JS
  • dist/monospace.min.js – minified JS (terser)
  1. Verify package contents
npm pack --dry-run

Ensure only dist/*, README.md, LICENSE, and package.json appear.

  1. Publish to npm

Bump the version in package.json, create a Git tag (e.g. git tag v0.0.1), then:

git push --tags
npm publish

Contributing

  1. Fork this repository and clone your fork.
  2. Create a new branch for your change.
  3. Modify src/reset.css, src/theme.css, or src/script.js as needed.
  4. Rebuild locally and confirm the demo.
  5. Commit your changes, push to your branch, and open a pull request.

License

This project is released under the MIT License.

Repository & Issues

  • Source: https://github.com/CameronBrooks11/monospace-web-theme
  • Issues: https://github.com/CameronBrooks11/monospace-web-theme/issues