Ember template helpers for csz, a Runtime CSS-Modules with SASS like preprocessing
ember install ember-csz
import Component from "@glimmer/component";
import csz from "csz";
export default class MyButtonComponent extends Component {
styles = csz`
background: ${this.args.primary ? "palevioletred" : "white"};
color: ${this.args.primary ? "white" : "palevioletred"};
font-size: 1em;
margin: 1em;
padding: 0.25em 1em;
border: 2px solid palevioletred;
border-radius: 3px;
`;
}
<button class= type="button">
</button>
<MyButton @primary=true>Primary</MyButton>
<MyButton>Normal</MyButton>
<div class=>Hello World</div>
See the Contributing guide for details.
This project is licensed under the MIT License.