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

@materialwebunofficial/md3e-web

v1.0.14

Published

Unofficial Web Adaptation of Material Design 3 Expressive (M3 Expressive) - Web Components, Design Tokens, Spring Physics, and HCT Dynamic Theme Engine

Readme

MD3E Web

Unofficial Material Design 3 Expressive for the web: dependency-free Web Components, design tokens, spring motion and dynamic color theming.

Live demo

Unofficial hobby project. Not affiliated with, sponsored by or endorsed by Google LLC. This project is vibe coded and provided as-is, without warranty or any commitment to maintenance or support.

Features

  • No runtime dependencies. Native Custom Elements, Shadow DOM, CSS custom properties and ES modules.
  • 46 components modeled on the AndroidX Compose Material 3 sources.
  • Dynamic color. HCT/CAM16 color schemes from any seed color, using a bundled copy of Material Color Utilities.
  • Spring motion based on Compose's expressive and standard motion schemes.
  • Forms and accessibility. Form-associated controls, ARIA roles and keyboard navigation.
  • Bundled assets. Roboto variable font and a Material Symbols Rounded subset.

Installation

CDN

No build step needed. Add the tokens stylesheet and the component bundle:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@materialwebunofficial/md3e-web/dist/tokens.min.css">
<script type="module" src="https://cdn.jsdelivr.net/npm/@materialwebunofficial/md3e-web/dist/md3-expressive.esm.js"></script>

<md-button variant="filled">Filled button</md-button>
<md-slider value="75" labeled></md-slider>
<md-loading-indicator></md-loading-indicator>

unpkg and esm.sh serve the same files.

npm

npm install @materialwebunofficial/md3e-web
import '@materialwebunofficial/md3e-web/tokens'; // tokens, fonts and icons
import '@materialwebunofficial/md3e-web';        // registers every component

To register only what you use, import individual components:

import '@materialwebunofficial/md3e-web/components/md-button.js';
import '@materialwebunofficial/md3e-web/components/md-slider.js';

Importing a module registers its elements as a side effect, so the package does not declare sideEffects: false.

Frameworks

Components need a DOM when they are imported. Import them in browser code only, for example inside useEffect or onMounted. Server rendering outputs the plain tags, which upgrade once the components are registered.

React / Next.js

'use client';
import { useEffect } from 'react';
// Import '@materialwebunofficial/md3e-web/tokens' in app/layout.tsx.

export default function Page() {
  useEffect(() => {
    import('@materialwebunofficial/md3e-web/components/md-button.js');
  }, []);
  return <md-button variant="filled">Next.js + MD3E</md-button>;
}

Vue 3

<template>
  <md-slider :value="volume" @input="volume = $event.detail.value" labeled></md-slider>
</template>

<script setup>
import { onMounted, ref } from 'vue';
const volume = ref(50);
onMounted(() => import('@materialwebunofficial/md3e-web/components/md-slider.js'));
</script>

Set Vue's compilerOptions.isCustomElement to accept tags starting with md-. v-model does not work with these components; bind value and read event.detail.value.

Theming

Generate a color scheme from a seed color:

import { applyDynamicTheme } from '@materialwebunofficial/md3e-web';

// seed, dark mode, palette variant ('expressive' or 'standard')
applyDynamicTheme('#6750A4', false, 'expressive');

Optional fourth and fifth arguments set a target element (the document root by default) and a contrast level from -1 to 1.

Or theme part of the page declaratively:

<md-theme primary-seed="#00639B" color-mode="dark">
  <md-button variant="tonal">Themed button</md-button>
</md-theme>

generateM3Scheme from @materialwebunofficial/md3e-web/theme computes the color roles without touching the DOM, so it also runs on the server.

Components

| Category | Elements | | :--- | :--- | | Actions | md-button, md-button-group, md-split-button, md-icon-button, md-fab, md-fab-menu, md-segmented-button | | Inputs | md-checkbox, md-radio-button, md-switch, md-slider, md-text-field, md-select, md-autocomplete, md-search-bar, md-chip | | Pickers | md-date-picker, md-time-picker | | Navigation | md-top-app-bar, md-app-bar-with-search, md-bottom-app-bar, md-navigation-bar, md-navigation-drawer, md-navigation-rail, md-tabs, md-toolbar, md-paginator, md-stepper | | Feedback | md-progress-indicator, md-loading-indicator, md-snackbar, md-tooltip, md-badge | | Containment | md-card, md-carousel, md-list, md-menu, md-dialog, md-bottom-sheet, md-side-sheet, md-expansion-panel, md-accordion, md-divider | | Theme | md-theme, md-expressive-theme, md-shape |

Their child elements (md-list-item, md-menu-group, md-menu-item, md-option, md-tab, md-step and md-step-panel) are registered with their parents, for 53 custom elements in total.

Documentation

Development

npm install
npm run build
npm test

npm test runs the Node-based checks. Browser suites run per area, for example npm run test:parity, npm run test:buttons or npm run test:selection; see package.json for the full list. The showcase loads generated files, so run npm run build after editing src/showcase.js, styles/showcase.css or any component.

License

Apache License 2.0. Third-party notices are in NOTICE.

"Material Design", "Material You" and "Material Design 3" are trademarks of Google LLC.