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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@shortfuse/materialdesignweb

v0.8.0

Published

Material Design for Web

Downloads

51

Readme

materialdesignweb

Material Design for Web

A standards-focused, zero-dependency implemention of Material Design 3 (Material You).

Version License MinZip Dependents

Demo

https://clshortfuse.github.io/materialdesignweb/

Getting started

Pre-bundled

<script type="module"
  src="https://cdn.jsdelivr.net/npm/@shortfuse/materialdesignweb?color=6750A4"></script>

<mdw-button>Hello World!</mdw-button>

Includes all components and theming over URL params.

Development

Static Theme Generation:

npx -p @shortfuse/materialdesignweb mdw-css --color=color=6750A4 --custom=yellow,orange:orange,green:0f0,alias:aqua --lightness=auto > theme.css

Dynamic Theme Generation:

See loader.js for an example.

Component Loading

import { Button } from '@shortfuse/materialdesignweb';
// OR
import Button from '@shortfuse/materialdesignweb/components/Button.js';
// OR
import Button from 'https://www.unpkg.com/@shortfuse/materialdesignweb/components/Button.js';
// OR
import { Button } from 'https://cdn.jsdelivr.net/npm/@shortfuse/materialdesignweb?color=6750A4';

const button = new Button();
button.textContent = 'Hello World!';
document.body.append(button);

Support

| Feature | Chrome | Edge | Firefox | Safari | | ----------------------------------------------------------------------------------------------------- | -----: | ---: | ------: | -----: | | ShadowRoot | 53 | 79 | 63 | 10 | | WeakRef | 84 | 84 | 79 | 14.1 | | ElementInternals† | 77 | 79 | 93 | 16.4 | | delegatesFocus† | 53 | 79 | 94 | 15 | | AdoptedStyleSheets* | 73 | 79 | 101 | 16.4 | | | | | | | | Supported | 84 | 84 | 93 | 16.4 |

*Optional

†Can be polyfilled

Notes:

  • Compatibility may be extended via polyfills (not included)

Components

| Component | Features | Status | Size | | :----------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | | Badge | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: | :heavy_check_mark: | Size | | Bottom App Bar | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :wheelchair: | :heavy_check_mark: | Size | | Bottom Sheet | | :memo: | | | Button | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Card | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :arrow_up_down: :wheelchair: | :heavy_check_mark: | Size | | Fab | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Fab - Extended | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Icon Button | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Segmented Button | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Segmented Button Group | :crayon: :wheelchair: | :heavy_check_mark: | Size | | Checkbox | :paintbrush: :crayon: :a: :large_blue_diamond: :wheelchair: | :heavy_check_mark: | Size Size | | Chip | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Chip - Filter | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Chip: Filter Dropdown | | :construction: | | | Chip: Input | | :construction: | | | Date Picker | | :grey_question: | | | Dialog | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :wheelchair: | :heavy_check_mark: | Size | | Dialog: Full-screen | | :grey_question: | | | Divider | :crayon: | :heavy_check_mark: | Size | | Icon | :crayon: | :heavy_check_mark: | Size | | List | :paintbrush: :crayon: :signal_strength: :wheelchair: | :heavy_check_mark: | Size Size | | Listbox | :paintbrush: :crayon: :signal_strength: :wheelchair: | :heavy_check_mark: | Size Size | | Menu | :paintbrush: :crayon: :o: :signal_strength: :wheelchair: | :heavy_check_mark: | Size Size | | Navigation Bar | :paintbrush: :crayon: :o: :large_blue_diamond: :wheelchair: | :heavy_check_mark: | Size Size | | Navigation Drawer | :paintbrush: :crayon: :o: :large_blue_diamond: :wheelchair: | :construction: | Size Size | | Navigation Rail | :paintbrush: :crayon: :o: :large_blue_diamond: :wheelchair: | :heavy_check_mark: | Size Size | | Progress Indicators | :crayon: :wheelchair: | :heavy_check_mark: | Size | | Search | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :wheelchair: | :construction: | Size | | Radio | :crayon: :a: :large_blue_diamond: :wheelchair: | :heavy_check_mark: | Size Size | | Slider | :crayon: :wheelchair: | :warning: | Size | | Snackbar | :paintbrush: :crayon: :o: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Switch | :paintbrush: :crayon: :a: :wheelchair: | :heavy_check_mark: | Size Size | | Tab | :paintbrush: :crayon: :o: :large_blue_diamond: :wheelchair: | :heavy_check_mark: | Size Size Size Size | | Text Input | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Text Area | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Text Select | :paintbrush: :crayon: :o: :a: :large_blue_diamond: :signal_strength: :wheelchair: | :heavy_check_mark: | Size | | Time Picker | | :grey_question: | | | Tooltip | :paintbrush: :crayon: :o: :large_blue_diamond: :wheelchair: | :heavy_check_mark: | Size | | Top App Bar | :paintbrush: :crayon: :o: :a: :wheelchair: | :heavy_check_mark: | Size |

Additional

| Component | Description | Status | Size | | :--------------------------------- | :-------------------------------------------------- | :--------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------: | | Box | Simple themeable component with Flex and Grid options | :heavy_check_mark: | Size | | Layout | Manages page nav, and pane layouts | :construction: | Size | | Icon | Font-icon, SVG, and IMG support | :construction: | Size | | Body | Box with Body typography | :heavy_check_mark: | Size | | Label | Box with Label typography | :heavy_check_mark: | Size | | Headline | Box with Headline typography | :heavy_check_mark: | Size | | Title | Box with Title typography | :heavy_check_mark: | Size | | Ripple | Ripple effect | :heavy_check_mark: | Size | | Shape | Themeable, flexable, shapeable element | :heavy_check_mark: | Size | | Surface | Themeable, flexable, shapeable, elevateable element | :heavy_check_mark: | Size |

Mixins

| Mixin | Description | Status | Size | | :---------------------------------------------- | :----------------------------------------------- | :--------------------------------------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------: | | AriaReflector | Reflects ARIA Properties | :heavy_check_mark: | Size | | AriaToolbar | Shared ARIA Toolbar functionality | :heavy_check_mark: | Size | | Control | HTML Control wrapper | :heavy_check_mark: | Size | | Density | Component density options | :heavy_check_mark: | Size | | Flexable | Add flexbox options as attributes | :heavy_check_mark: | Size | | FormAssociated | Form-associated custom element support | :heavy_check_mark: | Size | | Input | HTMLInputElement wrapper | :heavy_check_mark: | Size | | KeyboardNav | Adds arrow key navigation and roving tab index | :warning: | Size | | ResizeObserver | Shared Eelement resize observer | :heavy_check_mark: | Size | | Ripple | Replaces pressed state with ripple effect | :heavy_check_mark: | Size | | RTLObserver | Shared RTL paoge observer | :heavy_check_mark: | Size | | ScrollListener | Listen for horizontal and vertical scroll events | :heavy_check_mark: | Size | | Shape | Adds shape and outline layer to elements | :warning: | Size | | Surface | Adds shadows to elements | :warning: | Size | | TextField | Shared text field functionality | :heavy_check_mark: | Size | | TooltipTrigger | Triggers tooltips based on events | :construction: | Size | | TouchTarget | Adds extended touch target to controls | :construction: | Size |

Core

| File | Description | Status | Size | | :---------------------------------------- | :------------------------------------------------------------------------- | :--------------------------------------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------: | | Composition | Composes templates based on styles, fragments, and watches. Renders data | :construction: | Size | | CustomElement | Handles ShadowDOM, ElementInternals, Property attributes, and compositions | :construction: | Size | | CompositionAdapter | Handles data array to elements binding | :construction: | Size | | jsonMergePatch | Applies, constructors, and evaluates JSON Merge Patch | :construction: | Size | | css | CSS, CSSStyleSheet, HTMLStyleElement functions | :heavy_check_mark: | Size | | customTypes | Non-primitive observable types | :construction: | Size | | optimizations | Micro-optimizations functions | :construction: | Size | | dom | DOM functions | :warning: | Size | | observe | Observable pattern for primitives and objects | :construction: | Size | | template | Template literals for CSS (CSSStyleSheet) and HTML (DocumentFragment) | :heavy_check_mark: | Size | | uid | Generates a UID string | :heavy_check_mark: | Size |

Other Components

These components do not have official M3 guidelines

| Component | Status | | :----------- | :--------------------------------------: | | ~~Backdrop~~ | :skull: | | Banner | :construction: | | Data Table | :memo: | | Image List | :grey_question: | | Side Sheet | :grey_question: |

Legend

Archive

The Material Design 1/2 version has been archived in the archive-md2 branch.