Home  >  Article  >  Web Front-end  >  Lightweight HTML/CSS/JS framework: MUI_html/css_WEB-ITnose

Lightweight HTML/CSS/JS framework: MUI_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:41:441187browse


MUI is a lightweight HTML, CSS and JS framework that follows Google's Material Design design ideas. MUI CSS can be easily customized through GitHub or Bower when using SASS source code. Customizations range from responsive breakpoints to default font settings and using Material Design colors, among others. MUI CSS/JS does not depend on any other programs.

Features

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 - 5.6K, mui.min.js - 3.7K (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

  • Install dependencies

    • nodejs (http://nodejs.org/)
    • npm (https://www.npmjs.org/)
    • sass (http://sass-lang.com/)
    • http-server (via npm)
  • Clone repository

    $ git clone [email protected]:muicss/mui.git$ cd mui

  • Install node dependencies using npm

    $ npm install

  • 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

  • Watch changes and re-build

    $ ./node_modules/.bin/gulp watch

  • Examples HTML:

    <!doctype html><html>  <head>    <meta charset="utf-8">    <meta name="viewport" content="width=device-width, initial-scale=1">    <!-- load MUI -->    <link href="//cdn.muicss.com/mui-0.0.1/css/mui.min.css" rel="stylesheet" type="text/css" />    <script src="//cdn.muicss.com/mui-0.0.1/js/mui.min.js"></script>  </head>  <body>    <!-- example content -->    <div class="mui-container">      <div class="mui-panel">        <h1>My Title</h1>        <button class="mui-btn mui-btn-primary mui-btn-raised">My Button</button>      </div>    </div>  </body></html>

    Project homepage: http://www.open-open.com/lib/view/home/1436230157833

    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn