轻量级的 CSS 框架
2019-11-09 我要评论 2 我要收藏

Material Design CSS Framework


MUI is a lightweight CSS framework that follows Google's Material Design guidelines.

Join the chat at Build Status Dependency Status devDependency Status

Use From the CDN:

<link href="//" rel="stylesheet" type="text/css" />
<script src="//"></script>

Or for development you can use the latest:

<link href="//" rel="stylesheet" type="text/css" />
<script src="//"></script>

Install with Bower:

$ bower install mui


MUI is designed from the ground up to be fast, small and developer friendly. By design it only includes the basic components you need to build a site that follows Google's Material Design guidelines. Some of the key features of MUI are:

  • Small footprint: mui.min.css - 6.6K, mui.min.js - 5.4K (gzipped)
  • A responsive grid to make mobile-friendly sites
  • No external dependencies
  • CSS library that can be customized with your own colors
  • JS library can be loaded asyncronously
  • Email library for styling HTML emails

To get started using MUI, go to the MUI website to see examples and download boilerplate HTML.

Browser Support

MUI is tested and works in:

  • IE10+
  • Latest Stable: Firefox, Chrome, Safari
  • iOS 6+

Development Quickstart

  1. Install dependencies

  2. Clone repository

    $ git clone
    $ cd mui
  3. Install node dependencies using npm

    $ npm install
  4. Build examples

    $ ./node_modules/.bin/gulp build-examples

    To view the examples you can use any static file server. To use the nodejs http-server module:

    $ npm install http-server
    $ ./node_modules/.bin/http-server -p 3000

    Then visit http://localhost:3000/examples

  5. Watch changes and re-build

    $ ./node_modules/.bin/gulp watch

Run tests

Unit tests

To run the unit tests from the command line, run 'mocha':

$ ./node_modules/.bin/mocha

E2E tests

To run the E2E tests first compile the unit test files into a version that runs in the browser:

$ ./node_modules/.bin/gulp build-e2e-tests

Then visit http://localhost:3000/e2e-tests

Create a production build

To create a production build of the app, run gulp build-dist:

$ ./node_modules/.bin/gulp build-dist

The build will be located in the dist directory:

├── css
│   ├── mui.css
│   ├── mui.min.css
├── js
│   ├── mui.js
│   └── mui.min.js
├── email
│   ├── mui-email-inline.css
|   └── mui-email-styletag.css
├── react
│   ├── mui-react.js
│   └── mui-react.min.js
└── webcomponents
|   ├── mui-webcomponents.js
|   └── mui-webcomponents.min.js
└── extra
    ├── mui-colors.css
    ├── mui-combined.js
    └── mui-react-combined.js
mui 相关推荐