This project will not have updates for AngularJS/Ionic 1. Please contact the author (zachfitz) if you have ability and interest in resurrecting it, or (preferrably) porting it to Ionic 2/Angular.
Ionic Framework ♥ Material Design
See our releases and other versions
Documentation Application by @zachsoft @ ionicmaterial.com (Use the ☰ menu for Documentation sections)
NB: Note: It is recommended that when creating an issue, you demonstrate the problem by forking the codepen.
cd /PATH/TO/YOUR/PROJECT
bower install ionic-material
RobotoDraft
font (by Google) <link href='https://fonts.googleapis.com/css?family=RobotoDraft:400,500,700,400italic' rel='stylesheet' type='text/css'>
Check out RobotoDraft by RaiButera on Github
bower install robotodraft
using Sass? instructions for raibutera/robotodraft + scss:
$RobotoDraftFontPath: "../fonts"; // REMINDER: edit as appropriate!
$RobotoDraftFontName: "RobotoDraft";
$RobotoDraftFontVersion: "1.0.0";
@import "/PATH/TO/YOUR/PROJECT/bower_components/robotodraft/sass/robotodraft.scss"; // REMINDER: edit as appropriate!
NB: the above assumes you are using Bower
Add ionic.material.min.css
and ionic.material.min.js
to your index.html
<link href="https://github.com/zachfitz/Ionic-Material/blob/master/lib/ionic/css/ionic.css" rel="stylesheet">
<link href="https://github.com/zachfitz/Ionic-Material/blob/master/lib/ionic-material/dist/ionic.material.min.css" rel="stylesheet">
<link href="https://github.com/zachfitz/Ionic-Material/blob/master/css/style.css" rel="stylesheet">
<script src="https://github.com/zachfitz/Ionic-Material/raw/master/lib/ionic/js/ionic.bundle.js"></script>
<script src="https://github.com/zachfitz/Ionic-Material/raw/master/lib/ionic-material/dist/ionic.material.min.js"></script>
var app = angular.module('YOUR_APP_NAME', ['ionic', 'ionic-material']);
The angular services ionicMaterialInk
and ionicMaterialMotion
are used to activate animations.
You are all set to go! :thumbsup:
NB: Make sure the relevant services are injected into your controllers.
In your controllers:
ionicMaterialInk.displayEffect()
(will need to happen once on controller activation and then repeat every time the objects update)ionicMaterialMotion.ripple()
(etc.)Ionic demo app "Thronester" is found within './demo' - You can also run 'index.html' locally to view in a webkit browser on a computer.
Instructions:
npm install
gulp build
(or gulp style
for just the stylesheets)Look at gulpfile.js
for how the process works.
This project uses Webpack
See our CONTRIBUTING INSTRUCTIONS
Ionic material is aimed at being an extension library for the Ionic Framework, meaning you won't change the way you develop your Ionic hybrid apps to have them materialized. Ionic Material aims to integrate the best representations of Material Design into a single add-on library for Ionic Developers. With the Polymer Project, ngMaterial, and other open source projects arising, we aim to be actively engaged and aligned with these, and other, related projects.
As a 100% free open-source project, developer participation is encouraged, as much or little as possible.
Ionic and Angular Material are fairly incompatible (you can add them to the same project, but the styling will be extremely inconsistent and none of the UI components will work cross-framework, eg. an ionic side menu with material tabs). Ionic is 1.0 and angular material is still pre-1.0.
Ionic Material is best explained as a "material extension" to Ionic, rather than to Angular as a whole. The difference isn't just semantics - Ionic Material extends the actual ionic framework namespace (in JS), renders material styles on the ionic elements (following ionic's conventions), and will aim to follow the releases of Ionic, and support material theming, ink, and motion for any new Ionic release.
Ionic Material will pull in the best ideas of Angular Material, Paper/Polymer, etc. and by the same tune, Ionic Material will also abstract the parts of the framework that would be beneficial outside of ionic apps (like animations, motions) into their standalone git projects so they can be adopted for use in -any- web project that uses material design.
Please see our contribution guidelines
Want to become an official collaborator? Please contact @zachsoft
See Milestones
Complete implementation of Material Design specification.
Full UI Kit w/ dozens of templates for rapid application development. Inspired by amazing kits like: https://ui8.net/product/material-ui-kit.
Increase animation performance. We're really stretching the limits of hybrid app animations - if you have ideas on performance adjustments, we're all ears and would love the insight.
Port animate.js with bezier curve adjustments to match "authentic motion" spec of Material Design.
Bug fixes