GitXplorerGitXplorer
l

ember-css-vars

public
4 stars
0 forks
24 issues

Commits

List of commits on branch master.
Unverified
c219442f5ce00dc9fc1db0690b69a29ecbbe5ae1

v2.0.0

lluxzeitlos committed 4 years ago
Unverified
b95c1feb83fa0d49540545f6269f89c23d64bb08

use public import of setModifierManager

lluxzeitlos committed 4 years ago
Unverified
d9c219c4f551c6562405e2ccbca1f9bd2df9ebe6

add note about fastboot compatibility

lluxzeitlos committed 4 years ago
Unverified
2a3766395eb97ed59e8411d8afbe8f273439ac23

BREAKING: update ember compatibility

lluxzeitlos committed 4 years ago
Unverified
24730ea1090779c0cb9c2cf52cad1879ab08ba6f

Released v1.0.1

lluxzeitlos committed 5 years ago
Unverified
dc60e7adfba7cc878b3f7b1f6e623956821713b2

update dependencies

lluxzeitlos committed 5 years ago

README

The README file for this repository.

ember-css-vars

A ember modifier to apply css variables. This gives a save way to expose data from javascript to css.

Compatibility

  • Ember.js v3.13 or above
  • Ember CLI v3.13 or above
  • Node.js v10 or above

Installation

ember install ember-css-vars

Usage

css

#myElement {
  background: var(--my-color);
}

hbs

<div id="myElement" {{css-vars my-color="blue"}}>
  This will have a blue background
</div>

Limitations

Because element modifiers do not run in FastBoot mode {{css-vars}} has no effect when run in FastBoot mode.

License

This project is licensed under the MIT License.