Skip to content

Instantly share code, notes, and snippets.

@bhvaleri
Created May 4, 2017 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhvaleri/fae931c4d2d2ab985715d9dceb664f12 to your computer and use it in GitHub Desktop.
Save bhvaleri/fae931c4d2d2ab985715d9dceb664f12 to your computer and use it in GitHub Desktop.
Theme
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Theme'
});
<style>
body {
font-family: helvetica
}
.box {
width: 100px;
height: 100px;
border: 1px solid black;
background-color: {{primaryColor}};
}
.header {
font-size: 30px;
color: {{primaryText}}
}
</style>
<div class="header">Theme</div>
<div class="box"></div>
<br>
<label>Primary Color
<input type="color" oninput={{action (mut primaryColor) value="target.value"}}>
</label>
<br>
<label>Primary Text Color
<input type="color" oninput={{action (mut primaryText) value="target.value"}}>
</label>
{
"version": "0.12.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.12.0",
"ember-template-compiler": "2.12.0",
"ember-testing": "2.12.0"
},
"addons": {
"ember-data": "2.12.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment