Install the libraries, learn the core concepts and build with Material 3.
What’s Material 3 for React & Tailwind?
Material 3 for React & Tailwind brings Material Design 3 to the web as two libraries. @material-web/react is a library of accessible React components, and @material-web/tailwind is a theme that provides the Material 3 design tokens for Tailwind CSS v4.
The two work together or apart. The components come with the theme, and the theme can be used on its own, with your own components or with another framework.
Both follow the Material 3 Expressive specification, and support light and dark color schemes, contrast levels, forced-colors mode and reduced motion.
To use the components, install @material-web/react in a React 19 project that uses Tailwind CSS v4. It includes @material-web/tailwind as a dependency, so the theme comes with it.
npm install @material-web/react
To use the theme on its own, install @material-web/tailwind in a project that uses Tailwind CSS v4.
npm install @material-web/tailwind
Then import the library’s stylesheet, and load the Roboto and Material Symbols Outlined fonts.
@material-web/tailwind provides the Material 3 design tokens for Tailwind CSS v4. Each token is available as a CSS custom property named after the specification, and as a Tailwind utility that works alongside Tailwind’s own.
Data attributes set the color scheme, the contrast level and the motion scheme, on the root element or on any element to apply them to its content. The theme does not depend on React, so it works with any framework that uses Tailwind CSS.
@material-web/react provides the Material 3 components for React: the interactive building blocks of a user interface, from buttons and text fields to navigation, dialogs and date pickers. Every component follows the Material 3 specification and adapts to the theme.
Every component is accessible, with keyboard navigation, focus management and form integration, and accepts React Aria props.
Components are styled with Tailwind classes that use the tokens of @material-web/tailwind, and you customize them the same way, by passing classes of your own. Their content is composed from children and slots rather than configured through props.