Search
HomeGet startedDevelopStylesComponents
THE MATERIAL COMPONENT LIBRARY

Material Design.
Made for the web.

Web components that follow Google's latest Material Design 3 Expressive (opens in a new tab) guidelines. Built and maintained by AI.

Latest 3.17.0
bunnpmpnpmyarnbunnpmpnpmyarnbunnpmpnpmyarnbunnpmpnpmyarn
bun add material
npm install material
pnpm add material
yarn add material
bun add material@next
npm install material@next
pnpm add material@next
yarn add material@next
ExpressiveTree-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 Solid components, with server rendering. In TypeScript.

03 / LIGHTWEIGHT

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

04 / ACCESSIBLE

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.

05 / CUSTOMIZABLE

Your colors, your shapes.

Colors, type, shapes and density are CSS custom properties: one declaration restyles every component that reads it. Theming

06 / AI

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.

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 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>

Frameworks guide · Server rendering

Show the code for
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.7 KB, loads once; each component then adds 0.7–15.0 KB of JavaScript, gzip, across all 36 components. material's own measurement, on material 3.17.0. Every component's size

What each component adds over material's core, JavaScript, gzip
CategoryComponents
ActionsButtons +4.7 KB, FABs +2.6 KB
Selection & inputCheckbox +2.8 KB, Text fields +6.0 KB
NavigationTabs +10.8 KB, Navigation bar +3.0 KB
ContainmentCards +4.4 KB, Dialogs +9.6 KB
CommunicationSnackbar +9.8 KB, Tooltips +3.8 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.