Material Design.
Made for the web.
Expressive components. Your framework.
A little TypeScript, a lot of possibility.
bun add materialnpm install materialpnpm add materialyarn add materialMaterial Design 3Tree-shakableZero runtime dependenciesOpen source
01 / EXPRESSIVE
Material 3 Expressive, today.
Google's latest Material Design, built for the web: the new shapes, motion and components, in 36 components.
02 / COMPATIBLE
One library, every stack.
Plain JavaScript factories, web components, and React, Vue, Svelte and SolidJS components, with server rendering. In TypeScript.
03 / LIGHTWEIGHT
Small by design.
Tree-shakable, with zero runtime dependencies: a 3.0 KB core, then each component adds from 0.7 KB gzip. See every size
EXPRESSIVE
Material 3 Expressive, built for the web.
M3 Expressive is Google's evolution of Material 3: new and updated components, spring motion, and new shapes, colour and type. material brings it to the web.
COMPATIBLE
One library, every stack.
The same components, the way you build: plain JavaScript factories, web components for any page, and components for React, Vue, Svelte and SolidJS. They render on the server too, and every API is typed.
import { createButton } from 'material';
const save = createButton({ text: 'Save' });
document.body.append(save.element);import 'material/elements/css';
import { defineAll } from 'material/elements';
defineAll();
// <m-button variant="filled">Save</m-button>import { Button } from 'material/react';
<Button variant="filled">Save</Button>import { MButton } from 'material/vue';
<MButton variant="filled">Save</MButton>import { Button } from 'material/svelte';
<Button variant="filled">Save</Button>import { Button } from 'material/solid';
<Button variant="filled">Save</Button>
LIGHTWEIGHT
Ship only what you use.
Every component is its own module, with its own stylesheet. Import a button and your bundler keeps the button: the other components never reach your users.
import { createButton } from 'material';
import 'material/styles/base';
import 'material/styles/button';
material's core, 3.0 KB, loads once; each component then adds 0.7–10.4 KB of JavaScript, gzip, across all 36 components. material's own measurement, on material 3.16.6. Every component's size
| Category | Components |
|---|---|
| Actions | Button +4.4 KB, FAB +2.3 KB |
| Selection & input | Checkbox +2.6 KB, Text field +5.7 KB |
| Navigation | Tabs +10.4 KB, Navigation bar +2.9 KB |
| Containment | Card +3.7 KB, Dialog +9.2 KB |
| Communication | Snackbar +9.2 KB, Tooltip +3.3 KB |
01 / EXPLORE
Find the right expression.
Try variants, sizes, and shapes in a live component playground.
02 / CUSTOMIZE
Make it feel like you.
Switch Material themes and light or dark mode. See every change as you make it.
03 / BUILD
Take it from here.
Copy your configuration and bring the component to your project. No framework required.