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

metro-ui-design-system

v1.0.1

Published

A comprehensive Metro design system with live tiles, form components, and modern UI patterns

Readme

Metro UI Design System

Modern Metro-style UI component library inspired by Windows 8's Modern UI design language.

npm version License GitHub stars

Features

  • Live Tiles - Interactive tiles with flip, slide, and badge animations
  • Form Components - Custom select, multi-select, cascade select, checkboxes, radios, toggles, sliders
  • Navigation - Menubar, pivot, breadcrumb, pagination, stepper, hub layout
  • Feedback - Toast notifications, alerts, progress bars, spinners, skeletons
  • Interactive - Dropdowns, dialogs, flyouts, app bar, file upload, color picker
  • i18n Support - Built-in Chinese/English language switching
  • Dark Mode - Built-in theme support with CSS variables
  • Zero Dependencies - Pure HTML/CSS/JS, no frameworks required

Installation

npm

`ash npm install metro-ui-design-system `

CDN

`html

Manual

Download from GitHub Releases.

Quick Start

`html

Components

Layout

  • Live Tiles - Metro-style tiles with flip/slide animations
  • Hub - Horizontal scrolling layout with sections

Forms

  • Buttons - Primary, ghost, danger, success variants
  • Inputs - Text inputs with icons and validation states
  • Textarea - Multi-line text input
  • Select - Custom dropdown with search
  • Multi-Select - Multi-select with tags
  • Cascade - Linked dropdowns (e.g., country → city)
  • Search - Search box with clear button
  • Toggle - Switch controls
  • Checkbox - Custom checkboxes
  • Radio - Custom radio buttons
  • Slider - Range slider with value display
  • Number Input - Numeric input with increment/decrement

Data Display

  • Tags - Removable tag chips
  • Tag Input - Input with tag creation
  • Avatar - User avatars with status indicators
  • Badge - Status badges
  • List View - Grouped list with icons
  • Breadcrumb - Navigation path
  • Pagination - Page navigation
  • Stepper - Multi-step process indicator

Feedback

  • Alert - Info, success, warning, error messages
  • Toast - Non-blocking notifications
  • Progress - Determinate and indeterminate progress bars
  • Spinner - Loading indicators
  • Rating - Star rating component
  • Color Picker - Color swatch selector

Interactive

  • Dropdown - Click-triggered dropdown menus
  • Menu Bar - Application menu bar
  • Pivot - Tab-style navigation
  • Flyout - Floating panels
  • Dialog - Modal dialogs
  • App Bar - Bottom command bar

Utilities

  • File Upload - Drag-and-drop file upload
  • Skeleton - Loading placeholders
  • Empty State - Empty content placeholder
  • Tooltip - Hover tooltips
  • Icons - 50+ SVG icon set

Usage Examples

Buttons

`html Default Primary Danger Success `

Live Tiles

`html

Toast Notifications

`javascript metroToast({ type: 'success', title: 'Success', message: 'Operation completed!', duration: 4000 }); `

Custom Select

`html

Menu Bar

`html

Theming

Metro UI uses CSS custom properties for easy customization:

`css :root { --metro-accent: #0078d4; --metro-accent-d: #106ebe; --metro-success: #107c10; --metro-warning: #ff8c00; --metro-error: #d13438;

--metro-space-1: 4px; --metro-space-2: 8px; --metro-space-3: 12px; --metro-space-4: 16px;

--metro-font-family: 'Segoe UI', system-ui, sans-serif; }

[data-theme="dark"] { --metro-bg: #1e1e1e; --metro-fg: #ffffff; --metro-line: #3f3f3f; } `

Dark Mode Toggle

`javascript // Enable dark mode document.documentElement.setAttribute('data-theme', 'dark');

// Disable dark mode document.documentElement.removeAttribute('data-theme'); `

i18n Support

Built-in language switching between Chinese and English:

`html

中文 English

切换语言 `

`javascript // Switch language programmatically document.documentElement.setAttribute('data-lang', 'en'); // or 'zh' `

Browser Support

  • Chrome/Edge 90+
  • Firefox 88+
  • Safari 14+

Development

`ash

Clone repository

git clone https://github.com/ethanfly/metro-ui.git cd metro-ui

Build dist files

npm run build

Start local server

npx serve `

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT License - see LICENSE file for details.

Links

  • npm: https://www.npmjs.com/package/metro-ui-design-system
  • GitHub: https://github.com/ethanfly/metro-ui
  • Demo: https://ethanfly.github.io/metro-ui/index.html
  • Docs: https://ethanfly.github.io/metro-ui/docs.html

Made with ❤️ by Ethan