jeluard / lucuma

Web Components library for ClojureScript
96 stars 8 forks source link

Improve style support #32

Closed jeluard closed 9 years ago

jeluard commented 10 years ago

Common style support currently suffer from a short-coming: style elements have to be loaded before element instances are created (as style elements will be cloned per instance at creation time).

Find a way to remove this constraint or to simplify common style usages at development style.

jeluard commented 10 years ago

at-import rules solve this issue.

e.g.

(defwebcomponent my-styled-component
  :style (list
          "@import ""some.css"
          [(garden.stylesheet/at-import "some-other.css")]))
jeluard commented 10 years ago

More complex than expected. See https://github.com/Polymer/polymer-dev/issues/7

jeluard commented 9 years ago

Out of scope.