GithubHelp home page GithubHelp logo

himanshuteotia / angular2-mdl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mseemann/angular2-mdl

0.0 2.0 0.0 4.42 MB

Angular 2, 4 components, directives and styles based on material design lite

Home Page: http://mseemann.io/angular2-mdl

License: MIT License

JavaScript 2.00% TypeScript 50.85% Shell 0.84% HTML 15.50% CSS 30.81%

angular2-mdl's Introduction

Angular 4 components, directives and styles based on material design lite https://getmdl.io (v: 1.3.0).

If you are looking for a stable Angular 2 compatible version please refer to this branch: https://github.com/mseemann/angular2-mdl/tree/angular2 . The master is under active development to be compatible with Angular 4.

This package assumes that you are building an Angular app with TypeScript. Angular CLI makes it even easier but isn't required.

Demo-App with all supported components and documentation

Build Status CircleCI npm version Coverage Status Dependencies peerDependencies Status DevDependencies Code Climate

Please don't use github to ask questions. Use stackoverflow instead: http://stackoverflow.com/questions/tagged/angular-mdl.

Here is a plnkr if you'd like to play around http://plnkr.co/edit/f73PKEmzpAcchza8Q9rb?p=preview.

Status of the npm package version 3 (mdl version 1.3.0; angular 4)

  • Badges
  • Buttons
  • Cards
  • Chips
  • Dialogs (imperative and declarative)
  • Icons
  • Loading
  • Shadow
  • Toggle (Checkbox, Radio, Icon Toggle, Switch)
  • Lists
  • Slider
  • Snackbar
  • Table
  • Tooltips
  • Menu
  • Layout (standard, scroll, waterfall, tabs)
  • Tabs
  • Textfields (multiline, expandable)

Installation

npm install @angular-mdl/core --save

How to use the mdl components with webpack

Just use it. Add the MdlModule to your NgModule imports and you are done!

How to use the mdl components with system js

You need to configure your system-config.js file:

const map: any = {
  '@angular-mdl/core': 'vendor/@angular-mdl/core'
};

/** User packages configuration. */
const packages: any = {
  '@angular-mdl/core': { main: 'bundle/core.js'}
};

css from material-design-lite

You may include the material-deisgn-lite css in your html and you're done!

<link rel="stylesheet" href="https://code.getmdl.io/1.1.3/material.indigo-pink.min.css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Under http://mseemann.io/angular2-mdl/theme you'll find a customizing tool to change the theme colors.

How to use the scss files from material-design-lite

This package includes the scss files from material-design-lite. With these files you are able to change the colors and other variables in your own scss files:

@import "~@angular-mdl/core/scss/color-definitions";

$color-primary: $palette-blue-500;
$color-primary-dark: $palette-blue-700;
$color-accent: $palette-amber-A200;
$color-primary-contrast: $color-dark-contrast;
$color-accent-contrast: $color-dark-contrast;

@import '~@angular-mdl/core/scss/material-design-lite';

To make this working you need to find out the way how you could tell your build system where the scss is located. For example with webpack you can use the special ~@angular-mdl/core syntax or you can configure the includePaths:

sassLoader: {
	includePaths: [util.root('node_modules', '@angular-mdl/core', 'scss')]
}

Contributing

Every contribution is welcome. Please checkout the CONRIBUTION.md file.

Remarks

If you need a working example for the current angular-cli with the current angular-mdl and angular versions please have a look at: https://github.com/mseemann/angular-mdl-a4-angular-cli.

angular2-mdl's People

Contributors

mseemann avatar greenkeeperio-bot avatar greenkeeper[bot] avatar paullryan avatar tb avatar zskhan avatar aklaus avatar guzmo avatar andrewbents avatar crystalraebryant avatar joevanwanzeele avatar jlee1201 avatar leolorenzoluis avatar mgiuliani avatar abdulqadir93 avatar angular-cli avatar tomicasoft avatar

Watchers

James Cloos avatar Himanshu Teotia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.