Add Material Design 3 buttons, dialogs, and navigation components to a React, Vue, or Angular app without extra adapters.
Build a website with automatic dark mode that switches based on the user's system preference using mdui's built-in theme.
Create a web app that adapts its color palette to the user's system accent color using Material You dynamic theming.
Use mdui components in plain HTML pages without any build tools by loading from a CDN link.
MDUI is a library of ready-made user interface components for building websites and web apps. It follows Material Design 3, also called Material You, which is Google's design language for creating clean, consistent-looking interfaces with features like dark mode and dynamic color theming based on the user's system settings. The components are built using Web Components, which is a set of browser standards that lets developers create custom HTML elements that work like built-in ones. Because they use this standard, mdui components work in any environment, whether you are using a framework like React, Vue, or Angular, or just writing plain HTML with no framework at all. You can add a button to your page by writing a tag like mdui-button the same way you would write a normal HTML button. Using the library is straightforward. You can install it through npm, the standard package manager for JavaScript projects, and then import the CSS and JavaScript files at the top of your code. Alternatively, if you do not want to deal with a build process, you can load it directly from a public CDN by adding two links to your HTML file and using the components immediately. Both English and Simplified Chinese documentation are available on the project's website. The library includes a dark theme out of the box and supports the dynamic color system from Material You, where the interface can adapt its color palette to match the user's wallpaper or system accent color on supported platforms. The README notes that a v3 version based on the newer M3 Expressive specification is currently in development, while v2 continues to receive bug fixes and new features. The project is open source under the MIT license.
← zdhxiong on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.