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

@flessan/8.css

v0.2.0

Published

A CSS-only Windows 8 Modern UI library with flat components and a Metro-style SVG icon set.

Readme

8.css

A CSS-only Windows 8 Modern UI library, with a custom Metro-style SVG icon set.

8.css brings the flat, colorful Start Screen and Windows 8 desktop language to semantic HTML: tiles, controls, app bars, windows, dialogs, and a reusable 50-icon vector sprite. It works with plain HTML and JavaScript frameworks without requiring a JavaScript runtime.

What is included

  • Start Screen tiles with solid Windows 8-inspired colors and responsive size modifiers.
  • Buttons, text fields, choices, toggles, progress indicators, notices, tabs, app bars, windows, and dialog styling.
  • 50 lightweight SVG symbols inspired by the simple geometry of Windows 8 Modern UI.
  • An icon CSS module with sizing utilities, square app-bar buttons, and accessible visually-hidden labels.
  • Interactive documentation, copyable HTML snippets, and modular stylesheets.

The icons are original redrawings made for this project, not extracted Microsoft artwork. 8.css is an independent community project and is not an official Microsoft product.

Install from npm

npm install @flessan/8.css

Import the complete stylesheet:

import "@flessan/8.css";

For plain HTML, use the CDN bundle:

<link rel="stylesheet" href="https://unpkg.com/@flessan/[email protected]/dist/8.css">

The same package is also available through GitHub Packages. To resolve the @flessan scope through GitHub Packages in a project, add this to its .npmrc:

@flessan:registry=https://npm.pkg.github.com

npm remains the default registry declared by this package.

Use the icon sprite

The vector sprite is published separately at dist/icons.svg. Reference an icon symbol with an SVG use element:

<svg class="w8-icon w8-icon--large" role="img" aria-label="Mail">
  <use href="https://unpkg.com/@flessan/[email protected]/dist/icons.svg#w8-icon-mail"></use>
</svg>

For decorative icons, use aria-hidden="true". For icon-only controls, add an accessible label to the button itself:

<button class="w8-icon-button" type="button" aria-label="Search">
  <svg class="w8-icon w8-icon--large" aria-hidden="true">
    <use href="https://unpkg.com/@flessan/[email protected]/dist/icons.svg#w8-icon-search"></use>
  </svg>
  <span class="w8-icon-button__label">Search</span>
</button>

Available symbols: w8-icon-home, w8-icon-mail, w8-icon-calendar, w8-icon-photos, w8-icon-desktop, w8-icon-weather, w8-icon-search, w8-icon-settings, w8-icon-share, w8-icon-user, w8-icon-people, w8-icon-phone, w8-icon-chat, w8-icon-globe, w8-icon-wifi, w8-icon-bluetooth, w8-icon-battery, w8-icon-power, w8-icon-lock, w8-icon-folder, w8-icon-file, w8-icon-download, w8-icon-upload, w8-icon-refresh, w8-icon-edit, w8-icon-delete, w8-icon-check, w8-icon-close, w8-icon-back, w8-icon-forward, w8-icon-play, w8-icon-pause, w8-icon-stop, w8-icon-volume, w8-icon-menu, w8-icon-camera, w8-icon-music, w8-icon-video, w8-icon-info, w8-icon-help, w8-icon-heart, w8-icon-pin, w8-icon-map, w8-icon-print, w8-icon-copy, w8-icon-save, w8-icon-star, w8-icon-clock, w8-icon-notifications, w8-icon-cloud.

See the interactive documentation for the complete visual catalog and copyable examples.

Modules and customization

The full stylesheet is dist/8.css. For a smaller bundle, load base.css first, then the modules required by your markup. Load icons.css when using icon sizing or icon-button helpers; icons.svg supplies the actual vector symbols.

import "@flessan/8.css/dist/gui/base.css";
import "@flessan/8.css/dist/gui/buttons.css";
import "@flessan/8.css/dist/gui/icons.css";

Development

Requires Node.js 20 or newer.

npm run build
npm test
npm run build:site

Source of truth:

  • gui/: maintained CSS modules.
  • icons/icons.svg: source icon sprite.
  • src/8.css: generated combined stylesheet.
  • dist/8.css, dist/gui/, dist/icons.svg: consumer distribution.
  • docs/index.html, docs/8.css, docs/icons.svg: documentation site.

Do not hand-edit generated CSS or sprite copies; update the source and rebuild. The checks validate module parity, CSS structure, distribution files, and expected icon IDs.

Accessibility boundary

This package supplies styling and vector icons only. It does not implement tab navigation, toggle state, live tiles, or window controls. Use semantic controls, accessible names, visible focus indicators, sufficient contrast, and reduced-motion support. Icons inherit currentColor so they adapt to the foreground color of a tile, toolbar, or button.

License

MIT. See LICENSE. The license and attribution for the original Windows-8-Metro-UI prototype remain preserved.