Go to file
Surma 064189f2d7 Adjust badge weight (Closes #729) 2015-07-06 16:22:40 +01:00
docs Merge pull request #711 from google/fix-encoding-copy-paste 2015-07-06 16:22:39 +02:00
src Adjust badge weight (Closes #729) 2015-07-06 16:22:40 +01:00
templates Make title card top card on mobile (Closes #707) 2015-07-06 12:08:22 +01:00
test Assign class string as widget name. (Closes #481) 2015-06-26 11:58:00 +01:00
.drone.p12.enc Auto-publish master to staging on green (success) 2015-06-24 16:37:02 +01:00
.drone.yml Run napa from drone 2015-07-06 15:57:16 +01:00
.editorconfig Update editorconfig 2014-06-20 19:31:06 -03:00
.gitattributes Bring back .git configs 2015-02-04 10:10:46 +00:00
.gitignore Remove /css and /js alltogether 2015-05-06 14:39:10 +01:00
.jscsrc .jscsrc: configure maxLineLength 2015-06-15 14:32:06 +01:00
.jshintrc Updates to fix jshint warnings 2014-12-23 01:02:30 +00:00
CONTRIBUTING.md Adding issue templates to contributing guide (Closes #728) 2015-07-06 15:09:32 +01:00
LICENSE Update copyright year 2015-01-06 13:36:47 +00:00
README.md Language update to font section. 2015-06-26 12:30:15 -04:00
bower.json bower.json: drop 'images' from main. 2015-07-05 15:35:30 +01:00
gulpfile.js Merge pull request #722 from google/serve-gzip 2015-07-06 14:33:10 +01:00
package.json Avoid relying on node_modules/.bin to be in the PATH. 2015-07-05 23:44:58 +02:00

README.md

Material Design Lite

A library of Material Design components in CSS, JS, and HTML

Material Design Lite lets you add a Material Design look and feel to your static content websites. It doesnt rely on any JavaScript frameworks or libraries. Optimised for cross-device use, gracefully degrades in older browsers, and offers an experience that is accessible from the get-go.

Quick start

Four quick start options are available:

  • Download the latest release.
  • Clone the repo: git clone https://github.com/google/material-design-lite.git.
  • Install with Bower: bower install material-design-lite.
  • Install with npm: npm install material-design-lite.

What's included

Within the download you'll find the following directories and files.

File/Folder Provides
bower.json Bower package configuration.
CONTRIBUTING.md MDL contribution guidelines.
docs Template files for documentation.
gulpfile.js gulp configuration for MDL.
LICENSE Project license information.
package.json NPM package information
README.md Details for quickly understanding the project.
src Source code for MDL.
templates Example templates
test Project test files.

Browser Support

IE9 IE10 IE11 Chrome Opera Firefox Safari Chrome (Android) Mobile Safari
B A A A A A A A A

A-grade browsers are fully supported. B-grade browsers will gracefully degrade to our CSS-only experience.

Getting Started

Download

Clone or download this repository, build it and reference the following files in your project:

<script src="dist/js/material.min.js"></script>
<link rel="stylesheet" href="dist/css/material.min.css">

You will want to include the entire package to ensure optional assets like images or fonts are correctly included.

npm

npm install --save material-design-lite

bower

bower install --save material-design-lite

Icons

Material Design Lite uses the official Material Icons font. We recommend you include it using:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
      rel="stylesheet">

You can check for other options on the Developer's Guide.

All of the demos and templates in this project use the preferred ligature syntax:

<i class="material-icons">face</i>

If you need to support older browsers, take a look at the Developer's Guide for how to use codepoints instead, as well as the list of supported codepoints.

Development

The sources (JS, Sass) and demo files for all components can be found in the src directory. To get started modifying them, first install the necessary dependencies, from the root of the project:

npm install && npm install -g gulp

Next, run the following one-liner to preview the components:

gulp serve

Any changes made to files inside the src directory will cause the page to reload. This page can also be loaded up on physical devices thanks to BrowserSync.

To build a production version of the components, run:

gulp

This will clean the dist folder and rebuild the assets for serving.

Templates

The templates/ subdirectory contains a few exemplary usages of MDL. Templates have their own, quasi-separate gulp pipeline and can be compiled with gulp templates. The templates use the vanilla MDL JS and themed CSS files. Extraneous styles are kept in a separate CSS file. Use gulp serve to take a look at the templates:

Templates are not officially supported in IE9 and legacy browsers that do not pass the minimum-requirements defined in our cutting-the-mustard test.

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, Material Design Lite is maintained under the Semantic Versioning guidelines. Sometimes we screw up, but we'll adhere to those rules whenever possible.

Feature requests

If you find MDL doesn't contain a particular component you think would be useful, please check the issue tracker in case work has already started on it. If not, you can request a new component.

In-development

Here, you can find early live previews of our work for testing or demo purposes.

Do you include any features that a framework comes with?

Material Design Lite is focused on delivering a vanilla CSS/JS/HTML library of components. We are not a framework. If you are building a single-page app and require features like two-way data-binding, templating, CSS scoping and so forth, we recommend trying out the excellent Polymer project.

License

Copyright Google, 2015. Licensed under an Apache-2 license.