Code Monkey home page Code Monkey logo

ember-glamor's Introduction

ember-glamor

CircleCI

Use glamor in your Ember project.

Installation

ember install ember-glamor

Usage

import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
import { css } from 'glamor';


const styles = {
  red: css({
    backgroundColor: 'red'
  }),
  blueGreen: css({
    backgroundColor: 'blue',
    ':hover': {
      backgroundColor: 'green'
    }
  })
};


export default Ember.Component.extend({

  styles,

  layout: hbs`

    <div class={{styles.red}}>
      This is red.
    </div>

    <div class={{styles.blueGreen}}>
      This is blue, and green on hover.
    </div>

  `
});

Configure

speedy

speedy mode is enabled in production and is disabled otherwise. You can override in config/environment.js:

if (environment === 'test') {
  ENV.glamor.speedy = true;
}

Developing

Installing dependencies

yarn install && bower install

Running tests

  • yarn test (Runs ember 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/.

ember-glamor's People

Contributors

dustinfarris avatar csreyes avatar ember-tomster avatar greenkeeper[bot] avatar

Watchers

Shamsundar Dileep avatar Amit Snyderman avatar Adrian Coroian avatar Neel Palrecha avatar Gabriel Liévano avatar Eugene C. avatar James Cloos avatar Pete. avatar Kevin Fang avatar Kunal Parakh avatar  avatar Josh Larsen avatar Daniel Song avatar Sergio Vargas avatar Jackson Beachwood avatar Julia Nguyen avatar Vincent Oe avatar Stephen Whitifeld avatar  avatar Nicholas Gonzalez avatar  avatar Sultan Khan avatar Lorraine Sposto avatar Nathalie Huynh avatar Esfandiar Behrouz avatar Rondale Williams avatar  avatar Tina Quach avatar  avatar Sherwin avatar  avatar  avatar Edward Park avatar  avatar George Gov avatar  avatar  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.