Material Design.
Made for the web.
An implementation following Google's latest Material Design 3 Expressive (opens in a new tab) guidelines, specs and accessibility.
bun add materialnpm install materialpnpm add materialyarn add materialbun add material@nextnpm install material@nextpnpm add material@nextyarn add material@nextMaterial 3 Expressive, today.
Google's latest Material Design, built for the web: the new shapes, motion and components, in 36 components.
One library, every stack.
Plain JavaScript factories, web components, and React, Vue, Svelte and Solid components, with server rendering. In TypeScript.
Small by design.
Tree-shakable, with zero runtime dependencies: a 3.7 KB core, then each component adds from 0.7 KB gzip. See every size
Checked in three engines.
Keys, screen reader tree, focus, touch targets and contrast, measured in Chromium, Firefox and WebKit. Each Accessibility page says what is checked.
Your colors, your shapes.
Colors, type, shapes and density are CSS custom properties: one declaration restyles every component that reads it. Theming
Built and maintained by AI.
AI agents write, review and test the code; the community decides. Every guide and component has a Markdown version, listed in llms.txt.
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.
Button groups
Related actions. Shared shapes. Flexible selection.
Split buttons
One primary action, with more options close by.
FAB menu
Two to six related actions, opened from a FAB.
Loading indicator
An expressive shape for short waits.
Toolbars
Docked or floating actions, standard or vibrant.
Progress indicators
Linear and circular progress, flat or wavy.
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 Solid. 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>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.7 KB, loads once; each component then adds 0.7–10.7 KB of JavaScript, gzip, across all 36 components. material's own measurement, on material 3.17.0-next.8. Every component's size
| Category | Components |
|---|---|
| Actions | Buttons +4.6 KB, FABs +2.5 KB |
| Selection & input | Checkbox +2.6 KB, Text fields +5.8 KB |
| Navigation | Tabs +10.6 KB, Navigation bar +3.0 KB |
| Containment | Cards +4.2 KB, Dialogs +9.5 KB |
| Communication | Snackbar +9.7 KB, Tooltips +3.8 KB |
Find the right expression.
Try variants, sizes, and shapes in a live component playground.
Make it feel like you.
Switch Material themes and light or dark mode. See every change as you make it.
Take it from here.
Copy your configuration and bring the component to your project. No framework required.