ember-aphrodite-local-styles
v0.1.0
Published
The default blueprint for ember-cli addons.
Downloads
4
Readme
ember-aphrodite-local-styles
Use @mattkrick's fork of aphrodite in your Ember application.
Installation
ember install ember-aphrodite-local-styles
Usage
import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
import { StyleSheet } from 'aphrodite-local-styles';
export default Ember.Component.extend({
styles: StyleSheet.create({
red: {
backgroundColor: 'red'
},
blue: {
backgroundColor: 'blue'
}
}),
layout: hbs`
<div class={{css styles.red}}>
This is red
</div>
<div class={{css styles.blue}}>
This is blue
</div>
`
});
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.