Material Design 3 (Material You) Web Components — standards‑focused and zero‑dependency.
Live demo: https://clshortfuse.github.io/materialdesignweb/ Samples: https://clshortfuse.github.io/materialdesignweb/samples/
<script src="https://cdn.jsdelivr.net/npm/@shortfuse/materialdesignweb?color=6750A4"></script>
<mdw-button>Hello World</mdw-button>
CDN theming params: color, custom, lightness, resetCSS.
Access exports via globalThis['@shortfuse/materialdesignweb']:
const { CustomElement } = globalThis['@shortfuse/materialdesignweb'];
npm install @shortfuse/materialdesignweb
Full bundle:
import '@shortfuse/materialdesignweb';
Single component:
import Button from '@shortfuse/materialdesignweb/components/Button.js';
Compatibility is kept for as long possible by including browser-version-based patches. Ultimately, compatiblity may be dropped as new features get added. Bugs present in supported browsers should always be fixed.
| Feature | Chrome | Edge | Firefox | Safari |
|---|---|---|---|---|
| ShadowRoot | 53 | 79 | 63 | 10 |
| WeakRef | 84 | 84 | 79 | 14.1 |
| :where() | 88 | 88 | 78 | 14 |
| Array.at† | 92 | 92 | 90 | 15.4 |
| replaceChildren† | 84 | 86 | 79 | 14.1 |
| ElementInternals† | 77 | 79 | 93 | 16.4 |
| delegatesFocus† | 53 | 79 | 94 | 15 |
| AdoptedStyleSheets* | 73 | 79 | 101 | 16.4 |
| CSS container queries* | 106 | 106 | 110 | 16.0 |
| Compatibility | 88 | 88 | 78 | 16.4 |
| Support | Latest ChromeOS LTS Release | [Microsoft Edge Extended Stable Channel](https://learn.microsof |
$ claude mcp add materialdesignweb \
-- python -m otcore.mcp_server <graph>